34 Heal (PA*Y) HealMP (PA*Y/2)

From Final Fantasy Hacktics Wiki
Revision as of 14:30, 26 June 2016 by Emmy (talk | contribs)
Jump to navigation Jump to search
[34]
00189e94: 27bdffe8 addiu r29,r29,0xffe8		
00189e98: afbf0010 sw r31,0x0010(r29)		
00189e9c: 0c061781 jal 0x 00185e04      		Store PA and Y
00189ea0: 00000000 nop				
00189ea4: 0c061853 jal 0x 0018614c      		Formula 32, 33, 34, 35 Attack Up and Martial Arts
00189ea8: 00000000 nop				
00189eac: 0c061259 jal 0x 00184964      		Compatibility
00189eb0: 00000000 nop				
00189eb4: 0c06195a jal 0x 00186568      		XA * YA Calculation (Forbids elemental.)
00189eb8: 00000000 nop				
00189ebc: 3c048019 lui r4,0x8019		
00189ec0: 8c842d90 lw r4,0x2d90(r4)		
00189ec4: 00000000 nop				
00189ec8: 94820004 lhu r2,0x0004(r4)		
00189ecc: a4800004 sh r0,0x0004(r4)		
00189ed0: a4820006 sh r2,0x0006(r4)      	Set HP Healing
00189ed4: 94830006 lhu r3,0x0006(r4)		
00189ed8: 34020050 ori r2,r0,0x0050		
00189edc: a0820025 sb r2,0x0025(r4)		
00189ee0: 00031c00 sll r3,r3,0x10      		
00189ee4: 00031403 sra r2,r3,0x10      		
00189ee8: 00031fc2 srl r3,r3,0x1f      		
00189eec: 00431021 addu r2,r2,r3		
00189ef0: 00021043 sra r2,r2,0x01		
00189ef4: a482000a sh r2,0x000a(r4)      	SEt MP Healing as half of HP
00189ef8: 8fbf0010 lw r31,0x0010(r29)		
00189efc: 27bd0018 addiu r29,r29,0x 0018		
00189f00: 03e00008 jr r31			
00189f04: 00000000 nop