Store PA and PA + Y / 2

From Final Fantasy Hacktics Wiki
Revision as of 03:50, 6 March 2012 by Choto (talk | contribs)
Jump to navigation Jump to search
Store PA and PA + Y / 2
00185d00: 3c038019 lui r3,0x8019		
00185d04: 8c632d94 lw r3,0x2d94(r3)		Load Attacker' Stats
00185d08: 00000000 nop				
00185d0c: 90620036 lbu r2,0x0036(r3)		Load Attacker's PA
00185d10: 3c018019 lui r1,0x8019		
00185d14: a42238ce sh r2,0x38ce(r1)		Store Attacker's PA as XA
00185d18: 90620036 lbu r2,0x0036(r3)		Load Attacker's PA (...)
00185d1c: 3c038019 lui r3,0x8019		
00185d20: 906338fa lbu r3,0x38fa(r3)		Load Ability Y
00185d24: 00000000 nop				
00185d28: 00431021 addu r2,r2,r3		PA + Y
00185d2c: 00021043 sra r2,r2,0x01		PA + Y / 2
00185d30: 3c018019 lui r1,0x8019		
00185d34: a42238d0 sh r2,0x38d0(r1)		Store PA + Y / 2 as YA
00185d38: 03e00008 jr r31			
00185d3c: 00000000 nop


Return Locations

  • Battle.bin
00189ce8: 31 Dmg_((PA+Y)/2*PA)
00189d8c: 32 Dmg_(Rdm(1…X)*(PA*3+Y))