Howdy, Stranger!

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

Categories

Axis & Allies 1942 Online is now available in Early Access! Buy it on Steam. The FAQ is available.
New Premium Module: Tyrants of the Moonsea! Read More
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:
http://forum.baldursgate.com/discussion/1484/bgee-bg1-bg2-consistency-discussion-strength-bonuses-and-slings/p1

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

Post edited by Bhryaen on
CamDawg

Comments

Sign In or Register to comment.