Difference between revisions of "27 StealGil (CasLVL*SP) Hit (SP+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [27] 00189828: 27bdffe8 addiu r29,r29,0xffe8 0018982c: afbf0010 sw r31,0x0010(r29) 00189830: 0c062144 jal 0x 00188510 Physical Evade Calculation 00189834: 0000...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
  [27]
 
  [27]
  00189828: 27bdffe8 addiu r29,r29,0xffe8
+
  00189828: 27bdffe8 addiu r29,r29,-0x0018    |
  0018982c: afbf0010 sw r31,0x0010(r29)
+
  0018982c: afbf0010 sw r31,0x0010(r29)       |
  00189830: 0c062144 jal 0x 00188510      Physical Evade Calculation
+
  00189830: 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
  00189834: 00000000 nop
+
  00189834: 00000000 nop                     |
  00189838: 14400009 bne r2,r0,0x 00189860
+
  00189838: 14400009 bne r2,r0,0x00189860    {{f/Cond|If Attack is not evaded}}
  0018983c: 00000000 nop
+
  0018983c: 00000000 nop                         |
  00189840: 0c06178c jal 0x 00185e30      Load SP and X
+
  00189840: 0c06178c jal 0x00185e30              |{{f/jal|Store_Speed_and_X|Store_Speed_and_X}} Ability XA = Attacker's speed and Ability YA = used Ability X
  00189844: 00000000 nop
+
  00189844: 00000000 nop                         |
  00189848: 0c0622c5 jal 0x 00188b14      Hit Chance Calculation (Contains superfluous checks for berserk and frog on the user when the user can't use this while berserk or frogged.)
+
  00189848: 0c0622c5 jal 0x00188b14              |{{f/jal|Physical_Routine_for_Hit_%25_abilities|Physical_Routine_for_Hit_%25_abilities}} Modify XA (Physical modifiers), Applies Compatibility on XA and YA, uses XA+YA as hit% - Returns r2
  0018984c: 00000000 nop
+
  0018984c: 00000000 nop                         |
  00189850: 14400003 bne r2,r0,0x 00189860
+
  00189850: 14400003 bne r2,r0,0x00189860        {{f/Cond|If Attack hits}}
  00189854: 00000000 nop
+
  00189854: 00000000 nop                             |
  00189858: 0c0619d1 jal 0x 00186744      Steal Gil Effect
+
  00189858: 0c0619d1 jal 0x00186744                  |{{f/jal|Steal_Gil|Steal_Gil}} Calculate Stolen Gil, update Target and Attacker Action data (gain or loss)
  0018985c: 00000000 nop
+
  0018985c: 00000000 nop                             |
  00189860: 8fbf0010 lw r31,0x0010(r29)
+
  00189860: 8fbf0010 lw r31,0x0010(r29)       END
  00189864: 27bd 0018 addiu r29,r29,0x 0018
+
  00189864: 27bd0018 addiu r29,r29,0x0018   
  00189868: 03e00008 jr r31
+
  00189868: 03e00008 jr r31
 
  0018986c: 00000000 nop
 
  0018986c: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 05:35, 22 April 2022

[27]
00189828: 27bdffe8 addiu r29,r29,-0x0018    |
0018982c: afbf0010 sw r31,0x0010(r29)       |
00189830: 0c062144 jal 0x00188510           |-->Physical_Evade_Calculation  If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
00189834: 00000000 nop                      |
00189838: 14400009 bne r2,r0,0x00189860     #If Attack is not evaded
0018983c: 00000000 nop                          |
00189840: 0c06178c jal 0x00185e30               |-->Store_Speed_and_X Ability XA = Attacker's speed and Ability YA = used Ability X
00189844: 00000000 nop                          |
00189848: 0c0622c5 jal 0x00188b14               |-->Physical_Routine_for_Hit_%25_abilities Modify XA (Physical modifiers), Applies Compatibility on XA and YA, uses XA+YA as hit% - Returns r2
0018984c: 00000000 nop                          |
00189850: 14400003 bne r2,r0,0x00189860         #If Attack hits
00189854: 00000000 nop                              |
00189858: 0c0619d1 jal 0x00186744                   |-->Steal_Gil Calculate Stolen Gil, update Target and Attacker Action data (gain or loss)
0018985c: 00000000 nop                              |
00189860: 8fbf0010 lw r31,0x0010(r29)       END
00189864: 27bd0018 addiu r29,r29,0x0018     
00189868: 03e00008 jr r31
0018986c: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup