Charge Calculation

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
No Parameters - Return Nothing             

Load Ability XA, Add charge Power, Store New Ability XA 
---------------------------------------------------------------------------------------------
00185f80: 3c028019 lui r2,0x8019            |
00185f84: 244238ce addiu r2,r2,0x38ce       |r2 = Current Ability XA pointer ( 0x801938ce )       801938ce 
00185f88: 3c038019 lui r3,0x8019            |
00185f8c: 906338e4 lbu r3,0x38e4(r3)        |r3 = Current Ability Charge Power ( 0x801938e4 )     801938e4 
00185f90: 94440000 lhu r4,0x0000(r2)        |r4 = Ability XA
00185f94: 00000000 nop                      |
00185f98: 00641821 addu r3,r3,r4            |r3 = Ability XA + Charge Power
00185f9c: 03e00008 jr r31                   |
00185fa0: a4430000 sh r3,0x0000(r2)         |Store New XA = XA + Charge's Power

Return Locations

Battle.bin
00188650: Weapon Damage Calculation
00188c0c: 03 Dmg_(WP^2)
00188c5c: 04 Magic Gun
00188cc4: 05 Dmg_(Weapon)
00188d1c: 06 AbsHP_(Weapon)
00188d5c: 07 Heal_(Weapon)