Final Fantasy V Research & Development / Re: FFV patches (and compatibility with each other)
« on: December 17, 2014, 06:39:19 PM »----------------
That last check is done in:Code: [Select]C2/9419: A6 2E LDX $2E
C2/941B: E0 0F 27 CPX #$270F
C2/941E: 90 03 BCC $9423
C2/9420: A2 0F 27 LDX #$270F (Max Damage = 9999)
so if you are going to patch it, that should be a good choice to start in that point.
agreed; i was favoring that spot.
Let's suppose then a PC in Lv 97 equipped with Ragnarok + Brave Blade and facing Halicarnaso:Code: [Select]Attack = 140 + 150 = 290
M = (97 * 255)/128 + 2 = 195
Damage = ((290 * 8) = 2320) * (197) = 457040 (Which is a 19 bits number)
An overflow is possible but probably nobody is going to notice it ever. It is very probable (1/8) when a number is so high than one of the three highest bits of the 16 bit capped Damage to be 1, and that means a damage of 9999.
thanks for testing.
- where are you getting 255? is that a hypothetical hack? from what i've read, Strength maxes out around 50.
- well, a little under 7/8, as 8192 (just bit 13 being set) won't be capped to 9999. but yes, it is around 85%.
still worth fixing, imho. and because the spot involved is moved with the Fractional M patch, i think it's worth including in that patch as well.
We have EVEN MORE themes now, but some old ones are gone...