Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

(BG1, BG2) STR bonus applied to arrow damage

BhryaenBhryaen Member Posts: 2,874
edited August 2012 in Fixed
This is a follow-up to @CamDawg's thread here regarding bullets that has already been fixed:

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.

Remove the STR bonus.

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

Post edited by Bhryaen on


Sign In or Register to comment.