2B Hit (PA+Y)% // -PA/MA/SP (X)

From Final Fantasy Hacktics Wiki
(Redirected from 00189a90 - 00189ad4)
Jump to navigation Jump to search
00189a90: 27bdffe8 addiu r29,r29,0xffe8     |
00189a94: afbf0010 sw r31,0x0010(r29)       |
00189a98: 0c062144 jal 0x00188510           |-->Physical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
00189a9c: 00000000 nop                      |
00189aa0: 14400009 bne r2,r0,0x00189ac8     #If Attack is not evaded
00189aa4: 00000000 nop                          |
00189aa8: 0c061781 jal 0x00185e04               |-->Store_PA_and_Y XA = Attacker's PA and YA = Ability Y
00189aac: 00000000 nop                          |
00189ab0: 0c0621b5 jal 0x001886d4               |-->Calculate_Accuracy_for_Physical Modify XA and YA (physical) and uses XA+YA as hit% - Returns r2
00189ab4: 00000000 nop                          |
00189ab8: 14400003 bne r2,r0,0x00189ac8         #If Attack hits
00189abc: 00000000 nop                              |
00189ac0: 0c061e18 jal 0x00187860                   |-->Determine which stat will be reduced Reduces stat based on Ability ID / Enhance Attack type with pseudo status flag
00189ac4: 00000000 nop                              |
00189ac8: 8fbf0010 lw r31,0x0010(r29)       END
00189acc: 27bd0018 addiu r29,r29,0x0018
00189ad0: 03e00008 jr r31
00189ad4: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup