14 Set Golem Hit CasF/100*(MA+X)%

From Final Fantasy Hacktics Wiki
(Redirected from 00189164 - 001891a8)
Jump to navigation Jump to search
0018916c: 27bdffe8 addiu r29,r29,-0x0018    
00189170: afbf0010 sw r31,0x0010(r29)       
00189174: 0c062222 jal 0x00188888           |-->Golem_Accuracy Set XA and YA, applies XA changes (Support), uses XA+YA as Hit% (Modified by Attacker faith) / Returns r2
00189178: 00000000 nop                      |
0018917c: 14400007 bne r2,r0,0x0018919c     #If Attack hits
00189180: 34030001 ori r3,r0,0x0001             |r3 = 0x01
00189184: 3c028019 lui r2,0x8019                |
00189188: 8c422d90 lw r2,0x2d90(r2)             |r2 = Target Current Action (TCA) data pointer
0018918c: 00000000 nop                          |
00189190: a4430010 sh r3,0x0010(r2)             |Enable TCA special flag Golem (disables other flags)
00189194: 34030001 ori r3,r0,0x0001             |r3 = 0x01
00189198: a0430025 sb r3,0x0025(r2)             |Set TCA Attack type to pseudo status (disables others types)
0018919c: 8fbf0010 lw r31,0x0010(r29)       END
001891a0: 27bd0018 addiu r29,r29,0x0018     
001891a4: 03e00008 jr r31                   
001891a8: 00000000 nop                      

Return locations

Battle.bin
0018b97c - Pre Formula Setup