Difference between revisions of "30 AbsHP (PA*WP)"
Jump to navigation
Jump to search
(Created page with " [30] 00189c90: 27bdffe8 addiu r29,r29,0xffe8 00189c94: afbf0010 sw r31,0x0010(r29) 00189c98: 0c062144 jal 0x 00188510 Physical Evade Calculation 00189c9c: 0000...") |
m |
||
Line 1: | Line 1: | ||
[30] | [30] | ||
− | 00189c90: 27bdffe8 addiu r29,r29, | + | 00189c90: 27bdffe8 addiu r29,r29,-0x0018 | |
− | 00189c94: afbf0010 sw r31,0x0010(r29) | + | 00189c94: afbf0010 sw r31,0x0010(r29) | |
− | 00189c98: 0c062144 jal | + | 00189c98: 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 |
− | 00189c9c: 00000000 nop | + | 00189c9c: 00000000 nop | |
− | 00189ca0: 14400007 bne r2,r0, | + | 00189ca0: 14400007 bne r2,r0,0x00189cc0 {{f/Cond|If Attack is not evaded}} |
− | 00189ca4: 00000000 nop | + | 00189ca4: 00000000 nop | |
− | 00189ca8: 0c061776 jal | + | 00189ca8: 0c061776 jal 0x00185dd8 |{{f/jal|Store_PA_and_WP|Store_PA_and_WP}} Set XA = Attacker's PA and YA = used Weapon WP |
− | 00189cac: 00000000 nop | + | 00189cac: 00000000 nop | |
− | 00189cb0: 0c0621a9 jal | + | 00189cb0: 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 |
− | 00189cb4: 00000000 nop | + | 00189cb4: 00000000 nop | |
− | 00189cb8: 0c061c92 jal | + | 00189cb8: 0c061c92 jal 0x00187248 |{{f/jal|HP_Absorption|HP_Absorption}} Add HP recovery to Attacker action / Manages undead reversal mechanics |
− | 00189cbc: 00000000 nop | + | 00189cbc: 00000000 nop | |
− | 00189cc0: 8fbf0010 lw r31,0x0010(r29) | + | 00189cc0: 8fbf0010 lw r31,0x0010(r29) END |
− | 00189cc4: | + | 00189cc4: 27bd0018 addiu r29,r29,0x0018 |
− | 00189cc8: 03e00008 jr r31 | + | 00189cc8: 03e00008 jr r31 |
00189ccc: 00000000 nop | 00189ccc: 00000000 nop | ||
+ | |||
+ | === Return location === | ||
+ | '''Battle.bin''' | ||
+ | 0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]] |
Latest revision as of 19:11, 23 April 2022
[30] 00189c90: 27bdffe8 addiu r29,r29,-0x0018 | 00189c94: afbf0010 sw r31,0x0010(r29) | 00189c98: 0c062144 jal 0x00188510 |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2 00189c9c: 00000000 nop | 00189ca0: 14400007 bne r2,r0,0x00189cc0 #If Attack is not evaded 00189ca4: 00000000 nop | 00189ca8: 0c061776 jal 0x00185dd8 |-->Store_PA_and_WP Set XA = Attacker's PA and YA = used Weapon WP 00189cac: 00000000 nop | 00189cb0: 0c0621a9 jal 0x001886a4 |-->Damage_Calculation Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage to XA*YA 00189cb4: 00000000 nop | 00189cb8: 0c061c92 jal 0x00187248 |-->HP_Absorption Add HP recovery to Attacker action / Manages undead reversal mechanics 00189cbc: 00000000 nop | 00189cc0: 8fbf0010 lw r31,0x0010(r29) END 00189cc4: 27bd0018 addiu r29,r29,0x0018 00189cc8: 03e00008 jr r31 00189ccc: 00000000 nop
Return location
Battle.bin 0018b97c - Pre Formula Setup