Difference between revisions of "2D Dmg (PA*(WP+Y)) 100% Status"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (Remove less-descriptive alt name)
m
 
Line 1: Line 1:
[2d]
+
  00189b20: 27bdffe8 addiu r29,r29,-0x0018    |
  00189b20: 27bdffe8 addiu r29,r29,0xffe8
+
  00189b24: afbf0010 sw r31,0x0010(r29)       |
  00189b24: afbf0010 sw r31,0x0010(r29)
+
  00189b28: 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
  00189b28: 0c062144 jal 0x 00188510      [[Physical_Evade_Calculation]]
+
  00189b2c: 00000000 nop                     |
  00189b2c: 00000000 nop
+
  00189b30: 14400014 bne r2,r0,0x00189b84    {{f/Cond|If Attack is not evaded}}
  00189b30: 14400014 bne r2,r0,0x 00189b84 Exit if evaded
+
  00189b34: 00000000 nop                         |
  00189b34: 00000000 nop
+
  00189b38: 0c061797 jal 0x00185e5c              |{{f/jal|Store PA and WP + Y|Store PA and WP + Y}} XA is Attacker's PA and YA is WP + Y
  00189b38: 0c061797 jal 0x 00185e5c      [[Store PA and WP + Y]]
+
  00189b3c: 00000000 nop                         |
  00189b3c: 00000000 nop
+
  00189b40: 0c0617e9 jal 0x00185fa4              |{{f/jal|Weapon_Element_Strengthen|Weapon_Element_Strengthen}} XA + 25% if Weapon Element is strengthened
  00189b40: 0c0617e9 jal 0x 00185fa4      [[Weapon_Element_Strengthen]]
+
  00189b44: 00000000 nop                         |
  00189b44: 00000000 nop
+
  00189b48: 0c0621a9 jal 0x001886a4              |{{f/jal|Damage_Calculation|Physical Dmg calculation}} Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage to XA*YA
  00189b48: 0c0621a9 jal 0x 001886a4      [[Damage_Calculation|Physical Dmg calculation]] - (XA modifying Status + compat + critical + XA*YA)
+
  00189b4c: 00000000 nop                         |
  00189b4c: 00000000 nop
+
  00189b50: 0c061bf4 jal 0x00186fd0              |{{f/jal|Elemental Damage Modification (Prep)|Elemental Damage Modification (Prep)}} Cancel Action / Enable Absorption flags and/or Modify HP damage
  00189b50: 0c061bf4 jal 0x 00186fd0      [[Elemental Damage Modification (Prep)]]
+
  00189b54: 00000000 nop                         |
  00189b54: 00000000 nop
+
  00189b58: 3c028019 lui r2,0x8019               |
  00189b58: 3c028019 lui r2,0x8019
+
  00189b5c: 8c422d90 lw r2,0x2d90(r2)             |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  00189b5c: 8c422d90 lw r2,0x2d90(r2)
+
  00189b60: 00000000 nop                         |
  00189b60: 00000000 nop
+
  00189b64: 90420000 lbu r2,0x0000(r2)           |{{f/load|<nowiki>r2 = TCA hit flag</nowiki>}}
  00189b64: 90420000 lbu r2,0x0000(r2)
+
  00189b68: 00000000 nop                         |
  00189b68: 00000000 nop
+
  00189b6c: 10400005 beq r2,r0,0x00189b84        {{f/Cond|If Attack hits (not canceled by elements)}}
  00189b6c: 10400005 beq r2,r0,0x 00189b84
+
  00189b70: 00000000 nop                             |
  00189b70: 00000000 nop
+
  00189b74: 0c061c3f jal 0x001870fc                  |{{f/jal|Elemental_Absorption|Elemental_Absorption}} HP damage becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
  00189b74: 0c061c3f jal 0x 001870fc      [[Elemental_Absorption]]
+
  00189b78: 00000000 nop                             |
  00189b78: 00000000 nop
+
  00189b7c: 0c061fad jal 0x00187eb4                  |{{f/jal|Apply status (to action) - (Preserve hit status, evade type, hit %)|Apply status (to action) - (Preserve hit status, evade type, hit %)}} Update Target Current Action status infliction/Removal
  00189b7c: 0c061fad jal 0x 00187eb4      [[Apply status (to action) - (Preserve hit status, evade type, hit %)]]
+
  00189b80: 00000000 nop                             |
  00189b80: 00000000 nop
+
  00189b84: 8fbf0010 lw r31,0x0010(r29)       END
  00189b84: 8fbf0010 lw r31,0x0010(r29)
+
  00189b88: 27bd0018 addiu r29,r29,0x0018
  00189b88: 27bd 0018 addiu r29,r29,0x 0018
+
  00189b8c: 03e00008 jr r31
  00189b8c: 03e00008 jr r31
 
 
  00189b90: 00000000 nop
 
  00189b90: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 11:36, 23 April 2022

00189b20: 27bdffe8 addiu r29,r29,-0x0018    |
00189b24: afbf0010 sw r31,0x0010(r29)       |
00189b28: 0c062144 jal 0x00188510           |-->Physical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
00189b2c: 00000000 nop                      |
00189b30: 14400014 bne r2,r0,0x00189b84     #If Attack is not evaded
00189b34: 00000000 nop                          |
00189b38: 0c061797 jal 0x00185e5c               |-->Store PA and WP + Y XA is Attacker's PA and YA is WP + Y
00189b3c: 00000000 nop                          |
00189b40: 0c0617e9 jal 0x00185fa4               |-->Weapon_Element_Strengthen XA + 25% if Weapon Element is strengthened
00189b44: 00000000 nop                          |
00189b48: 0c0621a9 jal 0x001886a4               |-->Physical Dmg calculation Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage to XA*YA
00189b4c: 00000000 nop                          |
00189b50: 0c061bf4 jal 0x00186fd0               |-->Elemental Damage Modification (Prep) Cancel Action / Enable Absorption flags and/or Modify HP damage
00189b54: 00000000 nop                          |
00189b58: 3c028019 lui r2,0x8019                |
00189b5c: 8c422d90 lw r2,0x2d90(r2)             |r2 = Target Current Action (TCA) data pointer
00189b60: 00000000 nop                          |
00189b64: 90420000 lbu r2,0x0000(r2)            |r2 = TCA hit flag
00189b68: 00000000 nop                          |
00189b6c: 10400005 beq r2,r0,0x00189b84         #If Attack hits (not canceled by elements)
00189b70: 00000000 nop                              |
00189b74: 0c061c3f jal 0x001870fc                   |-->Elemental_Absorption HP damage becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
00189b78: 00000000 nop                              |
00189b7c: 0c061fad jal 0x00187eb4                   |-->Apply status (to action) - (Preserve hit status, evade type, hit %) Update Target Current Action status infliction/Removal
00189b80: 00000000 nop                              |
00189b84: 8fbf0010 lw r31,0x0010(r29)       END
00189b88: 27bd0018 addiu r29,r29,0x0018
00189b8c: 03e00008 jr r31
00189b90: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup