Ejemplo n.º 1
0
        // Function from file: monkey.dm
        public bool check_monkey_victory(  )
        {
            Disease_Transformation_JungleFever D = null;
            Mob_Living_Carbon_Monkey           M = null;


            if (GlobalVars.SSshuttle.emergency.mode != 6)
            {
                return(false);
            }
            D = new Disease_Transformation_JungleFever();

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


                if (M.HasDisease(D))
                {
                    if (M.onCentcom() || M.onSyndieBase())
                    {
                        this.escaped_monkeys++;
                    }
                }
            }

            if (this.escaped_monkeys >= this.monkeys_to_win)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }