Пример #1
0
        public override void EditSpawnPool(IDictionary <int, float> pool, NPCSpawnInfo spawnInfo)
        {
            Vector2 Spawn = new Vector2(spawnInfo.spawnTileX, spawnInfo.spawnTileY) * 16f;

            if (EntrogicWorld.Check(Spawn.X, Spawn.Y))
            {
                pool.Remove(0);
            }
        }
Пример #2
0
 public override bool PreAI(NPC npc)
 {
     if (EntrogicWorld.Check(npc.position.X, npc.position.Y) && npc.wet && IsPreHardmodeSlime(npc) && Main.netMode != NetmodeID.MultiplayerClient)
     {
         NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, NPCType <NPCs.Boss.凝胶Java盾.Embryo>());
         npc.StrikeNPC(9999, 0, 0);
         if (Main.netMode == NetmodeID.Server)
         {
             NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
         }
         Main.PlaySound(SoundID.NPCHit1, npc.position);
     }
     return(!frozen);
 }