48 Heal (Z*10)

From Final Fantasy Hacktics Wiki
Revision as of 18:58, 25 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[48] Healing = Z * 10 (with undead reversal)
0018a250: 3c038019 lui r3,0x8019            |
0018a254: 906338db lbu r3,0x38db(r3)        |r3 = Current Ability used Item ID
0018a258: 27bdffe8 addiu r29,r29,-0x0018    |
0018a25c: afbf0010 sw r31,0x0010(r29)       |
0018a260: 00031040 sll r2,r3,0x01           |Item ID * 2
0018a264: 00431021 addu r2,r2,r3            |Item ID * 3
0018a268: 3c018006 lui r1,0x8006            |
0018a26c: 00220821 addu r1,r1,r2            |r1 = 80060000 + ID * 3 (Item offset in secondary Data)
0018a270: 90233f99 lbu r3,0x3f99(r1)        |r3 = Used Item Z value  0x80063f98 + 0x01 + used Item offset
0018a274: 00000000 nop                      |
0018a278: 00031080 sll r2,r3,0x02           |Z * 4
0018a27c: 00431021 addu r2,r2,r3            |Z * 5
0018a280: 3c038019 lui r3,0x8019            |
0018a284: 8c632d90 lw r3,0x2d90(r3)         |r3 =Target Current Action (TCA) data pointer
0018a288: 00021040 sll r2,r2,0x01           |Z * 10
0018a28c: 0c061cd4 jal 0x00187350           |-->Undead_Reversal Switch HP damage to HP recovery if Target isn't undead / Else Nullify 0x80193860
0018a290: a4620004 sh r2,0x0004(r3)         |Store Z *10 as TCA HP damage
0018a294: 8fbf0010 lw r31,0x0010(r29)
0018a298: 27bd0018 addiu r29,r29,0x0018
0018a29c: 03e00008 jr r31
0018a2a0: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup