Ability Loading - Charge

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
*Charge*
0019a7e4: 17c2000c bne r30,r2,0x 0019a818	Branch if Action Menu != Charge
0019a7e8: 001610c0 sll r2,r22,0x03		Unit's ID * 8
0019a7ec: 001210c0 sll r2,r18,0x03		Unit's Battle ID * 8
0019a7f0: 3c08801a lui r8,0x801a
0019a7f4: 2508f3c4 addiu r8,r8,0xf3c4
0019a7f8: 00481021 addu r2,r2,r8
0019a7fc: 9050177c lbu r16,0x177c(r2)		Load Unit's Weapon ID
0019a800: 00000000 nop
0019a804: 2602ffb9 addiu r2,r16,0xffb9		Weapon ID - 0x47 (Romanda Gun)
0019a808: 2c420006 sltiu r2,r2,0x0006
0019a80c: 14400083 bne r2,r0,0x 0019aa1c		Branch if Weapon is a Gun
0019a810: 02601021 addu r2,r19,r0		r2 = Counter
0019a814: 001610c0 sll r2,r22,0x03		Unit's ID * 8