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

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
  [1b]
 
  [1b]
 
  *DmgMP(Y)% Hit_F(MA + X)%
 
  *DmgMP(Y)% Hit_F(MA + X)%
  0018933c: 27bdffe8 addiu r29,r29,0xffe8
+
  0018933c: 27bdffe8 addiu r29,r29,0xffe8     |
  00189340: afbf0010 sw r31,0x0010(r29)
+
  00189340: afbf0010 sw r31,0x0010(r29)       |
  00189344: 0c06216e jal 0x 001885b8    [[Magical_Evade_Calculation]] Magic Evade
+
  00189344: 0c06216e jal 0x001885b8          |{{f/jal|Magical_Evade_Calculation|Magical_Evade_Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
  00189348: 00000000 nop
+
  00189348: 00000000 nop                     |
  0018934c: 14400007 bne r2,r0,0x 0018936c Branch if evaded
+
  0018934c: 14400007 bne r2,r0,0x0018936c    {{f/Cond|If Attack is not evaded}}
  00189350: 00000000 nop
+
  00189350: 00000000 nop                         |
  00189354: 0c062289 jal 0x 00188a24  [[Calculate_Accuracy_for_Magical]] (MA + X)*Faith%
+
  00189354: 0c062289 jal 0x00188a24              |{{f/jal|Calculate_Accuracy_for_Magical|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
+
  00189358: 00000000 nop                         |
  0018935c: 14400003 bne r2,r0,0x 0018936c Branch if missed
+
  0018935c: 14400003 bne r2,r0,0x0018936c        {{f/Cond|If Attack hits}}
  00189360: 00000000 nop
+
  00189360: 00000000 nop                             |
  00189364: 0c0619a3 jal 0x 0018668c  [[MP_Damage_Routine_(Uses_Y_instead_of_X.)]]
+
  00189364: 0c0619a3 jal 0x0018668c                  |{{f/jal|Calculate_MP%25_damage|Calculate MP% damage}} Set MP damage = Y% of Target Max MP
  00189368: 00000000 nop
+
  00189368: 00000000 nop                             |
  0018936c: 8fbf0010 lw r31,0x0010(r29)
+
  0018936c: 8fbf0010 lw r31,0x0010(r29)       END
  00189370: 27bd0018 addiu r29,r29,0x 0018
+
  00189370: 27bd0018 addiu r29,r29,0x0018   
  00189374: 03e00008 jr r31
+
  00189374: 03e00008 jr r31                  
  00189378: 00000000 nop
+
  00189378: 00000000 nop                    
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

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