45 Dmg (TarMaxHP-TarCurHP)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[45]
00186e78: 3c028019 lui r2,0x8019            |
00186e7c: 8c422d98 lw r2,0x2d98(r2)         |r2 = Target data pointer
00186e80: 3c058019 lui r5,0x8019            |
00186e84: 8ca52d90 lw r5,0x2d90(r5)         |r5 = Target Current Action (TCA) data pointer
00186e88: 9443002a lhu r3,0x002a(r2)        |r3 = Target's Max HP
00186e8c: 94440028 lhu r4,0x0028(r2)        |r4 = Target's current HP
00186e90: 34020080 ori r2,r0,0x0080         |r2 = 0x80
00186e94: a0a20025 sb r2,0x0025(r5)         |Set TCA Attack type to HP damage
00186e98: 00641823 subu r3,r3,r4            |r3 = Target missing HP (Max - Current)
00186e9c: 03e00008 jr r31                   |
00186ea0: a4a30004 sh r3,0x0004(r5)         |Store Target missing HP as TCA HP damage

Return location

Battle.bin
0018b97c - Pre Formula Setup