Base XA and YA for MA + Y / 2
Jump to navigation
Jump to search
Base XA and YA for MA + Y / 2 used for Truth and Hydra Formula:
No Parameters - Returns nothing Set Current Ability XA = Attacker's MA Set Current Ability YA = (Attacker's MA + used Ability Y)/2 ---------------------------------------------------------------------------------------------------- 00185cc0: 3c038019 lui r3,0x8019 | 00185cc4: 8c632d94 lw r3,0x2d94(r3) |r3 = Attacker data pointer 00185cc8: 00000000 nop | 00185ccc: 90620037 lbu r2,0x0037(r3) |r2 = Attacker's MA 00185cd0: 3c018019 lui r1,0x8019 | 00185cd4: a42238ce sh r2,0x38ce(r1) |Set Current Ability XA = Attacker's MA 00185cd8: 90620037 lbu r2,0x0037(r3) |r2 = Attacker's MA 00185cdc: 3c038019 lui r3,0x8019 | 00185ce0: 906338fa lbu r3,0x38fa(r3) |r3 = Current Ability used Ability Y 00185ce4: 00000000 nop | 00185ce8: 00431021 addu r2,r2,r3 |MA + Y 00185cec: 00021043 sra r2,r2,0x01 |(MA + Y)/ 2 00185cf0: 3c018019 lui r1,0x8019 | 00185cf4: a42238d0 sh r2,0x38d0(r1) |Set Current Ability YA = (Attackers MA + Y)/2 00185cf8: 03e00008 jr r31 | 00185cfc: 00000000 nop |
Return Locations
Battle.bin 001889b4: 2Truth/Formula_5E-5F_Calculate_damage 00189484: 1F Dmg ((100-CasF)*(100-TarF)*(MA+Y)*MA/2) #Hit(Rdm(1,X))