Difference between revisions of "Elemental Absorb/Status"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  Elemental Absorb/Status
+
  No Parameters
  001887c4: 27bdffe8 addiu r29,r29,0xffe8
+
  001887c8: afbf0010 sw r31,0x0010(r29)
+
Returns r2 = 0x00 if Proc is triggered / Else 0x00 (r2 don't seem to be ever used)
  001887cc: 0c061c3f jal 0x001870fc Elemental Absorb
+
---------------------------------------------------------------------------------
  001887d0: 00000000 nop
+
  001887c4: 27bdffe8 addiu r29,r29,-0x0018    |
  001887d4: 0c062130 jal 0x001884c0 ?
+
  001887c8: afbf0010 sw r31,0x0010(r29)       |
  001887d8: 00000000 nop
+
  001887cc: 0c061c3f jal 0x001870fc           |{{f/jal|Elemental Absorption|Elemental Absorption}} HP damage might becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
  001887dc: 14400004 bne r2,r0,0x001887f0 If (Function return result != 0) Return (function return result)
+
  001887d0: 00000000 nop                     |
  001887e0: 00000000 nop
+
  001887d4: 0c062130 jal 0x001884c0           |{{f/jal|Conditional Status Proc Roll (19%)|Conditional Status Proc Roll (19%)}} Returns r2 = 0x00 if Proc is triggered (and enables TCA special flag 2 0x02)
  001887e4: 0c061fad jal 0x00187eb4 Status
+
  001887d8: 00000000 nop                     |
  001887e8: 00000000 nop
+
  001887dc: 14400004 bne r2,r0,0x001887f0     {{f/Cond|If Proc is triggered}} /Else branch to END with r2 = 0x01
  001887ec: 00001021 addu r2,r0,r0 Return 0
+
  001887e0: 00000000 nop                         |
  001887f0: 8fbf0010 lw r31,0x0010(r29)
+
  001887e4: 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 %)}} Add Ability status - if successful update TCA Attack type
  001887f4: 27bd0018 addiu r29,r29,0x0018
+
  001887e8: 00000000 nop                         |
  001887f8: 03e00008 jr r31
+
  001887ec: 00001021 addu r2,r0,r0               |{{f/std|<nowiki>r2 = 0x00</nowiki>}}
  001887fc: 00000000 nop
+
  001887f0: 8fbf0010 lw r31,0x0010(r29)       END
 +
  001887f4: 27bd0018 addiu r29,r29,0x0018      
 +
  001887f8: 03e00008 jr r31                    
 +
  001887fc: 00000000 nop                        
 +
=== Return location ===
 +
'''Battle.bin'''
 +
00188994: [[Truth/Formula_5E-5F_Magical_damage]]

Latest revision as of 19:02, 18 April 2022

No Parameters 

Returns r2 = 0x00 if Proc is triggered / Else 0x00 (r2 don't seem to be ever used)
---------------------------------------------------------------------------------
001887c4: 27bdffe8 addiu r29,r29,-0x0018    |
001887c8: afbf0010 sw r31,0x0010(r29)       |
001887cc: 0c061c3f jal 0x001870fc           |-->Elemental Absorption HP damage might becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
001887d0: 00000000 nop                      |
001887d4: 0c062130 jal 0x001884c0           |-->Conditional Status Proc Roll (19%) Returns r2 = 0x00 if Proc is triggered (and enables TCA special flag 2 0x02)
001887d8: 00000000 nop                      |
001887dc: 14400004 bne r2,r0,0x001887f0     #If Proc is triggered /Else branch to END with r2 = 0x01
001887e0: 00000000 nop                          |
001887e4: 0c061fad jal 0x00187eb4               |-->Apply status (to action) - (Preserve hit status, evade type, hit %) Add Ability status - if successful update TCA Attack type
001887e8: 00000000 nop                          |
001887ec: 00001021 addu r2,r0,r0                |r2 = 0x00
001887f0: 8fbf0010 lw r31,0x0010(r29)       END
001887f4: 27bd0018 addiu r29,r29,0x0018        
001887f8: 03e00008 jr r31                      
001887fc: 00000000 nop                         

Return location

Battle.bin
00188994: Truth/Formula_5E-5F_Magical_damage