Difference between revisions of "4D AbsHP (Y)% Hit (MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
 
+
  0018a3d0: 27bdffe8 addiu r29,r29,-0x0018    |
[4d]
+
  0018a3d4: afbf0010 sw r31,0x0010(r29)       |
  0018a3d0: 27bdffe8 addiu r29,r29,0xffe8
+
  0018a3d8: 0c062144 jal 0x00188510          |{{f/jal|Physical Evade Calculation|Physical Evade Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
  0018a3d4: afbf0010 sw r31,0x0010(r29)
+
  0018a3dc: 00000000 nop                     |
  0018a3d8: 0c062144 jal 0x 00188510      Physical Evade Calculation
+
  0018a3e0: 1440000b bne r2,r0,0x0018a410    {{f/Cond|If Attack is not evaded}}
  0018a3dc: 00000000 nop
+
  0018a3e4: 00000000 nop                         |
  0018a3e0: 1440000b bne r2,r0,0x 0018a410
+
  0018a3e8: 0c061760 jal 0x00185d80              |{{f/jal|Store_MA_and_X|Store_MA_and_X}} Set Ability XA = Attacker's MA and YA = used Ability X
  0018a3e4: 00000000 nop
+
  0018a3ec: 00000000 nop                         |
  0018a3e8: 0c061760 jal 0x 00185d80      Get MA and X
+
  0018a3f0: 0c0622c5 jal 0x00188b14              |{{f/jal|Physical_Routine_for_Hit_%25_abilities|Physical_Routine_for_Hit_%_abilities}} Modify XA (Physical modifiers), Applies Compatibility on XA and YA, uses XA+YA as hit% - Returns r2
  0018a3ec: 00000000 nop
+
  0018a3f4: 00000000 nop                         |
  0018a3f0: 0c0622c5 jal 0x 00188b14      Hit Chance Calculation (Has superfluous checks for frog/berserk.)
+
  0018a3f8: 14400005 bne r2,r0,0x0018a410        {{f/Cond|If Attack hits}}
  0018a3f4: 00000000 nop
+
  0018a3fc: 00000000 nop                             |
  0018a3f8: 14400005 bne r2,r0,0x 0018a410
+
  0018a400: 0c061989 jal 0x00186624                  |{{f/jal|Calculate_HP%25_damage|Calculate_HP%_damage}} Set Target Current Action HP damage to [Used Ability Y]% of Target max HP
  0018a3fc: 00000000 nop
+
  0018a404: 00000000 nop                             |
  0018a400: 0c061989 jal 0x 00186624      Deal Y% HP Damage
+
  0018a408: 0c061c92 jal 0x00187248                  |{{f/jal|HP_Absorption|HP_Absorption}} Add HP recovery to Attacker action / Manages undead reversal mechanics
  0018a404: 00000000 nop
+
  0018a40c: 00000000 nop                             |
  0018a408: 0c061c92 jal 0x 00187248      HP Absorb
+
  0018a410: 8fbf0010 lw r31,0x0010(r29)       END
  0018a40c: 00000000 nop
+
  0018a414: 27bd0018 addiu r29,r29,0x0018
  0018a410: 8fbf0010 lw r31,0x0010(r29)
+
  0018a418: 03e00008 jr r31
  0018a414: 27bd 0018 addiu r29,r29,0x 0018
 
  0018a418: 03e00008 jr r31
 
 
  0018a41c: 00000000 nop
 
  0018a41c: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:31, 25 April 2022

0018a3d0: 27bdffe8 addiu r29,r29,-0x0018    |
0018a3d4: afbf0010 sw r31,0x0010(r29)       |
0018a3d8: 0c062144 jal 0x00188510           |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
0018a3dc: 00000000 nop                      |
0018a3e0: 1440000b bne r2,r0,0x0018a410     #If Attack is not evaded
0018a3e4: 00000000 nop                          |
0018a3e8: 0c061760 jal 0x00185d80               |-->Store_MA_and_X Set Ability XA = Attacker's MA and YA = used Ability X
0018a3ec: 00000000 nop                          |
0018a3f0: 0c0622c5 jal 0x00188b14               |-->Physical_Routine_for_Hit_%_abilities Modify XA (Physical modifiers), Applies Compatibility on XA and YA, uses XA+YA as hit% - Returns r2
0018a3f4: 00000000 nop                          |
0018a3f8: 14400005 bne r2,r0,0x0018a410         #If Attack hits
0018a3fc: 00000000 nop                              |
0018a400: 0c061989 jal 0x00186624                   |-->Calculate_HP%_damage Set Target Current Action HP damage to [Used Ability Y]% of Target max HP
0018a404: 00000000 nop                              |
0018a408: 0c061c92 jal 0x00187248                   |-->HP_Absorption Add HP recovery to Attacker action / Manages undead reversal mechanics
0018a40c: 00000000 nop                              |
0018a410: 8fbf0010 lw r31,0x0010(r29)       END
0018a414: 27bd0018 addiu r29,r29,0x0018
0018a418: 03e00008 jr r31
0018a41c: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup