Skip to content

Commit 97c071e

Browse files
committed
Bypass tier check if weapon type is a crossbow
1 parent 9ba4a6e commit 97c071e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

addEnchantedVariantsToLeveledLists.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ function Process(e: IInterface): integer;
337337
if Pos(UpperCase(enchantment_string), UpperCase(iteratingLeveledListEI)) > 0 then begin
338338

339339
// Check that found LVLI EditorID contains the derived tier
340-
if Pos(UpperCase(tier), UpperCase(iteratingLeveledListEI)) > 0 then begin
340+
// This is bypassed if the weapon type is a Crossbow
341+
if (Pos(UpperCase(tier), UpperCase(iteratingLeveledListEI)) > 0) or SameText('Crossbow', weapon_type) then begin
341342

342343
// If the current LVLI is a "Greatsword" list, and the current
343344
// weapon type is a "Sword", go to the next list.

0 commit comments

Comments
 (0)