Calculate Hit %
Jump to navigation
Jump to search
No Parameters Returns r2 = 0x01 if Attack is Evaded r2 = 0x00 if Attack Hits -------------------------------------------------------------------------- Calculate Hit % 00188488: 27bdffe8 addiu r29,r29,0xffe8 0018848c: afbf0010 sw r31,0x0010(r29) 00188490: 0c061605 jal 0x00185814 Calculate Final Hit % If Ability is evadeable Roll the 4 Ability Evade byte (one after another) against Ability base Hit 00188494: 00000000 nop 00188498: 3c028019 lui r2,0x8019 0018849c: 8c422d90 lw r2,0x2d90(r2) Load Current Action Data Pointer 001884a0: 00000000 nop 001884a4: 90420000 lbu r2,0x0000(r2) Load Able to hit Flag 001884a8: 00000000 nop 001884ac: 2c420001 sltiu r2,r2,0x0001 r2 = 1 if Attack was Evaded 001884b0: 8fbf0010 lw r31,0x0010(r29) 001884b4: 27bd0018 addiu r29,r29,0x0018 001884b8: 03e00008 jr r31 001884bc: 00000000 nop
Return locations
Battle.bin 00188558: Physical_Evade_Calculation 001885a8: Physical_Evade_Calculation(Charge) (seems to be unused) 001885e8: Magical_Evade_Calculation