Difference between revisions of "10 AbsHP (Y)% Hit F(MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [10] 001890dc: 27bdffe8 addiu r29,r29,0xffe8 001890e0: afbf0010 sw r31,0x0010(r29) 001890e4: 0c06216e jal 0x 001885b8 Magic Evade 001890e8: 00000000 nop 0018...")
 
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
  [10]
 
  [10]
  001890dc: 27bdffe8 addiu r29,r29,0xffe8
+
  001890dc: 27bdffe8 addiu r29,r29,-0x0018 
  001890e0: afbf0010 sw r31,0x0010(r29)
+
  001890e0: afbf0010 sw r31,0x0010(r29)    
  001890e4: 0c06216e jal 0x 001885b8            Magic Evade
+
  001890e4: 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
  001890e8: 00000000 nop
+
  001890e8: 00000000 nop                     |
  001890ec: 14400009 bne r2,r0,0x 00189114
+
  001890ec: 14400009 bne r2,r0,0x00189114    {{f/Cond|If Attack is not Evaded}}
  001890f0: 00000000 nop
+
  001890f0: 00000000 nop                         |
  001890f4: 0c062273 jal 0x 001889cc            Calculate (MA + X)*Faith% This is essentially the same routine as 0x188a24 except without elemental boosting.
+
  001890f4: 0c062273 jal 0x001889cc              |{{f/jal|Calculate Accuracy for Magical Spells|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
+
  001890f8: 00000000 nop                         |
  001890fc: 14400005 bne r2,r0,0x 00189114
+
  001890fc: 14400005 bne r2,r0,0x00189114        {{f/Cond|If Attack Hits}}
  00189100: 00000000 nop
+
  00189100: 00000000 nop                             |
  00189104: 0c061989 jal 0x 00186624    Calculate damage as % of HP
+
  00189104: 0c061989 jal 0x00186624                  |{{f/jal|Calculate HP% damage  |Calculate HP% damage }} Set Target Current Action HP damage to [Used Ability Y]% of Target max HP
  00189108: 00000000 nop
+
  00189108: 00000000 nop                             |
  0018910c: 0c061c92 jal 0x 00187248    Absorption Calculation
+
  0018910c: 0c061c92 jal 0x00187248                  |{{f/jal|HP Absorption|HP Absorption}} Add HP recovery to Attacker action / Manages undead reversal mechanics
  00189110: 00000000 nop
+
  00189110: 00000000 nop                             |
  00189114: 8fbf0010 lw r31,0x0010(r29)
+
  00189114: 8fbf0010 lw r31,0x0010(r29)       END
  00189118: 27bd 0018 addiu r29,r29,0x 0018
+
  00189118: 27bd0018 addiu r29,r29,0x0018   
  0018911c: 03e00008 jr r31
+
  0018911c: 03e00008 jr r31                  
 
  00189120: 00000000 nop
 
  00189120: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
  8018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:53, 16 April 2022

[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