public override void AI() { Player player = Main.player[npc.target]; AAAI.AIWorm(npc, new int[] { mod.NPCType("SnakeHead"), mod.NPCType("SnakeBody"), mod.NPCType("SnakeTail") }, 9, 8f, 12f, 0.1f, false, false); if (npc.velocity.X < 0f) { npc.spriteDirection = 1; } else { npc.spriteDirection = -1; } }
public override void AI() { Player player = Main.player[npc.target]; AAAI.AIWorm(npc, new int[] { mod.NPCType("Uraeus"), mod.NPCType("UraeusBody"), mod.NPCType("UraeusTail") }, 7, 0f, 10f, 0.07f, true, false, true, true, true); }