Difference between revisions of "35 Heal (Y)% Hit (PA+X)%"
Jump to navigation
Jump to search
(Created page with " [35] 00189f08: 27bdffe8 addiu r29,r29,0xffe8 00189f0c: afbf0010 sw r31,0x0010(r29) 00189f10: 0c06176b jal 0x 00185dac Loads PA and X 00189f14: 00000000 nop ...") |
m |
||
Line 1: | Line 1: | ||
[35] | [35] | ||
− | 00189f08: 27bdffe8 addiu r29,r29, | + | 00189f08: 27bdffe8 addiu r29,r29,-0x0018 | |
− | 00189f0c: afbf0010 sw r31,0x0010(r29) | + | 00189f0c: afbf0010 sw r31,0x0010(r29) | |
− | 00189f10: 0c06176b jal | + | 00189f10: 0c06176b jal 0x00185dac |{{f/jal|Store_PA_and_X|Store_PA_and_X}} Ability XA = Attacker's PA ans Ability YA = used Ability X |
− | 00189f14: 00000000 nop | + | 00189f14: 00000000 nop | |
− | 00189f18: 0c061853 jal | + | 00189f18: 0c061853 jal 0x0018614c |{{f/jal|Formula_32,_33,_34,_35_Attack_Up_and_Martial_Arts|Attack Up ans Martial Art}} Increase XA if Attacker uses Attack Up or Martial art with elligible weapon |
− | 00189f1c: 00000000 nop | + | 00189f1c: 00000000 nop | |
− | 00189f20: 0c061259 jal | + | 00189f20: 0c061259 jal 0x00184964 |{{f/jal|Compatibility|Compatibility}} Modify Ability XA : from -50% to + 50% |
− | 00189f24: 00000000 nop | + | 00189f24: 00000000 nop | |
− | 00189f28: 0c061967 jal | + | 00189f28: 0c061967 jal 0x0018659c |{{f/jal|Set_XA_%2B_YA_for_Status_Formulas_(Stupid_section)|XA + YA for Accuracy}} XA+YA becomes TCA HP damage (YA is processed via compatibility) |
− | 00189f2c: 00000000 nop | + | 00189f2c: 00000000 nop | |
− | 00189f30: 0c061d44 jal | + | 00189f30: 0c061d44 jal 0x00187510 |{{f/jal|Uses_HP_damage_as_Action_hit%25|Uses_HP_damage_as_Action_hit%}} HP damage becomes Hit% - Roll Hit% vs random (0 to 100), Set Action hit flag to miss if it fails |
− | 00189f34: 00000000 nop | + | 00189f34: 00000000 nop | |
− | 00189f38: 3c028019 lui r2,0x8019 | + | 00189f38: 3c028019 lui r2,0x8019 | |
− | 00189f3c: 8c422d90 lw r2,0x2d90(r2) | + | 00189f3c: 8c422d90 lw r2,0x2d90(r2) |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}} |
− | 00189f40: 00000000 nop | + | 00189f40: 00000000 nop | |
− | 00189f44: 90420000 lbu r2,0x0000(r2) | + | 00189f44: 90420000 lbu r2,0x0000(r2) |{{f/load|<nowiki>r2 = TCA hit flag</nowiki>}} |
− | 00189f48: 00000000 nop | + | 00189f48: 00000000 nop | |
− | 00189f4c: 10400009 beq r2,r0, | + | 00189f4c: 10400009 beq r2,r0,0x00189f74 {{f/Cond|If Attack hits}} |
− | 00189f50: 00000000 nop | + | 00189f50: 00000000 nop | |
− | 00189f54: 0c062b37 jal | + | 00189f54: 0c062b37 jal 0x0018acdc |{{f/jal|Apply_Status_and_Check_Undead|Apply_Status_and_Check_Undead}} Nullify Action if Status infliction fails and Target is not undead / Returns r2 = 0x00 if nullified |
− | 00189f58: 00000000 nop | + | 00189f58: 00000000 nop | |
− | 00189f5c: 10400005 beq r2,r0, | + | 00189f5c: 10400005 beq r2,r0,0x00189f74 {{f/Cond|If Attack is not nullified}} |
− | 00189f60: 00000000 nop | + | 00189f60: 00000000 nop | |
− | 00189f64: 0c061989 jal | + | 00189f64: 0c061989 jal 0x00186624 |{{f/jal|Calculate_HP%25_damage|Calculate_HP%_damage}} Set Target Current Action HP damage to [Used Ability Y]% of Target max HP |
− | 00189f68: 00000000 nop | + | 00189f68: 00000000 nop | |
− | 00189f6c: 0c061cd4 jal | + | 00189f6c: 0c061cd4 jal 0x00187350 |{{f/jal|Undead_Reversal|Undead_Reversal}} Switch HP damage to HP recovery if Target isn't undead / Else Nullify 0x80193860 |
− | 00189f70: 00000000 nop | + | 00189f70: 00000000 nop | |
− | 00189f74: 8fbf0010 lw r31,0x0010(r29) | + | 00189f74: 8fbf0010 lw r31,0x0010(r29) END |
− | 00189f78: | + | 00189f78: 27bd0018 addiu r29,r29,0x0018 |
− | 00189f7c: 03e00008 jr r31 | + | 00189f7c: 03e00008 jr r31 |
00189f80: 00000000 nop | 00189f80: 00000000 nop | ||
+ | === Return location === | ||
+ | '''Battle.bin''' | ||
+ | 0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]] |
Latest revision as of 12:42, 24 April 2022
[35] 00189f08: 27bdffe8 addiu r29,r29,-0x0018 | 00189f0c: afbf0010 sw r31,0x0010(r29) | 00189f10: 0c06176b jal 0x00185dac |-->Store_PA_and_X Ability XA = Attacker's PA ans Ability YA = used Ability X 00189f14: 00000000 nop | 00189f18: 0c061853 jal 0x0018614c |-->Attack Up ans Martial Art Increase XA if Attacker uses Attack Up or Martial art with elligible weapon 00189f1c: 00000000 nop | 00189f20: 0c061259 jal 0x00184964 |-->Compatibility Modify Ability XA : from -50% to + 50% 00189f24: 00000000 nop | 00189f28: 0c061967 jal 0x0018659c |-->XA + YA for Accuracy XA+YA becomes TCA HP damage (YA is processed via compatibility) 00189f2c: 00000000 nop | 00189f30: 0c061d44 jal 0x00187510 |-->Uses_HP_damage_as_Action_hit% HP damage becomes Hit% - Roll Hit% vs random (0 to 100), Set Action hit flag to miss if it fails 00189f34: 00000000 nop | 00189f38: 3c028019 lui r2,0x8019 | 00189f3c: 8c422d90 lw r2,0x2d90(r2) |r2 = Target Current Action (TCA) data pointer 00189f40: 00000000 nop | 00189f44: 90420000 lbu r2,0x0000(r2) |r2 = TCA hit flag 00189f48: 00000000 nop | 00189f4c: 10400009 beq r2,r0,0x00189f74 #If Attack hits 00189f50: 00000000 nop | 00189f54: 0c062b37 jal 0x0018acdc |-->Apply_Status_and_Check_Undead Nullify Action if Status infliction fails and Target is not undead / Returns r2 = 0x00 if nullified 00189f58: 00000000 nop | 00189f5c: 10400005 beq r2,r0,0x00189f74 #If Attack is not nullified 00189f60: 00000000 nop | 00189f64: 0c061989 jal 0x00186624 |-->Calculate_HP%_damage Set Target Current Action HP damage to [Used Ability Y]% of Target max HP 00189f68: 00000000 nop | 00189f6c: 0c061cd4 jal 0x00187350 |-->Undead_Reversal Switch HP damage to HP recovery if Target isn't undead / Else Nullify 0x80193860 00189f70: 00000000 nop | 00189f74: 8fbf0010 lw r31,0x0010(r29) END 00189f78: 27bd0018 addiu r29,r29,0x0018 00189f7c: 03e00008 jr r31 00189f80: 00000000 nop
Return location
Battle.bin 0018b97c - Pre Formula Setup