Difference between revisions of "Magic Attack Up routine"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (return link)
Line 27: Line 27:
 
  0018874c: [[Magical Support/Status/Compat]]
 
  0018874c: [[Magical Support/Status/Compat]]
 
  00188808: [[MA + X]]
 
  00188808: [[MA + X]]
 +
001888a0: [[00188888_-_00188960|Accuracy as User Faith * (MA + X)%]] (golem accuracy)
 
  00188860: [[Magical XA * YA]]
 
  00188860: [[Magical XA * YA]]
 
  00188898: [[Truth/Formula 5E-5F Magical damage]]
 
  00188898: [[Truth/Formula 5E-5F Magical damage]]

Revision as of 19:28, 28 August 2021

Magic Attack Up
00186204: 3c028019 lui r2,0x8019		
00186208: 8c422d94 lw r2,0x2d94(r2)		Load Attacker's Stats
0018620c: 00000000 nop				
00186210: 90420090 lbu r2,0x0090(r2)		Load Attacker's 2nd set of Supports
00186214: 00000000 nop				
00186218: 30420004 andi r2,r2,0x0004		
0018621c: 1040000b beq r2,r0,0x0018624c		Branch if Attacker doesn't have Magic Attack Up
00186220: 3c025555 lui r2,0x5555		
00186224: 3c048019 lui r4,0x8019		
00186228: 248438ce addiu r4,r4,0x38ce		
0018622c: 84830000 lh r3,0x0000(r4)		Load XA
00186230: 34425556 ori r2,r2,0x5556		R2 = 55555556
00186234: 00031880 sll r3,r3,0x02		XA * 4
00186238: 00620018 mult r3,r2			XA * 4 / 3
0018623c: 00031fc3 sra r3,r3,0x1f
00186240: 00001010 mfhi r2			Move to R2
00186244: 00431023 subu r2,r2,r3		
00186248: a4820000 sh r2,0x0000(r4)		Store new XA
0018624c: 03e00008 jr r31			
00186250: 00000000 nop


Return Locations

  • Battle.bin
0018874c: Magical Support/Status/Compat
00188808: MA + X
001888a0: Accuracy as User Faith * (MA + X)% (golem accuracy)
00188860: Magical XA * YA
00188898: Truth/Formula 5E-5F Magical damage
00188fec: 0E Dmg_(Y)% Hit_F(MA+X)% 100% Status Hide Status
0018a500: 51 Hit_(MA+X)%
0018a83c: 58 Generic: Set_Morbol: Hit(MA+X)%