Y brave

From Final Fantasy Hacktics Wiki
Revision as of 19:38, 27 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 Ability Y as Target brave loss
Set TCA Attack type to pseudo status
--------------------------------------------------------------------------------
00186ea4: 3c028019 lui r2,0x8019            |
00186ea8: 904238fa lbu r2,0x38fa(r2)        |r2 = Current Ability used Ability Y
00186eac: 3c038019 lui r3,0x8019            |
00186eb0: 8c632d90 lw r3,0x2d90(r3)         |r3 = Target Current Action (TCA) data pointer
00186eb4: 3042007f andi r2,r2,0x007f        |r2 = Y without 0x80 bit (Stat bonus flag)
00186eb8: a0620016 sb r2,0x0016(r3)         |Store Y as TCA Brave loss
00186ebc: 3c038019 lui r3,0x8019            |
00186ec0: 8c632d90 lw r3,0x2d90(r3)         |r2 = TCA data pointer
00186ec4: 34020001 ori r2,r0,0x0001         |r2 = 0x01
00186ec8: 03e00008 jr r31                   |
00186ecc: a0620025 sb r2,0x0025(r3)         |Set TCA Attack type as pseudo status

Return locations

Battle.bin
0018ab48: 61_–Brave_(Y)_Hit_F(MA+X)%
0018ab88: 62_–Brave_(Y)_Hit_(MA+X)%