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

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [51] 0018a4e8: 27bdffe8 addiu r29,r29,0xffe8 0018a4ec: afbf0010 sw r31,0x0010(r29) 0018a4f0: 0c061760 jal 0x 00185d80 Get X and MA 0018a4f4: 00000000 nop ...")
 
m
 
Line 1: Line 1:
 
  [51]
 
  [51]
  0018a4e8: 27bdffe8 addiu r29,r29,0xffe8
+
  0018a4e8: 27bdffe8 addiu r29,r29,-0x0018    |
  0018a4ec: afbf0010 sw r31,0x0010(r29)
+
  0018a4ec: afbf0010 sw r31,0x0010(r29)       |
  0018a4f0: 0c061760 jal 0x 00185d80      Get X and MA
+
  0018a4f0: 0c061760 jal 0x00185d80          |{{f/jal|Store_MA_and_X|Store_MA_and_X}} Set Ability XA = Attacker's MA and YA = used Ability X
  0018a4f4: 00000000 nop
+
  0018a4f4: 00000000 nop                     |
  0018a4f8: 0c0617ff jal 0x 00185ffc      Elemental Boost
+
  0018a4f8: 0c0617ff jal 0x00185ffc          |{{f/jal|Elemental_Strengthen|Elemental_Strengthen}} XA + 25% if used Ability Element is strengthened
  0018a4fc: 00000000 nop
+
  0018a4fc: 00000000 nop                     |
  0018a500: 0c061881 jal 0x 00186204      MATUP bonus
+
  0018a500: 0c061881 jal 0x00186204          |{{f/jal|Magic_Attack_Up_routine|Magic_Attack_Up_routine}} Ability XA +33% If Attacker uses Magic Attack Up
  0018a504: 00000000 nop
+
  0018a504: 00000000 nop                     |
  0018a508: 0c061259 jal 0x 00184964      Zodiac Calculation
+
  0018a508: 0c061259 jal 0x00184964          |{{f/jal|Compatibility|Compatibility}} Alters XA (-50% to +50%) based on compatibility
  0018a50c: 00000000 nop
+
  0018a50c: 00000000 nop                     |
  0018a510: 0c061967 jal 0x 0018659c      Set MA + X as X
+
  0018a510: 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)
  0018a514: 00000000 nop
+
  0018a514: 00000000 nop                     |
  0018a518: 0c061d44 jal 0x 00187510      Total Accuracy Check
+
  0018a518: 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
  0018a51c: 00000000 nop
+
  0018a51c: 00000000 nop                     |
  0018a520: 3c028019 lui r2,0x8019
+
  0018a520: 3c028019 lui r2,0x8019           |
  0018a524: 8c422d90 lw r2,0x2d90(r2)
+
  0018a524: 8c422d90 lw r2,0x2d90(r2)         |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  0018a528: 00000000 nop
+
  0018a528: 00000000 nop                     |
  0018a52c: 90420000 lbu r2,0x0000(r2)
+
  0018a52c: 90420000 lbu r2,0x0000(r2)       |{{f/load|<nowiki>r2 = TCA hit flag</nowiki>}}
  0018a530: 00000000 nop
+
  0018a530: 00000000 nop                     |
  0018a534: 10400003 beq r2,r0,0x 0018a544
+
  0018a534: 10400003 beq r2,r0,0x0018a544    {{f/Cond|If Attack hits}}
  0018a538: 00000000 nop
+
  0018a538: 00000000 nop                         |
  0018a53c: 0c061fc9 jal 0x 00187f24      Status Proc at (MA + X)%
+
  0018a53c: 0c061fc9 jal 0x00187f24              |{{f/jal|Apply_status_(to_action)|Apply_status_(to_action)}} Add Ability status - if successful update TCA Attack type
  0018a540: 00000000 nop
+
  0018a540: 00000000 nop                         |
  0018a544: 8fbf0010 lw r31,0x0010(r29)
+
  0018a544: 8fbf0010 lw r31,0x0010(r29)       END
  0018a548: 27bd 0018 addiu r29,r29,0x 0018
+
  0018a548: 27bd0018 addiu r29,r29,0x0018
  0018a54c: 03e00008 jr r31
+
  0018a54c: 03e00008 jr r31
 
  0018a550: 00000000 nop
 
  0018a550: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c : [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:50, 25 April 2022

[51]
0018a4e8: 27bdffe8 addiu r29,r29,-0x0018    |
0018a4ec: afbf0010 sw r31,0x0010(r29)       |
0018a4f0: 0c061760 jal 0x00185d80           |-->Store_MA_and_X Set Ability XA = Attacker's MA and YA = used Ability X
0018a4f4: 00000000 nop                      |
0018a4f8: 0c0617ff jal 0x00185ffc           |-->Elemental_Strengthen XA + 25% if used Ability Element is strengthened
0018a4fc: 00000000 nop                      |
0018a500: 0c061881 jal 0x00186204           |-->Magic_Attack_Up_routine Ability XA +33% If Attacker uses Magic Attack Up
0018a504: 00000000 nop                      |
0018a508: 0c061259 jal 0x00184964           |-->Compatibility Alters XA (-50% to +50%) based on compatibility
0018a50c: 00000000 nop                      |
0018a510: 0c061967 jal 0x0018659c           |-->XA +YA for Accuracy XA+YA becomes TCA HP damage (YA is processed via compatibility)
0018a514: 00000000 nop                      |
0018a518: 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
0018a51c: 00000000 nop                      |
0018a520: 3c028019 lui r2,0x8019            |
0018a524: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
0018a528: 00000000 nop                      |
0018a52c: 90420000 lbu r2,0x0000(r2)        |r2 = TCA hit flag
0018a530: 00000000 nop                      |
0018a534: 10400003 beq r2,r0,0x0018a544     #If Attack hits
0018a538: 00000000 nop                          |
0018a53c: 0c061fc9 jal 0x00187f24               |-->Apply_status_(to_action) Add Ability status - if successful update TCA Attack type
0018a540: 00000000 nop                          |
0018a544: 8fbf0010 lw r31,0x0010(r29)       END
0018a548: 27bd0018 addiu r29,r29,0x0018
0018a54c: 03e00008 jr r31
0018a550: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup