Exemplo n.º 1
0
        private void GooeyMaggotsSpawn()
        {
            if (Map != null && Map != Map.Internal)
            {
                int amount = Utility.RandomMinMax(1, 2);

                for (int i = 0; i < amount; ++i)
                {
                    BaseCreature creature = new GooeyMaggots();
                    creature.MoveToWorld(Map.GetSpawnPosition(Location, 2), Map);
                    Effects.SendLocationParticles(EffectItem.Create(Location, Map, EffectItem.DefaultDuration), 0x3728, 8, 20, 5042);
                }
            }

            Delete();
        }
Exemplo n.º 2
0
        private void GooeyMaggotsSpawn()
        {
            int          amount = Utility.RandomMinMax(1, 2);
            BaseCreature creature;
            Map          map = this.Map;

            for (int i = 0; i < amount; ++i)
            {
                creature = new GooeyMaggots();

                creature.GetSpawnPosition(2);
                Effects.SendLocationParticles(EffectItem.Create(this.Location, this.Map, EffectItem.DefaultDuration), 0x3728, 8, 20, 5042);
            }

            this.Delete();
        }