Difference between revisions of "Elemental Strengthen"
Jump to navigation
Jump to search
(Created page with " Elemental Strengthen 00185ffc: 3c028019 lui r2,0x8019 00186000: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Data 00186004: 3c038019 lui r3,0x8019 00186008: 906338f7 l...") |
m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | No Parameters - Returns Nothing | |
− | 00185ffc: 3c028019 lui r2,0x8019 | + | |
− | 00186000: 8c422d94 lw r2,0x2d94(r2) | + | Increase Ability XA (+25%) if Current Ability Ability element (0x801938f7) is strengthened |
− | 00186004: 3c038019 lui r3,0x8019 | + | ------------------------------------------------------------------------------------------------ |
− | 00186008: 906338f7 lbu r3,0x38f7(r3) | + | 00185ffc: 3c028019 lui r2,0x8019 | |
− | 0018600c: 90420071 lbu r2,0x0071(r2) | + | 00186000: 8c422d94 lw r2,0x2d94(r2) |{{f/adr|<nowiki>r2 = Attacker's Data pointer</nowiki>}} |
− | 00186010: 00000000 nop | + | 00186004: 3c038019 lui r3,0x8019 | |
− | 00186014: 00431024 and r2,r2,r3 | + | 00186008: 906338f7 lbu r3,0x38f7(r3) |{{f/load|<nowiki>r3 = Current Ability : Ability Element</nowiki>}} |
− | 00186018: 1040000c beq r2,r0,0x0018604c | + | 0018600c: 90420071 lbu r2,0x0071(r2) |{{f/load|<nowiki>r2 = Attacker's Elemental Strengthened</nowiki>}} |
− | 0018601c: 00000000 nop | + | 00186010: 00000000 nop | |
− | 00186020: 3c038019 lui r3,0x8019 | + | 00186014: 00431024 and r2,r2,r3 |{{f/std|r2 <> 0x00 If at least one of the ability element is strengthened}} |
− | 00186024: 846338ce lh r3,0x38ce(r3) | + | 00186018: 1040000c beq r2,r0,0x0018604c {{f/Cond|If Ability Element is strengthened}} |
− | 00186028: 00000000 nop | + | 0018601c: 00000000 nop | |
− | 0018602c: 00031080 sll r2,r3,0x02 | + | 00186020: 3c038019 lui r3,0x8019 | |
− | 00186030: 00431021 addu r2,r2,r3 | + | 00186024: 846338ce lh r3,0x38ce(r3) |{{f/load|<nowiki>r3 = Current Ability XA</nowiki>}} |
− | 00186034: 04410002 bgez r2,0x00186040 | + | 00186028: 00000000 nop | |
− | 00186038: 00000000 nop | + | 0018602c: 00031080 sll r2,r3,0x02 |{{f/std|XA * 4}} |
− | 0018603c: 24420003 addiu r2,r2,0x0003 | + | 00186030: 00431021 addu r2,r2,r3 |{{f/std|XA * 5}} |
− | 00186040: 00021083 sra r2,r2,0x02 | + | 00186034: 04410002 bgez r2,0x00186040 {{f/Cond|If XA * 5 < 0x00 (should be never)}} |
− | 00186044: 3c018019 lui r1,0x8019 | + | 00186038: 00000000 nop | |
− | 00186048: a42238ce sh r2,0x38ce(r1) | + | 0018603c: 24420003 addiu r2,r2,0x0003 |{{f/std|<nowiki>XA = 0x03</nowiki>}} |
− | 0018604c: 03e00008 jr r31 | + | 00186040: 00021083 sra r2,r2,0x02 |{{f/std|<nowiki>r2 = XA * 5 / 4</nowiki>}} |
− | 00186050: 00000000 nop | + | 00186044: 3c018019 lui r1,0x8019 | |
+ | 00186048: a42238ce sh r2,0x38ce(r1) |{{f/store|Store new Ability XA (125% of previous XA)}} | ||
+ | 0018604c: 03e00008 jr r31 END | ||
+ | 00186050: 00000000 nop | ||
+ | === Return locations === | ||
+ | '''Battle.bin''' | ||
+ | 00188974: [[Truth/Formula 5E-5F Magical damage]] | ||
+ | 00188a3c: [[Calculate Accuracy for Magical]] | ||
+ | 00188a9c: [[MA_%2B_X_without_faith]] | ||
+ | 00188dac: [[08 Dmg_F(MA*Y)]] | ||
+ | 00188ed0: [[0B Hit_F(MA+X)%]] | ||
+ | 00188f10: [[0C Heal_F(MA*Y)]] | ||
+ | 00188f50: [[0D Heal_(Y)% Hit_F(MA+X)%]] | ||
+ | 00188fec: [[0E Dmg_(Y)% Hit_F(MA+X)% 100% Status Hide Status]] | ||
+ | 001892d4: [[1A Hit_F(MA+Y)% // -PA/MA/SP_(X)]] | ||
+ | 0018948c: [[1F Dmg ((100-CasF)*(100-TarF)*(MA+Y)*MA/2) #Hit(Rdm(1,X))]] | ||
+ | 00189cf8: [[31 Dmg_((PA+Y)/2*PA)]] | ||
+ | 0018a500: [[51 Hit_(MA+X)%]] | ||
+ | 0018a83c: [[58 Generic: Set_Morbol: Hit(MA+X)%]] |
Latest revision as of 19:19, 13 April 2022
No Parameters - Returns Nothing Increase Ability XA (+25%) if Current Ability Ability element (0x801938f7) is strengthened ------------------------------------------------------------------------------------------------ 00185ffc: 3c028019 lui r2,0x8019 | 00186000: 8c422d94 lw r2,0x2d94(r2) |r2 = Attacker's Data pointer 00186004: 3c038019 lui r3,0x8019 | 00186008: 906338f7 lbu r3,0x38f7(r3) |r3 = Current Ability : Ability Element 0018600c: 90420071 lbu r2,0x0071(r2) |r2 = Attacker's Elemental Strengthened 00186010: 00000000 nop | 00186014: 00431024 and r2,r2,r3 |r2 <> 0x00 If at least one of the ability element is strengthened 00186018: 1040000c beq r2,r0,0x0018604c #If Ability Element is strengthened 0018601c: 00000000 nop | 00186020: 3c038019 lui r3,0x8019 | 00186024: 846338ce lh r3,0x38ce(r3) |r3 = Current Ability XA 00186028: 00000000 nop | 0018602c: 00031080 sll r2,r3,0x02 |XA * 4 00186030: 00431021 addu r2,r2,r3 |XA * 5 00186034: 04410002 bgez r2,0x00186040 #If XA * 5 < 0x00 (should be never) 00186038: 00000000 nop | 0018603c: 24420003 addiu r2,r2,0x0003 |XA = 0x03 00186040: 00021083 sra r2,r2,0x02 |r2 = XA * 5 / 4 00186044: 3c018019 lui r1,0x8019 | 00186048: a42238ce sh r2,0x38ce(r1) |Store new Ability XA (125% of previous XA) 0018604c: 03e00008 jr r31 END 00186050: 00000000 nop
Return locations
Battle.bin 00188974: Truth/Formula 5E-5F Magical damage 00188a3c: Calculate Accuracy for Magical 00188a9c: MA_+_X_without_faith 00188dac: 08 Dmg_F(MA*Y) 00188ed0: 0B Hit_F(MA+X)% 00188f10: 0C Heal_F(MA*Y) 00188f50: 0D Heal_(Y)% Hit_F(MA+X)% 00188fec: 0E Dmg_(Y)% Hit_F(MA+X)% 100% Status Hide Status 001892d4: 1A Hit_F(MA+Y)% // -PA/MA/SP_(X) 0018948c: 1F Dmg ((100-CasF)*(100-TarF)*(MA+Y)*MA/2) #Hit(Rdm(1,X)) 00189cf8: 31 Dmg_((PA+Y)/2*PA) 0018a500: 51 Hit_(MA+X)% 0018a83c: 58 Generic: Set_Morbol: Hit(MA+X)%