[(BG2) bug] Kensai/monk weapon speed bonuses
The weapon speed increase of monks and kensais don't work. Since the bonuses aren't cumulative, they have to be set at each relevant level when called by the clabXXX.2da:
COPY_EXISTING ~spcl143.spl~ ~override~
~spcl816.spl~ ~override~
PATCH_IF ("%SOURCE_RES%" STRING_COMPARE_CASE "spcl143" = 0) BEGIN
SET loops = 10 SET progression = 4 END ELSE BEGIN SET loops = 2 SET progression = 12
END
READ_LONG 0x64 abil_off
READ_SHORT 0x68 abil_num
WRITE_SHORT 0x68 loops
READ_LONG 0x6a fx_off
WRITE_LONG 0x6a (fx_off + (0x28 * (loops - 1)))
READ_ASCII abil_off abil_clone (0x28) // clone lev1 header
READ_ASCII fx_off fx_clone (0x30) // clone lone effect
FOR (index = 1 ; index < loops ; ++index) BEGIN
INSERT_BYTES (abil_off + (index * 0x28)) 0x28 // insert new header
WRITE_ASCIIE (abil_off + (index * 0x28)) "%abil_clone%" // insert cloned lev1 header
WRITE_SHORT (abil_off + 0x10 + (index * 0x28)) (index * progression) // min level
WRITE_SHORT (abil_off + 0x20 + (index * 0x28)) index // fx index
INSERT_BYTES (fx_off + (0x58 * index)) 0x30 // insert new fx, allow for new abils and fx
WRITE_ASCIIE (fx_off + (0x58 * index)) "%fx_clone%" // insert cloned lev1 effect
WRITE_LONG (fx_off + 0x04 + (0x58 * index)) (index + 1) // set weapon speed bonus
END
Post edited by Tanthalas on
1
Comments
SPCL143, SPCL816 now have a level-based attack speed system setup: I think I prefer the monk bonuses better...
Actually I'm not sure if it's the monk or kensai that gets held back, but the bonus is to weapon speed, not APR or THAC0 or anything, so it's not a major difference regardless. It's just that the kensai doesn't become a superspeeddemon the way a monk does, just gets a boost in their special weapon use I presume.
As for the Monk:
@CamDawg, @AndreaColombo and maybe @SethDavis?
So, currently with this fix the Monk gets a -1 speed factor bonus at levels 1 and 12, but as AndreaColombo mentioned, the class description states that they should receive these bonuses at level 8 and 12.
Either the description needs to be changed or the speed factor needs to be moved from level 1 to level8. Or am I missing something here Camdawg?
We could have moved this to confirmed fixed, but this is yet another fix that's been applied repeatedly and corrupted the file. I've attached fixed spell files.
@SethDavis
CamDawg has provided the fixed spell files for this one.