100% HP/MP Healing (actual)

From Final Fantasy Hacktics Wiki
Revision as of 19:09, 25 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No Parameters - Returns Nothing

Set Target Current Action (TCA) HP damage = Target Max HP
Set TCA MP recovery = Target Max MP
Set TCA Attack type as HP damage and MP recovery

Note HP damage will be switch to HP recovery later in undead reversal routine
--------------------------------------------------------------------------------
001882c8: 3c048019 lui r4,0x8019            |
001882cc: 8c842d98 lw r4,0x2d98(r4)         |r4 = Target data pointer
001882d0: 3c038019 lui r3,0x8019            |
001882d4: 8c632d90 lw r3,0x2d90(r3)         |r3 = Target Current Action (TCA) data pointer
001882d8: 9482002a lhu r2,0x002a(r4)        |r2 = Target's Max HP
001882dc: 00000000 nop                      |
001882e0: a4620004 sh r2,0x0004(r3)         |Store Target Max HP as TCA HP damage
001882e4: 9484002e lhu r4,0x002e(r4)        |r4 = Target Max MP
001882e8: 34020090 ori r2,r0,0x0090         |r2 = 0x90
001882ec: a0620025 sb r2,0x0025(r3)         |Set TCA Attack Type as HP damage and MP recovery
001882f0: 03e00008 jr r31                   |
001882f4: a464000a sh r4,0x000a(r3)         |Store Target Max MP as TCA MP recovery

Return locations

Battle.bin
0018a2d4: Elixer_Formula
0018a76c: 57_+Lvl(1)_NS_100%_Add_Status_on_Caster