Get Ninja Ball effect

From Final Fantasy Hacktics Wiki
(Redirected from 001adfac - 001adfe8)
Jump to navigation Jump to search

001adfac: 1080000d beq r4,r0,0x001adfe4			branch if no weapon element flagged
001adfb0: 00001821 addu r3,r0,r0				counter = 0 
001adfb4: 3c01801c lui r1,0x801c
001adfb8: 00230821 addu r1,r1,r3
001adfbc: 90228544 lbu r2,-0x7abc(r1)		load ball element list? (00, 80, 04, 08, 10, 02, 01, 20, 40) (none, fire, water, earth, wind, holy, dark, Ice, Lightning (what the fuck is this format))
001adfc0: 00000000 nop
001adfc4: 00821024 and r2,r4,r2
001adfc8: 14400005 bne r2,r0,0x001adfe0		branch if ball element = loaded value
001adfcc: 00000000 nop
001adfd0: 24630001 addiu r3,r3,0x0001			counter + 1 (points to each of the above in order)
001adfd4: 28620009 slti r2,r3,0x0009
001adfd8: 1440fff6 bne r2,r0,0x001adfb4		branch if not repeated 9 times (once for each element)
001adfdc: 00000000 nop
001adfe0: 00602021 addu r4,r3,r0
001adfe4: 03e00008 jr r31
001adfe8: 00801021 addu r2,r4,r0			return counter