示例#1
0
        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;
            }
        }
示例#2
0
        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);
        }