Difference between revisions of "08 Dmg F(MA*Y)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[08] General Magic (MA * Y)
+
  00188d84: 27bdffe8 addiu r29,r29,-0x0018    |
  00188d84: 27bdffe8 addiu r29,r29,0xffe8
+
  00188d88: afbf0010 sw r31,0x0010(r29)       |
  00188d88: afbf0010 sw r31,0x0010(r29)
+
  00188d8c: 0c06216e jal 0x001885b8          |{{f/jal| Magical Evade Calculation| Magical Evade Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit
  00188d8c: 0c06216e jal 0x 001885b8      [[Magical Evade Calculation]]
+
  00188d90: 00000000 nop                     |
  00188d90: 00000000 nop
+
  00188d94: 14400013 bne r2,r0,0x00188de4    {{f/Cond|If Attack hits}}
  00188d94: 14400013 bne r2,r0,0x 00188de4 Branch if attack is evaded
+
  00188d98: 00000000 nop                         |
  00188d98: 00000000 nop
+
  00188d9c: 0c061725 jal 0x00185c94              |{{f/jal| Store MA and Y| Store MA and Y}}  XA = Attacker's MA and YA = used Ability Y
  00188d9c: 0c061725 jal 0x 00185c94      [[Store MA and Y]]
+
  00188da0: 00000000 nop                         |
  00188da0: 00000000 nop
+
  00188da4: 0c0617ff jal 0x00185ffc              |{{f/jal| Elemental Strengthen| Elemental Strengthen}} XA + 25% if used Ability Element is strengthened
  00188da4: 0c0617ff jal 0x 00185ffc      [[Elemental Strengthen]]
+
  00188da8: 00000000 nop                         |
  00188da8: 00000000 nop
+
  00188dac: 0c0621d1 jal 0x00188744              |{{f/jal| Magical Support/Status/Compat| Magical Support/Status/Compat}} Modify Ability XA (Support Abilities, Status, Compatibility)
  00188dac: 0c0621d1 jal 0x 00188744      [[Magical Support/Status/Compat]]
+
  00188db0: 00000000 nop                         |
  00188db0: 00000000 nop
+
  00188db4: 0c0621df jal 0x0018877c              |{{f/jal| Elemental XA * YA| Elemental XA * YA}} Turns XA * YA in HP damage / Modify Damage based on Elements / Returns r2 = 0x00 if Attack hits
  00188db4: 0c0621df jal 0x 0018877c      [[Elemental XA * YA]]
+
  00188db8: 00000000 nop                         |
  00188db8: 00000000 nop
+
  00188dbc: 14400009 bne r2,r0,0x00188de4        {{f/Cond|If Attack hits}} (might be nullified if Target cancels Ability element)
  00188dbc: 14400009 bne r2,r0,0x 00188de4
+
  00188dc0: 00000000 nop                             |
  00188dc0: 00000000 nop
+
  00188dc4: 0c061c54 jal 0x00187150                  |{{f/jal|Faith Calculation|Faith Calculation}} Damage becomes Damage*Target Faith/100 * Attacker Faith/100
  00188dc4: 0c061c54 jal 0x 00187150      [[Faith Calculation]]
+
  00188dc8: 00000000 nop                             |
  00188dc8: 00000000 nop
+
  00188dcc: 0c0621c7 jal 0x0018871c                  |{{f/jal|Elemental Absorb and status roll|Elemental Absorb and status roll}} Turns HP damage into recovery (if element is absorbed) / returns r2 = 0x00 if proc is triggered
  00188dcc: 0c0621c7 jal 0x 0018871c      [[Elemental Absorb and status roll]]
+
  00188dd0: 00000000 nop                             |
  00188dd0: 00000000 nop
+
  00188dd4: 14400003 bne r2,r0,0x00188de4            {{f/Cond|If Proc is triggered}}
  00188dd4: 14400003 bne r2,r0,0x 00188de4 Branch if status effect roll fails
+
  00188dd8: 00000000 nop                                 |
  00188dd8: 00000000 nop
+
  00188ddc: 0c061fad jal 0x00187eb4                      |{{f/jal|Apply status (to action) - (Preserve hit status, evade type, hit %)|Apply status (to action) - (Preserve hit status, evade type, hit %)}} Update Target Current Action status infliction/Removal
  00188ddc: 0c061fad jal 0x 00187eb4      [[Apply status (to action) - (Preserve hit status, evade type, hit %)]]
+
  00188de0: 00000000 nop                                 |
  00188de0: 00000000 nop
+
  00188de4: 8fbf0010 lw r31,0x0010(r29)       END
  00188de4: 8fbf0010 lw r31,0x0010(r29)
+
  00188de8: 27bd0018 addiu r29,r29,0x0018   
  00188de8: 27bd 0018 addiu r29,r29,0x 0018
+
  00188dec: 03e00008 jr r31                  
  00188dec: 03e00008 jr r31
+
  00188df0: 00000000 nop  
  00188df0: 00000000 nop
+
=== Return location ===
 +
'''Battle.bin'''
 +
  8018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:46, 13 April 2022

00188d84: 27bdffe8 addiu r29,r29,-0x0018    |
00188d88: afbf0010 sw r31,0x0010(r29)       |
00188d8c: 0c06216e jal 0x001885b8           |--> Magical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit
00188d90: 00000000 nop                      |
00188d94: 14400013 bne r2,r0,0x00188de4     #If Attack hits
00188d98: 00000000 nop                          |
00188d9c: 0c061725 jal 0x00185c94               |--> Store MA and Y  XA = Attacker's MA and YA = used Ability Y
00188da0: 00000000 nop                          |
00188da4: 0c0617ff jal 0x00185ffc               |--> Elemental Strengthen XA + 25% if used Ability Element is strengthened
00188da8: 00000000 nop                          |
00188dac: 0c0621d1 jal 0x00188744               |--> Magical Support/Status/Compat Modify Ability XA (Support Abilities, Status, Compatibility)
00188db0: 00000000 nop                          |
00188db4: 0c0621df jal 0x0018877c               |--> Elemental XA * YA Turns XA * YA in HP damage / Modify Damage based on Elements / Returns r2 = 0x00 if Attack hits
00188db8: 00000000 nop                          |
00188dbc: 14400009 bne r2,r0,0x00188de4         #If Attack hits (might be nullified if Target cancels Ability element)
00188dc0: 00000000 nop                              |
00188dc4: 0c061c54 jal 0x00187150                   |-->Faith Calculation Damage becomes Damage*Target Faith/100 * Attacker Faith/100
00188dc8: 00000000 nop                              |
00188dcc: 0c0621c7 jal 0x0018871c                   |-->Elemental Absorb and status roll Turns HP damage into recovery (if element is absorbed) / returns r2 = 0x00 if proc is triggered
00188dd0: 00000000 nop                              |
00188dd4: 14400003 bne r2,r0,0x00188de4             #If Proc is triggered
00188dd8: 00000000 nop                                  |
00188ddc: 0c061fad jal 0x00187eb4                       |-->Apply status (to action) - (Preserve hit status, evade type, hit %) Update Target Current Action status infliction/Removal
00188de0: 00000000 nop                                  |
00188de4: 8fbf0010 lw r31,0x0010(r29)       END
00188de8: 27bd0018 addiu r29,r29,0x0018     
00188dec: 03e00008 jr r31                   
00188df0: 00000000 nop 

Return location

Battle.bin
 8018b97c - Pre Formula Setup