// 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); } }
// Function from file: monkey.dm public override bool check_finished( ) { Mind monkey_mind = null; Disease_Transformation_JungleFever D = null; Mob_Living_Carbon_Human H = null; if (GlobalVars.SSshuttle.emergency.mode >= 6 || this.station_was_nuked) { return(true); } if (!Lang13.Bool(this.round_converted)) { foreach (dynamic _a in Lang13.Enumerate(this.ape_infectees, typeof(Mind))) { monkey_mind = _a; this.continuous_sanity_checked = true; if (Lang13.Bool(monkey_mind.current) && Convert.ToInt32(monkey_mind.current.stat) != 2) { return(false); } } D = new Disease_Transformation_JungleFever(); foreach (dynamic _b in Lang13.Enumerate(GlobalVars.living_mob_list, typeof(Mob_Living_Carbon_Human))) { H = _b; if (H.mind != null && H.stat != 2) { if (H.HasDisease(D)) { return(false); } } } } base.check_finished(); return(false); }
// Function from file: monkey.dm public override bool post_setup(bool?report = null) { Mind carriermind = null; Disease_Transformation_JungleFever D = null; foreach (dynamic _a in Lang13.Enumerate(this.carriers, typeof(Mind))) { carriermind = _a; this.greet_carrier(carriermind); this.ape_infectees.Add(carriermind); D = new Disease_Transformation_JungleFever(); D.visibility_flags = 3; D.holder = carriermind.current; D.affected_mob = carriermind.current; carriermind.current.viruses += D; } base.post_setup(report); return(false); }