Difference between revisions of "2F AbsMP (PA*WP)"
Jump to navigation
Jump to search
(Created page with " [2f] 00189c50: 27bdffe8 addiu r29,r29,0xffe8 00189c54: afbf0010 sw r31,0x0010(r29) 00189c58: 0c062144 jal 0x 00188510 Physical Evade Calculation 00189c5c: 0000...") |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
[2f] | [2f] | ||
− | 00189c50: 27bdffe8 addiu r29,r29, | + | 00189c50: 27bdffe8 addiu r29,r29,-0x0018 | |
− | 00189c54: afbf0010 sw r31,0x0010(r29) | + | 00189c54: afbf0010 sw r31,0x0010(r29) | |
− | 00189c58: 0c062144 jal | + | 00189c58: 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 |
− | 00189c5c: 00000000 nop | + | 00189c5c: 00000000 nop | |
− | 00189c60: 14400007 bne r2,r0, | + | 00189c60: 14400007 bne r2,r0,0x00189c80 {{f/Cond|If Attack is not evaded}} |
− | 00189c64: 00000000 nop | + | 00189c64: 00000000 nop | |
− | 00189c68: 0c061776 jal | + | 00189c68: 0c061776 jal 0x00185dd8 |{{f/jal|Store PA and WP|Store PA and WP}} Set XA = Attacker's PA and YA = used Weapon WP |
− | 00189c6c: 00000000 nop | + | 00189c6c: 00000000 nop | |
− | 00189c70: 0c0621a9 jal | + | 00189c70: 0c0621a9 jal 0x001886a4 |{{f/jal|Damage Calculation |Damage Calculation }} Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage to XA*YA |
− | 00189c74: 00000000 nop | + | 00189c74: 00000000 nop | |
− | 00189c78: 0c061d1b jal | + | 00189c78: 0c061d1b jal 0x0018746c |{{f/jal|MP_Absorption|MP_Absorption}} Set Attacker Current Action data to restore MP (= TCA HP damage) |
− | 00189c7c: 00000000 nop | + | 00189c7c: 00000000 nop | |
− | 00189c80: 8fbf0010 lw r31,0x0010(r29) | + | 00189c80: 8fbf0010 lw r31,0x0010(r29) END |
− | 00189c84: | + | 00189c84: 27bd0018 addiu r29,r29,0x0018 |
− | 00189c88: 03e00008 jr r31 | + | 00189c88: 03e00008 jr r31 |
00189c8c: 00000000 nop | 00189c8c: 00000000 nop | ||
+ | === Return location === | ||
+ | '''Battle.bin''' | ||
+ | 0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]] |
Latest revision as of 19:06, 23 April 2022
[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