41 Hit (MA+X)%

From Final Fantasy Hacktics Wiki
(Redirected from 0018a114 - 0018a178)
Jump to navigation Jump to search
[41]
0018a114: 27bdffe8 addiu r29,r29,-0x0018    |
0018a118: afbf0010 sw r31,0x0010(r29)       |
0018a11c: 0c0622a1 jal 0x00188a84           |-->MA_%2B_X_without_faith Set XA ans YA, applies magical modifier (no faith) and compat, uses XA+YA as Hit% - returns r2
0018a120: 00000000 nop                      |
0018a124: 14400011 bne r2,r0,0x0018a16c     #If Attack hits
0018a128: 00000000 nop                          |
0018a12c: 3c028019 lui r2,0x8019                |
0018a130: 8c422d98 lw r2,0x2d98(r2)             |r2 = Target data pointer
0018a134: 3c048019 lui r4,0x8019                |
0018a138: 8c842d94 lw r4,0x2d94(r4)             |r4 = Attacker data pointer
0018a13c: 94430008 lhu r3,0x0008(r2)            |r3 = Target's zodiac halfword
0018a140: 94820008 lhu r2,0x0008(r4)            |r2 = Attacker's zodiac halfword
0018a144: 3063f000 andi r3,r3,0xf000            |r3 = Target's zodiac nibble
0018a148: 3042f000 andi r2,r2,0xf000            |r2 = Attacker's zodiac nibble
0018a14c: 14620005 bne r3,r2,0x0018a164         #If Attacker zodiac = Caster zodiac
0018a150: 00000000 nop                              |
0018a154: 0c0610c3 jal 0x0018430c                   |-->Force_Attack_Miss Hit Flag = Miss Hit% = 0 - Evade type = 0x07
0018a158: 00000000 nop                              |
0018a15c: 0806285b j 0x0018a16c                     >>jump to END
0018a160: 00000000 nop
                                                #Else : Attacker zodiac <> Caster zodiac
0018a164: 0c061fc9 jal 0x00187f24               |-->Apply_status_(to_action)
0018a168: 00000000 nop                          |
0018a16c: 8fbf0010 lw r31,0x0010(r29)       END
0018a170: 27bd0018 addiu r29,r29,0x0018
0018a174: 03e00008 jr r31
0018a178: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup