OBSERVED: STR bonus is incorrectly added to the following ammo: AROW05 (Arrows of Biting) AROW12 (Arrows of Biting) AROW14 (Eldoth's arrows) AROW15 (Eldoth's arrows) (Not used in-game)
This is also true in BG1 and BG2.
EXPECTED: Remove the STR bonus.
NOTES: Not sure if it's necessary in all cases- don't know how to check if an game resource isn't being employed by the game. But here is an attempt to use @CamDawg's code as a template to fix a similar issue (not sure if different ammo uses a different format):
// disallows str bonus for specific arrows COPY_EXISTING ~arow05.itm~ ~override~ ~arow12.itm~ ~override~ ~arow14.itm~ ~override~ ~arow15.itm~ ~override PATCH_IF (SOURCE_SIZE > 0x71) THEN BEGIN // protects against invalid files READ_LONG 0x64 "abil_off" READ_SHORT 0x68 "abil_num" WHILE ("%abil_num%" > 0) BEGIN // looks for ranged ability header SET "abil_num" = ("%abil_num%" - 1) READ_BYTE ("%abil_off%" + ("%abil_num%" * 0x38)) "type" PATCH_IF ("%type%" = 2) BEGIN // ranged ability check WRITE_BYTE ("%abil_off%" + 0x26 + ("%abil_num%" * 0x38)) 0 // disallow strength bonus END END END BUT_ONLY_IF_IT_CHANGES