Difference between revisions of "1B DmgMP (Y)% Hit F(MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(No difference)

Latest revision as of 19:59, 17 April 2022

[1b]
*DmgMP(Y)% Hit_F(MA + X)%
0018933c: 27bdffe8 addiu r29,r29,0xffe8     |
00189340: afbf0010 sw r31,0x0010(r29)       |
00189344: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
00189348: 00000000 nop                      |
0018934c: 14400007 bne r2,r0,0x0018936c     #If Attack is not evaded
00189350: 00000000 nop                          |
00189354: 0c062289 jal 0x00188a24               |-->Calculate_Accuracy_for_Magical Set XA and YA, applies XA changes (Status, Compat, Support,element), uses XA+YA as Hit% (Modified by faith) / Returns r2
00189358: 00000000 nop                          |
0018935c: 14400003 bne r2,r0,0x0018936c         #If Attack hits
00189360: 00000000 nop                              |
00189364: 0c0619a3 jal 0x0018668c                   |-->Calculate MP% damage Set MP damage = Y% of Target Max MP
00189368: 00000000 nop                              |
0018936c: 8fbf0010 lw r31,0x0010(r29)       END
00189370: 27bd0018 addiu r29,r29,0x0018     
00189374: 03e00008 jr r31                   
00189378: 00000000 nop                      

Return location

Battle.bin
0018b97c - Pre Formula Setup