2A Hit (MA+X)% // AffectBraveOrFaith(Y)

From Final Fantasy Hacktics Wiki
Revision as of 04:23, 8 January 2021 by Raijinili (talk | contribs) (Spacing)
Jump to navigation Jump to search
[2a]
001899a4: 27bdffe8 addiu r29,r29,0xffe8         
001899a8: afbf0010 sw r31,0x0010(r29)           
001899ac: 0c061d7f jal 0x 001875fc              Sleep Check
001899b0: 00000000 nop                          
001899b4: 3c028019 lui r2,0x8019                
001899b8: 8c422d98 lw r2,0x2d98(r2)             
001899bc: 00000000 nop                          
001899c0: 90420006 lbu r2,0x0006(r2)            Gender check
001899c4: 00000000 nop                          
001899c8: 30420020 andi r2,r2,0x0020            
001899cc: 1040000b beq r2,r0,0x 001899fc        Branch if unit is not a monster
001899d0: 00000000 nop                          
001899d4: 3c028019 lui r2,0x8019                
001899d8: 8c422d94 lw r2,0x2d94(r2)             
001899dc: 00000000 nop                          
001899e0: 90420091 lbu r2,0x0091(r2)            
001899e4: 00000000 nop                          
001899e8: 30420010 andi r2,r2,0x0010            
001899ec: 14400003 bne r2,r0,0x 001899fc        Branch if attacker has monster talk
001899f0: 00000000 nop                          
001899f4: 0c0610c3 jal 0x 0018430c              Force Attack Miss
001899f8: 00000000 nop                          
001899fc: 3c028019 lui r2,0x8019                
00189a00: 8c422d90 lw r2,0x2d90(r2)             
00189a04: 00000000 nop                          
00189a08: 90420000 lbu r2,0x0000(r2)            
00189a0c: 00000000 nop                          
00189a10: 1040001b beq r2,r0,0x 00189a80        Branch if it doesn't hit
00189a14: 00000000 nop                          
00189a18: 0c0620be jal 0x 001882f8              Finger Guard
00189a1c: 00000000 nop                          
00189a20: 3c028019 lui r2,0x8019                
00189a24: 8c422d90 lw r2,0x2d90(r2)             
00189a28: 00000000 nop                          
00189a2c: 90420000 lbu r2,0x0000(r2)            
00189a30: 00000000 nop                          
00189a34: 10400012 beq r2,r0,0x 00189a80        Branch if it doesn't hit
00189a38: 00000000 nop                          
00189a3c: 0c061760 jal 0x 00185d80              Store MA and X
00189a40: 00000000 nop                          
00189a44: 0c061259 jal 0x 00184964              Compatibility
00189a48: 00000000 nop                          
00189a4c: 0c061967 jal 0x 0018659c              Set XA + YA for Status Formulas (Stupid section)
00189a50: 00000000 nop                          
00189a54: 0c061d44 jal 0x 00187510              Set XA*YA as hit%
00189a58: 00000000 nop                          
00189a5c: 3c028019 lui r2,0x8019                
00189a60: 8c422d90 lw r2,0x2d90(r2)             
00189a64: 00000000 nop                          
00189a68: 90420000 lbu r2,0x0000(r2)            
00189a6c: 00000000 nop                          
00189a70: 10400003 beq r2,r0,0x 00189a80        Branch if doesn't hit
00189a74: 00000000 nop                          
00189a78: 0c061b01 jal 0x 00186c04              Talk Skill Skill Set Hard-Coding
00189a7c: 00000000 nop                          
00189a80: 8fbf0010 lw r31,0x0010(r29)           
00189a84: 27bd0018 addiu r29,r29,0x 0018        
00189a88: 03e00008 jr r31                       
00189a8c: 00000000 nop