1A Hit F(MA+Y)% // -PA/MA/SP (X)

From Final Fantasy Hacktics Wiki
Revision as of 13:44, 17 December 2020 by EnderC (talk | contribs) (Link routines)
Jump to navigation Jump to search
 [1A]
001892ac: 27bdffe8 addiu r29,r29,0xffe8
001892b0: afbf0010 sw r31,0x0010(r29)
001892b4: 0c06216e jal 0x 001885b8    		Magical Evade Calculation
001892b8: 00000000 nop				
001892bc: 1440001b bne r2,r0,0x 0018932c		
001892c0: 00000000 nop				
001892c4: 0c061725 jal 0x 00185c94    		Store MA and Y
001892c8: 00000000 nop				
001892cc: 0c0617ff jal 0x 00185ffc       	Elemental Strengthen
001892d0: 00000000 nop				
001892d4: 0c0621d1 jal 0x 00188744      	Magical Support/Status/Compat
001892d8: 00000000 nop				
001892dc: 0c061967 jal 0x 0018659c               Set XA + YA for Status Formulas (Stupid section)
001892e0: 00000000 nop				
001892e4: 0c061c54 jal 0x 00187150      	Faith Calculation
001892e8: 00000000 nop				
001892ec: 0c061d44 jal 0x 00187510               Set XA*YA as hit%
001892f0: 00000000 nop				
001892f4: 3c038019 lui r3,0x8019		
001892f8: 8c632d90 lw r3,0x2d90(r3)		
001892fc: 00000000 nop				
00189300: 90620000 lbu r2,0x0000(r3)		
00189304: 00000000 nop				
00189308: 14400006 bne r2,r0,0x 00189324		
0018930c: 00000000 nop				
00189310: 94620010 lhu r2,0x0010(r3)		
00189314: 00000000 nop				
00189318: 3042fffb andi r2,r2,0xfffb		
0018931c: 080624cb j 0x 0018932c			
00189320: a4620010 sh r2,0x0010(r3)   		Do not allow absorption.
00189324: 0c061e18 jal 0x 00187860     		Determine which stat will be reduced
00189328: 00000000 nop				
0018932c: 8fbf0010 lw r31,0x0010(r29)		
00189330: 27bd 0018 addiu r29,r29,0x 0018		
00189334: 03e00008 jr r31			
00189338: 00000000 nop