Difference between revisions of "50 Hit (MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [50] 0018a4a0: 27bdffe8 addiu r29,r29,0xffe8 0018a4a4: afbf0010 sw r31,0x0010(r29) 0018a4a8: 0c062144 jal 0x 00188510 Physical Evade Calculation 0018a4ac: 0000...")
 
m
 
Line 1: Line 1:
[50]
+
  0018a4a0: 27bdffe8 addiu r29,r29,0xffe8     |
  0018a4a0: 27bdffe8 addiu r29,r29,0xffe8
+
  0018a4a4: afbf0010 sw r31,0x0010(r29)       |
  0018a4a4: afbf0010 sw r31,0x0010(r29)
+
  0018a4a8: 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
  0018a4a8: 0c062144 jal 0x 00188510      Physical Evade Calculation
+
  0018a4ac: 00000000 nop                     |
  0018a4ac: 00000000 nop
+
  0018a4b0: 14400009 bne r2,r0,0x0018a4d8    {{f/Cond|If Attack is not evaded}}
  0018a4b0: 14400009 bne r2,r0,0x 0018a4d8
+
  0018a4b4: 00000000 nop                         |
  0018a4b4: 00000000 nop
+
  0018a4b8: 0c061760 jal 0x00185d80              |{{f/jal|Store_MA_and_X|Store_MA_and_X}} Set Ability XA = Attacker's MA and YA = used Ability X
  0018a4b8: 0c061760 jal 0x 00185d80      Get X and MA
+
  0018a4bc: 00000000 nop                         |
  0018a4bc: 00000000 nop
+
  0018a4c0: 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
  0018a4c0: 0c0622c5 jal 0x 00188b14      Hit Chance Calculation (Has superfluous checks for frog/berserk.)
+
  0018a4c4: 00000000 nop                         |
  0018a4c4: 00000000 nop
+
  0018a4c8: 14400003 bne r2,r0,0x0018a4d8        {{f/Cond|If Attack hits}}
  0018a4c8: 14400003 bne r2,r0,0x 0018a4d8
+
  0018a4cc: 00000000 nop                             |
  0018a4cc: 00000000 nop
+
  0018a4d0: 0c061fc9 jal 0x00187f24                  |{{f/jal|Apply_status_(to_action)|Apply_status_(to_action)}} Add Ability status - if successful update TCA Attack type
  0018a4d0: 0c061fc9 jal 0x 00187f24      Status Proc at (MA + X)%
+
  0018a4d4: 00000000 nop                             |
  0018a4d4: 00000000 nop
+
  0018a4d8: 8fbf0010 lw r31,0x0010(r29)       END
  0018a4d8: 8fbf0010 lw r31,0x0010(r29)
+
  0018a4dc: 27bd0018 addiu r29,r29,0x0018
  0018a4dc: 27bd 0018 addiu r29,r29,0x 0018
+
  0018a4e0: 03e00008 jr r31
  0018a4e0: 03e00008 jr r31
 
 
  0018a4e4: 00000000 nop
 
  0018a4e4: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c : [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:44, 25 April 2022

0018a4a0: 27bdffe8 addiu r29,r29,0xffe8     |
0018a4a4: afbf0010 sw r31,0x0010(r29)       |
0018a4a8: 0c062144 jal 0x00188510           |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
0018a4ac: 00000000 nop                      |
0018a4b0: 14400009 bne r2,r0,0x0018a4d8     #If Attack is not evaded
0018a4b4: 00000000 nop                          |
0018a4b8: 0c061760 jal 0x00185d80               |-->Store_MA_and_X Set Ability XA = Attacker's MA and YA = used Ability X
0018a4bc: 00000000 nop                          |
0018a4c0: 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
0018a4c4: 00000000 nop                          |
0018a4c8: 14400003 bne r2,r0,0x0018a4d8         #If Attack hits
0018a4cc: 00000000 nop                              |
0018a4d0: 0c061fc9 jal 0x00187f24                   |-->Apply_status_(to_action) Add Ability status - if successful update TCA Attack type
0018a4d4: 00000000 nop                              |
0018a4d8: 8fbf0010 lw r31,0x0010(r29)       END
0018a4dc: 27bd0018 addiu r29,r29,0x0018
0018a4e0: 03e00008 jr r31
0018a4e4: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup