16 DmgMP (TarCurMP) Hit F(MA+X)%

From Final Fantasy Hacktics Wiki
Revision as of 18:50, 17 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[16]
00189204: 27bdffe8 addiu r29,r29,0xffe8     |
00189208: afbf0010 sw r31,0x0010(r29)       |
0018920c: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
00189210: 00000000 nop                      |
00189214: 1440000d bne r2,r0,0x0018924c     #If Attack is not evaded
00189218: 00000000 nop                          |
0018921c: 0c062273 jal 0x001889cc               |-->Calculate Accuracy for Magical Spells Set XA and YA, applies XA changes (Status, Compat, Support), uses XA+YA as Hit% (Modified by faith) / Returns r2
00189220: 00000000 nop                          |
00189224: 14400009 bne r2,r0,0x0018924c         #if Attack hits
00189228: 00000000 nop                              |
0018922c: 3c028019 lui r2,0x8019                    |
00189230: 8c422d98 lw r2,0x2d98(r2)                 |r2 = Target data pointer
00189234: 3c038019 lui r3,0x8019                    |
00189238: 8c632d90 lw r3,0x2d90(r3)                 |r3 = Targeet Current Action data pointer
0018923c: 9444002c lhu r4,0x002c(r2)                |r4 = Target current MP
00189240: 34020020 ori r2,r0,0x0020                 |r2 = 0x20 (MP damage Attack type)
00189244: a0620025 sb r2,0x0025(r3)                 |Set TCA Attack type to MP damage (disables other flags)
00189248: a4640008 sh r4,0x0008(r3)                 |Set TCA MP damage = Target current MP
0018924c: 8fbf0010 lw r31,0x0010(r29)       END
00189250: 27bd0018 addiu r29,r29,0x0018     
00189254: 03e00008 jr r31                   
00189258: 00000000 nop                      

Return locations

Battle.bin
0018b97c - Pre Formula Setup