Exemplo n.º 1
0
        // Function from file: spawner.dm
        public override dynamic Destroy(  )
        {
            Mob_Living_SimpleAnimal L = null;


            foreach (dynamic _a in Lang13.Enumerate(this.spawned_mobs, typeof(Mob_Living_SimpleAnimal)))
            {
                L = _a;


                if (L.nest == this)
                {
                    L.nest = null;
                }
            }
            this.spawned_mobs = null;
            return(base.Destroy());
        }
        // Function from file: petsplosion.dm
        public override void tick(  )
        {
            Mob_Living_SimpleAnimal F = null;


            if (this.activeFor >= this.countdown * 30)
            {
                this.countdown += 1;

                foreach (dynamic _a in Lang13.Enumerate(GlobalVars.living_mob_list, typeof(Mob_Living_SimpleAnimal)))
                {
                    F = _a;


                    if (!(F is Mob_Living_SimpleAnimal_Hostile))
                    {
                        Lang13.Call(F.type, F.loc);
                    }
                }
            }
            return;
        }