10 AbsHP (Y)% Hit F(MA+X)%

From Final Fantasy Hacktics Wiki
Revision as of 19:53, 16 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[10]
001890dc: 27bdffe8 addiu r29,r29,-0x0018   
001890e0: afbf0010 sw r31,0x0010(r29)      
001890e4: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
001890e8: 00000000 nop                      |
001890ec: 14400009 bne r2,r0,0x00189114     #If Attack is not Evaded
001890f0: 00000000 nop                          |
001890f4: 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
001890f8: 00000000 nop                          |
001890fc: 14400005 bne r2,r0,0x00189114         #If Attack Hits
00189100: 00000000 nop                              |
00189104: 0c061989 jal 0x00186624                   |-->Calculate HP% damage   Set Target Current Action HP damage to [Used Ability Y]% of Target max HP
00189108: 00000000 nop                              |
0018910c: 0c061c92 jal 0x00187248                   |-->HP Absorption Add HP recovery to Attacker action / Manages undead reversal mechanics
00189110: 00000000 nop                              |
00189114: 8fbf0010 lw r31,0x0010(r29)       END
00189118: 27bd0018 addiu r29,r29,0x0018     
0018911c: 03e00008 jr r31                   
00189120: 00000000 nop

Return location

Battle.bin
 8018b97c - Pre Formula Setup