43 Dmg (CasMaxHP-CasCurHP)

From Final Fantasy Hacktics Wiki
Revision as of 18:23, 29 February 2016 by Emmy (talk | contribs)
Jump to navigation Jump to search
[43]
00186e28: 3c028019 lui r2,0x8019		
00186e2c: 8c422d94 lw r2,0x2d94(r2)	        Attacker's Data Pointer	
00186e30: 3c058019 lui r5,0x8019		
00186e34: 8ca52d90 lw r5,0x2d90(r5)		Target Current Action Data Pointer
00186e38: 9443002a lhu r3,0x002a(r2)		Load Attacker's Max HP
00186e3c: 94440028 lhu r4,0x0028(r2)		Load Attacker's current HP
00186e40: 34020080 ori r2,r0,0x0080		
00186e44: a0a20025 sb r2,0x0025(r5)      	Set as HP Damage
00186e48: 00641823 subu r3,r3,r4      		Damage is Self maxHP - curHP
00186e4c: 03e00008 jr r31			
00186e50: a4a30004 sh r3,0x0004(r5)      	Store Damage