Store PA and WP + Y

From Final Fantasy Hacktics Wiki
Revision as of 19:33, 20 April 2022 by Orkney (talk | contribs)
Jump to navigation Jump to search
No Parameters - Returns Nothing

Set Current Ability XA = Attacker's Parameters
Set Current Ability YA = Used Weapon Power + Used Ability Y
-----------------------------------------------------------------------------------------------------
00185e5c: 3c048019 lui r4,0x8019            |
00185e60: 8c842d94 lw r4,0x2d94(r4)         |r4 = Attacker data pointer
00185e64: 3c028019 lui r2,0x8019            |
00185e68: 90423902 lbu r2,0x3902(r2)        |r2 = Current Ability used Weapon Power
00185e6c: 3c038019 lui r3,0x8019            |
00185e70: 906338fa lbu r3,0x38fa(r3)        |r3 = Current Ability used Ability Y
00185e74: 90840036 lbu r4,0x0036(r4)        |r4 = Attacker's  PA
00185e78: 00431021 addu r2,r2,r3            |r2 = Weapon Power + Ability Y
00185e7c: 3c018019 lui r1,0x8019            |
00185e80: a42238d0 sh r2,0x38d0(r1)         |Store WP + Y as Current Ability YA
00185e84: 3c018019 lui r1,0x8019            |
00185e88: a42438ce sh r4,0x38ce(r1)         |Store PA as Current Ability XA
00185e8c: 03e00008 jr r31
00185e90: 00000000 nop

Return Locations

Battle.bin
0018973c: 25 Equipped: Break Hit_(PA+WP+X)%
00189b40: 2D Dmg_(PA*(WP+Y)) 100% Status