2D Dmg (PA*(WP+Y)) 100% Status

From Final Fantasy Hacktics Wiki
Revision as of 11:36, 23 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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