Skip to content

Commit 9ba4a6e

Browse files
committed
Convert crossbows to Crossbow from Bow
Dawnguard has SublistEnch lists for crossbows, and Thaumaturgy expands on them greatly.
1 parent 448b9fe commit 9ba4a6e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

addEnchantedVariantsToLeveledLists.pas

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ function Process(e: IInterface): integer;
266266
if SameText('Silver', tier) then
267267
tier := 'Steel';
268268

269+
// Check if the weapon is a Crossbow, and assign it to a Crossbow
270+
// weapon type rather than Bow
271+
if SameText('Bow', weapon_type) then begin
272+
if Pos(Uppercase('Crossbow'), Uppercase(DisplayName(weaponRecord))) > 0 then
273+
weapon_type := 'Crossbow'
274+
end;
275+
269276
// Convert new weapon types to the list they would be placed in
270277
if SameText('Pike', weapon_type) then
271278
weapon_type := 'Battleaxe';

0 commit comments

Comments
 (0)