Exemple #1
0
        // Function from file: statue.dm
        public override int?process(dynamic seconds = null)
        {
            Mob_Living M = null;

            this.timer--;

            foreach (dynamic _a in Lang13.Enumerate(this, typeof(Mob_Living)))
            {
                M = _a;

                M.setToxLoss(this.intialTox);
                M.adjustFireLoss(this.intialFire - M.getFireLoss());
                M.adjustBruteLoss(this.intialBrute - M.getBruteLoss());
                M.setOxyLoss(this.intialOxy);
            }

            if (this.timer <= 0)
            {
                this.dump_contents();
                GlobalVars.SSobj.processing.Remove(this);
                GlobalFuncs.qdel(this);
            }
            return(null);
        }