Difference between revisions of "Calculate MP% damage"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0018668c: 3c028019 lui r2,0x8019 00186690: 8c422d98 lw r2,0x2d98(r2) 00186694: 00000000 nop 00186698: 9443002e lhu r3,0x002e(r2) load targ...")
 
m (return location)
Line 26: Line 26:
 
  001866e8: 00000000 nop
 
  001866e8: 00000000 nop
 
</font>
 
</font>
 +
 +
Return location (not complete)
 +
001890b4: [[0F_AbsMP_(Y)%25_Hit_F(MA%2BX)%25|Formula 0F]]

Revision as of 08:54, 17 April 2021

0018668c: 3c028019 lui r2,0x8019
00186690: 8c422d98 lw r2,0x2d98(r2)			
00186694: 00000000 nop
00186698: 9443002e lhu r3,0x002e(r2)			load target max MP
0018669c: 3c028019 lui r2,0x8019
001866a0: 904238fa lbu r2,0x38fa(r2)			load ability Y
001866a4: 00000000 nop
001866a8: 00620018 mult r3,r2					max MP*Y
001866ac: 3c0351eb lui r3,0x51eb
001866b0: 00001012 mflo r2
001866b4: 3463851f ori r3,r3,0x851f
001866b8: 24420063 addiu r2,r2,0x0063
001866bc: 00430018 mult r2,r3					??
001866c0: 27bdfff8 addiu r29,r29,0xfff8
001866c4: 3c038019 lui r3,0x8019
001866c8: 8c632d90 lw r3,0x2d90(r3)
001866cc: 34020020 ori r2,r0,0x0020
001866d0: a0620025 sb r2,0x0025(r3)				store target MP dmg
001866d4: 00001010 mfhi r2
001866d8: 00021143 sra r2,r2,0x05
001866dc: a4620008 sh r2,0x0008(r3)				store target MP damage = ??
001866e0: 27bd0008 addiu r29,r29,0x0008
001866e4: 03e00008 jr r31
001866e8: 00000000 nop

Return location (not complete)

001890b4: Formula 0F