63 Dmg (SP*WP)

From Final Fantasy Hacktics Wiki
Revision as of 20:19, 27 April 2022 by Orkney (talk | contribs)
Jump to navigation Jump to search
[63] Throw
0018ab98: 27bdffe8 addiu r29,r29,-0x0018    |
0018ab9c: afbf0010 sw r31,0x0010(r29)       |
0018aba0: 0c0620eb jal 0x001883ac           |-->Catch Forces Attack to miss is Target can use Catch (Brave%)
0018aba4: 00000000 nop                      |
0018aba8: 3c028019 lui r2,0x8019            |
0018abac: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
0018abb0: 00000000 nop                      |
0018abb4: 90420000 lbu r2,0x0000(r2)        |r2 = TCA hit flag
0018abb8: 00000000 nop                      |
0018abbc: 1040001d beq r2,r0,0x0018ac34     #If Target don't uses Catch /Else branch to END
0018abc0: 00000000 nop                          |
0018abc4: 0c062144 jal 0x00188510               |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
0018abc8: 00000000 nop                          |
0018abcc: 14400019 bne r2,r0,0x0018ac34         #If Attack is not evaded
0018abd0: 00000000 nop                              |
0018abd4: 3c028019 lui r2,0x8019                    |
0018abd8: 8c422d94 lw r2,0x2d94(r2)                 |r2 = Attacker data pointer
0018abdc: 3c038019 lui r3,0x8019                    |
0018abe0: 90633902 lbu r3,0x3902(r3)                |r3 = Current Ability used Weapon Power (WP)
0018abe4: 90420038 lbu r2,0x0038(r2)                |r2 = Attacker's speed
0018abe8: 3c018019 lui r1,0x8019                    |
0018abec: a42338d0 sh r3,0x38d0(r1)                 |Store WP as Ability YA
0018abf0: 3c018019 lui r1,0x8019                    |
0018abf4: a42238ce sh r2,0x38ce(r1)                 |Store Attacker's Speed as Ability XA
0018abf8: 0c0622b7 jal 0x00188adc                   |-->Cluster of Physical Routines Modify XA (Attacker status, Target Status/Support, Compatibility)
0018abfc: 00000000 nop                              |
0018ac00: 0c06195a jal 0x00186568                   |-->XA * YA Calculation (No elemental checks) Store XA*YA as Target Current Action HP damage (TCA 0x04) and Set TCA Attack type to 0x80 (HP damage)
0018ac04: 00000000 nop                              |
0018ac08: 0c061bf4 jal 0x00186fd0                   |-->Elemental Damage Modification (Prep) ancel Action // Enable Absorption flags and/or Modify HP damage
0018ac0c: 00000000 nop                              |
0018ac10: 3c028019 lui r2,0x8019                    |
0018ac14: 8c422d90 lw r2,0x2d90(r2)                 |r2 = TCA data pointer
0018ac18: 00000000 nop                              |
0018ac1c: 90420000 lbu r2,0x0000(r2)                |r2 = TCA hit flag
0018ac20: 00000000 nop                              |
0018ac24: 10400003 beq r2,r0,0x0018ac34             #If Attack is not canceld by elements
0018ac28: 00000000 nop                                  |
0018ac2c: 0c061c3f jal 0x001870fc                       |-->Elemental Absorption HP damage becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
0018ac30: 00000000 nop                                  |
0018ac34: 8fbf0010 lw r31,0x0010(r29)       END
0018ac38: 27bd0018 addiu r29,r29,0x0018
0018ac3c: 03e00008 jr r31
0018ac40: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup