43 Dmg (CasMaxHP-CasCurHP)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[43]
00186e28: 3c028019 lui r2,0x8019            |
00186e2c: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer Attacker's Data Pointer
00186e30: 3c058019 lui r5,0x8019            |
00186e34: 8ca52d90 lw r5,0x2d90(r5)         |r5 = Target Current Action (TCA) data pointer Target Current Action Data Pointer
00186e38: 9443002a lhu r3,0x002a(r2)        |r3 = Attacker's max HP Load Attacker's Max HP
00186e3c: 94440028 lhu r4,0x0028(r2)        |r4 = Attacker Current HP Load Attacker's current HP
00186e40: 34020080 ori r2,r0,0x0080         |r2 = 0x80
00186e44: a0a20025 sb r2,0x0025(r5)         |Set TCA attack type to HP damage Set as HP Damage
00186e48: 00641823 subu r3,r3,r4            |r3 = Max HP - Current HP (missing HP)
00186e4c: 03e00008 jr r31                   |
00186e50: a4a30004 sh r3,0x0004(r5)         |Store Attacker's missing HP as TCA HP damage

Return location

Battle.bin
0018a490: 4F_Dmg_(CasMaxHP-CasCurHP)_Hit_(PA+X)%
0018b97c: Pre Formula Setup