2F AbsMP (PA*WP)

From Final Fantasy Hacktics Wiki
Revision as of 19:06, 23 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[2f]
00189c50: 27bdffe8 addiu r29,r29,-0x0018    |
00189c54: afbf0010 sw r31,0x0010(r29)       |
00189c58: 0c062144 jal 0x00188510           |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
00189c5c: 00000000 nop                      |
00189c60: 14400007 bne r2,r0,0x00189c80     #If Attack is not evaded
00189c64: 00000000 nop                          |
00189c68: 0c061776 jal 0x00185dd8               |-->Store PA and WP Set XA  = Attacker's PA and YA = used Weapon WP
00189c6c: 00000000 nop                          |
00189c70: 0c0621a9 jal 0x001886a4               |-->Damage Calculation  Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage to XA*YA
00189c74: 00000000 nop                          |
00189c78: 0c061d1b jal 0x0018746c               |-->MP_Absorption Set Attacker Current Action data to restore MP (= TCA HP damage)
00189c7c: 00000000 nop                          |
00189c80: 8fbf0010 lw r31,0x0010(r29)       END
00189c84: 27bd0018 addiu r29,r29,0x0018
00189c88: 03e00008 jr r31
00189c8c: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup