Invert Target Priority (0019630c)
Jump to navigation
Jump to search
001962a0: 3c03801a lui r3,0x801a 001962a4: 8c6301f8 lw r3,0x01f8(r3) units AI decision 001962a8: 00000000 nop 001962ac: 90620004 lbu r2,0x0004(r3) 001962b0: 3c04801a lui r4,0x801a 001962b4: 2484f3c4 addiu r4,r4,0xf3c4 001962b8: 30420040 andi r2,r2,0x0040 001962bc: 1040000f beq r2,r0,0x001962fc branch if not focust on target 001962c0: 00000000 nop return acting units move 001962c4: 90620005 lbu r2,0x0005(r3) load main target ID 001962c8: 00000000 nop 001962cc: 00021100 sll r2,r2,0x04 001962d0: 00441021 addu r2,r2,r4 001962d4: 90421834 lbu r2,0x1834(r2) load enemy flag 001962d8: 00000000 nop 001962dc: 10400004 beq r2,r0,0x001962f0 branch if ally 001962e0: 00000000 nop 001962e4: 9062000e lbu r2,0x000e(r3) if enemy, load lowest range ability 001962e8: 080658c1 j 0x00196304 001962ec: 00000000 nop 001962f0: 9062000f lbu r2,0x000f(r3) if ally, load highest range ability 001962f4: 080658c1 j 0x00196304 001962f8: 00000000 nop 001962fc: 3c02801a lui r2,0x801a 00196300: 904201fc lbu r2,0x01fc(r2) load acting units move 00196304: 03e00008 jr r31 00196308: 00000000 nop