MP Absorption

From Final Fantasy Hacktics Wiki
Revision as of 09:12, 17 April 2021 by Orkney (talk | contribs) (link 18ba44)
Jump to navigation Jump to search
 MP Absorb Routine (Longer then it needs to be?)
0018746c: 3c028019 lui r2,0x8019		
00187470: 8c422d90 lw r2,0x2d90(r2)		Current Action Data Pointer
00187474: 27bdffe8 addiu r29,r29,0xffe8		
00187478: afbf0010 sw r31,0x0010(r29)		
0018747c: 94440004 lhu r4,0x0004(r2)		Load HP Damage
00187480: 34030020 ori r3,r0,0x0020		
00187484: a4400004 sh r0,0x0004(r2)		Store HP Damage as 0
00187488: a0430025 sb r3,0x0025(r2)		Store Attack Flag as MP Damage
0018748c: 0c062e91 jal 0x0018ba44		Set_some_data_for_current_attack
00187490: a4440008 sh r4,0x0008(r2)		Store HP Damage as MP Damage
00187494: 3c048019 lui r4,0x8019		
00187498: 8c842d90 lw r4,0x2d90(r4)		Current Action Data Pointer
0018749c: 00000000 nop				
001874a0: 90820000 lbu r2,0x0000(r4)		Load Hit Flag
001874a4: 00000000 nop				
001874a8: 1040000c beq r2,r0,0x001874dc		Branch if attack as evaded
001874ac: 00000000 nop				
001874b0: 3c038019 lui r3,0x8019		
001874b4: 8c632d8c lw r3,0x2d8c(r3)		
001874b8: 94820008 lhu r2,0x0008(r4)		Load MP Damage
001874bc: 00000000 nop				
001874c0: a462000a sh r2,0x000a(r3)		Store MP Damage as MP Recovery?
001874c4: 34020010 ori r2,r0,0x0010		R2 = 10
001874c8: a0620025 sb r2,0x0025(r3)		Store Attack Flag as MP Recovery
001874cc: 3c038019 lui r3,0x8019		
001874d0: 8c632d8c lw r3,0x2d8c(r3)		
001874d4: 34020001 ori r2,r0,0x0001		R2 = 1
001874d8: a0620000 sb r2,0x0000(r3)		
001874dc: 8fbf0010 lw r31,0x0010(r29)
001874e0: 27bd0018 addiu r29,r29,0x0018
001874e4: 03e00008 jr r31
001874e8: 00000000 nop


Return Locations

  • Battle.bin
001890c4: 0F AbsMP_(Y)% Hit_F(MA+X)%