Difference between revisions of "61 –Brave (Y) Hit F(MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [61] 0018ab18: 27bdffe8 addiu r29,r29,0xffe8 0018ab1c: afbf0010 sw r31,0x0010(r29) 0018ab20: 0c06216e jal 0x 001885b8 Magic Evade 0018ab24: 00000000 nop 0...")
 
m
 
Line 1: Line 1:
 
  [61]
 
  [61]
  0018ab18: 27bdffe8 addiu r29,r29,0xffe8
+
  0018ab18: 27bdffe8 addiu r29,r29,-0x0018    |
  0018ab1c: afbf0010 sw r31,0x0010(r29)
+
  0018ab1c: afbf0010 sw r31,0x0010(r29)       |
  0018ab20: 0c06216e jal 0x 001885b8      Magic Evade
+
  0018ab20: 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
  0018ab24: 00000000 nop
+
  0018ab24: 00000000 nop                     |
  0018ab28: 14400007 bne r2,r0,0x 0018ab48
+
  0018ab28: 14400007 bne r2,r0,0x0018ab48    {{f/Cond|If Attack is not evaded}}
  0018ab2c: 00000000 nop
+
  0018ab2c: 00000000 nop                         |
  0018ab30: 0c062289 jal 0x 00188a24               Evade = (MA + X)*Faith%     
+
  0018ab30: 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
  0018ab34: 00000000 nop
+
  0018ab34: 00000000 nop                         |
  0018ab38: 14400003 bne r2,r0,0x 0018ab48
+
  0018ab38: 14400003 bne r2,r0,0x0018ab48        {{f/Cond|If Attack hits}}
  0018ab3c: 00000000 nop
+
  0018ab3c: 00000000 nop                             |
  0018ab40: 0c061ba9 jal 0x 00186ea4      -Y Brave Routine
+
  0018ab40: 0c061ba9 jal 0x00186ea4                  |{{f/jal|Y_brave|-Y Brave}} Store Ability Y as Target Brave loss
  0018ab44: 00000000 nop
+
  0018ab44: 00000000 nop                             |
  0018ab48: 8fbf0010 lw r31,0x0010(r29)
+
  0018ab48: 8fbf0010 lw r31,0x0010(r29)       END
  0018ab4c: 27bd 0018 addiu r29,r29,0x 0018
+
  0018ab4c: 27bd0018 addiu r29,r29,0x0018
  0018ab50: 03e00008 jr r31
+
  0018ab50: 03e00008 jr r31
 
  0018ab54: 00000000 nop
 
  0018ab54: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c : [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:40, 27 April 2022

[61]
0018ab18: 27bdffe8 addiu r29,r29,-0x0018    |
0018ab1c: afbf0010 sw r31,0x0010(r29)       |
0018ab20: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018ab24: 00000000 nop                      |
0018ab28: 14400007 bne r2,r0,0x0018ab48     #If Attack is not evaded
0018ab2c: 00000000 nop                          |
0018ab30: 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
0018ab34: 00000000 nop                          |
0018ab38: 14400003 bne r2,r0,0x0018ab48         #If Attack hits
0018ab3c: 00000000 nop                              |
0018ab40: 0c061ba9 jal 0x00186ea4                   |-->-Y Brave Store Ability Y as Target Brave loss
0018ab44: 00000000 nop                              |
0018ab48: 8fbf0010 lw r31,0x0010(r29)       END
0018ab4c: 27bd0018 addiu r29,r29,0x0018
0018ab50: 03e00008 jr r31
0018ab54: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup