Exemplo n.º 1
0
 protected override void OnClaimNPCForMobs(NPC npc)
 {
     if (SkeletonRaidersAmbush.AllSkeletons.Contains(npc.type))
     {
         if (!this.ValidateRaider(npc))
         {
             NPCHelpers.Remove(npc);
         }
         else
         {
             base.OnClaimNPCForMobs(npc);
         }
     }
 }
Exemplo n.º 2
0
        public override bool CheckActive()
        {
            float dist;
            int   playerIdx = this.npc.FindClosestPlayer(out dist);

            if (dist >= 1300)                   // 81.25 tiles away
            {
                NPCHelpers.Remove(npc);
                return(false);
            }
            else
            {
                Timers.SetTimer("IntrinsicsGhostExists", 2, false, () => false);
            }

            return(base.CheckActive());
        }