Difference between revisions of "Calculate Accuracy for Magical Spells"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (Start return location)
m (Return 17)
Line 24: Line 24:
  
 
Return location (not complete)
 
Return location (not complete)
  001890a4: [[0F_AbsMP_(Y)%25_Hit_F(MA%2BX)%25|0F AbsMP (Y)% Hit F(MA+X)%]]
+
  001890a4: [[0F_AbsMP_(Y)%25_Hit_F(MA%2BX)%25|Formula 0F - AbsMP (Y)% Hit F(MA+X)%]]
 +
0018927c: [[17_Dmg_(TarCurHP-1)_Hit_F(MA%2BX)%25|Formula 17 - Dmg (TarCurHP-1) Hit F(MA+X)% ]]

Revision as of 19:29, 19 April 2021

Calculate Accuracy for Magical Spells (No elemental boost)
001889cc: 27bdffe8 addiu r29,r29,0xffe8		
001889d0: afbf0010 sw r31,0x0010(r29)		
001889d4: 0c061760 jal 0x00185d80		Store MA and X
001889d8: 00000000 nop				
001889dc: 0c0621d1 jal 0x00188744		Magical Support/Status/Compat
001889e0: 00000000 nop				
001889e4: 0c061967 jal 0x0018659c		Set XA + YA for Status Formulas (Stupid section)
001889e8: 00000000 nop				
001889ec: 0c061c54 jal 0x00187150		Faith Calculation
001889f0: 00000000 nop				
001889f4: 0c061d44 jal 0x00187510		Set XA*YA as hit%
001889f8: 00000000 nop				
001889fc: 3c028019 lui r2,0x8019		
00188a00: 8c422d90 lw r2,0x2d90(r2)		Current Action Data Pointer
00188a04: 00000000 nop				
00188a08: 90420000 lbu r2,0x0000(r2)		
00188a0c: 00000000 nop				
00188a10: 2c420001 sltiu r2,r2,0x0001		
00188a14: 8fbf0010 lw r31,0x0010(r29)		
00188a18: 27bd0018 addiu r29,r29,0x0018		
00188a1c: 03e00008 jr r31			
00188a20: 00000000 nop

Return location (not complete)

001890a4: Formula 0F - AbsMP (Y)% Hit F(MA+X)%
0018927c: Formula 17 - Dmg (TarCurHP-1) Hit F(MA+X)%