1D Hit (X)%

From Final Fantasy Hacktics Wiki
Revision as of 18:43, 18 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
001893d8: 27bdffe8 addiu r29,r29,-0x0018    |
001893dc: afbf0010 sw r31,0x0010(r29)       |
001893e0: 0c061d7f jal 0x001875fc           |-->Sleep Check If Target is Sleeping, Forces the Attack to miss
001893e4: 00000000 nop                      |
001893e8: 3c028019 lui r2,0x8019            |
001893ec: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
001893f0: 00000000 nop                      |
001893f4: 90420000 lbu r2,0x0000(r2)        |r2 = TCA Hit flag
001893f8: 00000000 nop                      |
001893fc: 10400009 beq r2,r0,0x00189424     #If Attack hit /Else Target is sleeping, branch to END
00189400: 00000000 nop                          |
00189404: 0c0610d8 jal 0x00184360               |-->Dance/Song hit % Uses Ability X as Hit% / Return r2
00189408: 00000000 nop                          |
0018940c: 14400005 bne r2,r0,0x00189424         #If Attack hits
00189410: 00000000 nop                              |
00189414: 0c0616a7 jal 0x00185a9c                   |-->Base XA Calculation Set XA and YA (Based on Weapon Type)
00189418: 00000000 nop                              |
0018941c: 0c061abe jal 0x00186af8                   |-->Dance abilities Set Various TCA data based on Ability ID (Hard coded)
00189420: 00000000 nop                              |
00189424: 8fbf0010 lw r31,0x0010(r29)       END
00189428: 27bd0018 addiu r29,r29,0x0018     
0018942c: 03e00008 jr r31                   
00189430: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup