Difference between revisions of "2B Hit (PA+Y)% // -PA/MA/SP (X)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [2b] 00189a90: 27bdffe8 addiu r29,r29,0xffe8 00189a94: afbf0010 sw r31,0x0010(r29) 00189a98: 0c062144 jal 0x 00188510 Physical Evade Calculation 00189a9c: 0000...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[2b]
+
  00189a90: 27bdffe8 addiu r29,r29,0xffe8     |
  00189a90: 27bdffe8 addiu r29,r29,0xffe8
+
  00189a94: afbf0010 sw r31,0x0010(r29)       |
  00189a94: afbf0010 sw r31,0x0010(r29)
+
  00189a98: 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
  00189a98: 0c062144 jal 0x 00188510      Physical Evade Calculation
+
  00189a9c: 00000000 nop                     |
  00189a9c: 00000000 nop
+
  00189aa0: 14400009 bne r2,r0,0x00189ac8    {{f/Cond|If Attack is not evaded}}
  00189aa0: 14400009 bne r2,r0,0x 00189ac8
+
  00189aa4: 00000000 nop                         |
  00189aa4: 00000000 nop
+
  00189aa8: 0c061781 jal 0x00185e04              |{{f/jal|Store_PA_and_Y|Store_PA_and_Y}} XA = Attacker's PA and YA = Ability Y
  00189aa8: 0c061781 jal 0x 00185e04      Loads PA and Y
+
  00189aac: 00000000 nop                         |
  00189aac: 00000000 nop
+
  00189ab0: 0c0621b5 jal 0x001886d4              |{{f/jal|Calculate_Accuracy_for_Physical|Calculate_Accuracy_for_Physical}} Modify XA and YA (physical) and uses XA+YA as hit% - Returns r2
  00189ab0: 0c0621b5 jal 0x 001886d4      Load (PA + Y)%
+
  00189ab4: 00000000 nop                         |
  00189ab4: 00000000 nop
+
  00189ab8: 14400003 bne r2,r0,0x00189ac8        {{f/Cond|If Attack hits}}
  00189ab8: 14400003 bne r2,r0,0x 00189ac8
+
  00189abc: 00000000 nop                             |
  00189abc: 00000000 nop
+
  00189ac0: 0c061e18 jal 0x00187860                  |{{f/jal|Determine which stat will be reduced|Determine which stat will be reduced}} Reduces stat based on Ability ID / Enhance Attack type with pseudo status flag
  00189ac0: 0c061e18 jal 0x 00187860  Determine which stat (PA/MA/SP) is reduced, Spell SlotHard-Code Routine
+
  00189ac4: 00000000 nop                             |
  00189ac4: 00000000 nop
+
  00189ac8: 8fbf0010 lw r31,0x0010(r29)       END
  00189ac8: 8fbf0010 lw r31,0x0010(r29)
+
  00189acc: 27bd0018 addiu r29,r29,0x0018
  00189acc: 27bd 0018 addiu r29,r29,0x 0018
+
  00189ad0: 03e00008 jr r31
  00189ad0: 03e00008 jr r31
 
 
  00189ad4: 00000000 nop
 
  00189ad4: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 12:14, 24 April 2022

00189a90: 27bdffe8 addiu r29,r29,0xffe8     |
00189a94: afbf0010 sw r31,0x0010(r29)       |
00189a98: 0c062144 jal 0x00188510           |-->Physical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
00189a9c: 00000000 nop                      |
00189aa0: 14400009 bne r2,r0,0x00189ac8     #If Attack is not evaded
00189aa4: 00000000 nop                          |
00189aa8: 0c061781 jal 0x00185e04               |-->Store_PA_and_Y XA = Attacker's PA and YA = Ability Y
00189aac: 00000000 nop                          |
00189ab0: 0c0621b5 jal 0x001886d4               |-->Calculate_Accuracy_for_Physical Modify XA and YA (physical) and uses XA+YA as hit% - Returns r2
00189ab4: 00000000 nop                          |
00189ab8: 14400003 bne r2,r0,0x00189ac8         #If Attack hits
00189abc: 00000000 nop                              |
00189ac0: 0c061e18 jal 0x00187860                   |-->Determine which stat will be reduced Reduces stat based on Ability ID / Enhance Attack type with pseudo status flag
00189ac4: 00000000 nop                              |
00189ac8: 8fbf0010 lw r31,0x0010(r29)       END
00189acc: 27bd0018 addiu r29,r29,0x0018
00189ad0: 03e00008 jr r31
00189ad4: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup