Difference between revisions of "33 Hit (PA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [33] 00189e28: 27bdffe8 addiu r29,r29,0xffe8 00189e2c: afbf0010 sw r31,0x0010(r29) 00189e30: 0c06176b jal 0x 00185dac Load PA and X 00189e34: 00000000 nop ...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
  [33]
 
  [33]
  00189e28: 27bdffe8 addiu r29,r29,0xffe8
+
  00189e28: 27bdffe8 addiu r29,r29,-0x0018    |
  00189e2c: afbf0010 sw r31,0x0010(r29)
+
  00189e2c: afbf0010 sw r31,0x0010(r29)       |
  00189e30: 0c06176b jal 0x 00185dac      Load PA and X
+
  00189e30: 0c06176b jal 0x00185dac          |{{f/jal|Store_PA_and_X|Store_PA_and_X}} Ability XA = Attacker's PA ans Ability YA = used Ability X
  00189e34: 00000000 nop
+
  00189e34: 00000000 nop                     |
  00189e38: 0c061853 jal 0x 0018614c      ATTACK UP/Martial Arts Check
+
  00189e38: 0c061853 jal 0x0018614c          |{{f/jal|Formula_32,_33,_34,_35_Attack_Up_and_Martial_Arts|Attack UP and Martial Art}} Increase XA if Attacker uses Attack Up or Martial art with elligible weapon
  00189e3c: 00000000 nop
+
  00189e3c: 00000000 nop                     |
  00189e40: 0c061895 jal 0x 00186254      Berserk/Frog Check (Dumb idea)
+
  00189e40: 0c061895 jal 0x00186254          |{{f/jal|Berserk/Frog Check|Berserk/Frog Check}} Modify Ability XA : +50% if Berserk / Xa forced to 0x01 if Frog
  00189e44: 00000000 nop
+
  00189e44: 00000000 nop                     |
  00189e48: 0c061259 jal 0x 00184964      Zodiac Calculation
+
  00189e48: 0c061259 jal 0x00184964          |{{f/jal|Compatibility|Compatibility}} Modify Ability XA : from -50% to + 50%
  00189e4c: 00000000 nop
+
  00189e4c: 00000000 nop                     |
  00189e50: 0c061967 jal 0x 0018659c      (PA + X)%
+
  00189e50: 0c061967 jal 0x0018659c          |{{f/jal|Set_XA_%2B_YA_for_Status_Formulas_(Stupid_section)|XA + YA for Accuracy}} XA+YA becomes TCA HP damage (YA is processed via compatibility)
  00189e54: 00000000 nop
+
  00189e54: 00000000 nop                     |
  00189e58: 0c061d44 jal 0x 00187510      Total Accuracy Check
+
  00189e58: 0c061d44 jal 0x00187510          |{{f/jal|Uses_HP_damage_as_Action_hit%25|Uses_HP_damage_as_Action_hit%}} HP damage becomes Hit% - Roll Hit% vs random (0 to 100), Set Action hit flag to miss if it fails
  00189e5c: 00000000 nop
+
  00189e5c: 00000000 nop                     |
  00189e60: 3c028019 lui r2,0x8019
+
  00189e60: 3c028019 lui r2,0x8019           |
  00189e64: 8c422d90 lw r2,0x2d90(r2)
+
  00189e64: 8c422d90 lw r2,0x2d90(r2)         |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  00189e68: 00000000 nop
+
  00189e68: 00000000 nop                     |
  00189e6c: 90420000 lbu r2,0x0000(r2)
+
  00189e6c: 90420000 lbu r2,0x0000(r2)       |{{f/load|<nowiki>r2 = TCA hit flag</nowiki>}}
  00189e70: 00000000 nop
+
  00189e70: 00000000 nop                     |
  00189e74: 10400003 beq r2,r0,0x 00189e84
+
  00189e74: 10400003 beq r2,r0,0x00189e84    {{f/Cond|If Attack hits}}
  00189e78: 00000000 nop
+
  00189e78: 00000000 nop                         |
  00189e7c: 0c061fc9 jal 0x 00187f24      Status Routine
+
  00189e7c: 0c061fc9 jal 0x00187f24              |{{f/jal|Apply_status_(to_action)|Apply_status_(to_action)}} Add Ability status - if successful update TCA Attack type
  00189e80: 00000000 nop
+
  00189e80: 00000000 nop                         |
  00189e84: 8fbf0010 lw r31,0x0010(r29)
+
  00189e84: 8fbf0010 lw r31,0x0010(r29)       END
  00189e88: 27bd 0018 addiu r29,r29,0x 0018
+
  00189e88: 27bd0018 addiu r29,r29,0x0018
  00189e8c: 03e00008 jr r31
+
  00189e8c: 03e00008 jr r31
 
  00189e90: 00000000 nop
 
  00189e90: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 12:16, 24 April 2022

[33]
00189e28: 27bdffe8 addiu r29,r29,-0x0018    |
00189e2c: afbf0010 sw r31,0x0010(r29)       |
00189e30: 0c06176b jal 0x00185dac           |-->Store_PA_and_X Ability XA = Attacker's PA ans Ability YA = used Ability X
00189e34: 00000000 nop                      |
00189e38: 0c061853 jal 0x0018614c           |-->Attack UP and Martial Art Increase XA if Attacker uses Attack Up or Martial art with elligible weapon
00189e3c: 00000000 nop                      |
00189e40: 0c061895 jal 0x00186254           |-->Berserk/Frog Check Modify Ability XA : +50% if Berserk / Xa forced to 0x01 if Frog
00189e44: 00000000 nop                      |
00189e48: 0c061259 jal 0x00184964           |-->Compatibility Modify Ability XA : from -50% to + 50%
00189e4c: 00000000 nop                      |
00189e50: 0c061967 jal 0x0018659c           |-->XA + YA for Accuracy XA+YA becomes TCA HP damage (YA is processed via compatibility)
00189e54: 00000000 nop                      |
00189e58: 0c061d44 jal 0x00187510           |-->Uses_HP_damage_as_Action_hit% HP damage becomes Hit% - Roll Hit% vs random (0 to 100), Set Action hit flag to miss if it fails
00189e5c: 00000000 nop                      |
00189e60: 3c028019 lui r2,0x8019            |
00189e64: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
00189e68: 00000000 nop                      |
00189e6c: 90420000 lbu r2,0x0000(r2)        |r2 = TCA hit flag
00189e70: 00000000 nop                      |
00189e74: 10400003 beq r2,r0,0x00189e84     #If Attack hits
00189e78: 00000000 nop                          |
00189e7c: 0c061fc9 jal 0x00187f24               |-->Apply_status_(to_action) Add Ability status - if successful update TCA Attack type
00189e80: 00000000 nop                          |
00189e84: 8fbf0010 lw r31,0x0010(r29)       END
00189e88: 27bd0018 addiu r29,r29,0x0018
00189e8c: 03e00008 jr r31
00189e90: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup