Exemple #1
0
        // Function from file: meteor.dm
        public override bool declare_completion(  )
        {
            dynamic    text      = null;
            int        survivors = 0;
            Mob_Living player    = null;

            survivors = 0;

            foreach (dynamic _a in Lang13.Enumerate(GlobalVars.player_list, typeof(Mob_Living)))
            {
                player = _a;


                if (player.stat != 2)
                {
                    survivors++;

                    if (player.onCentcom())
                    {
                        text += "<br><b><font size=2>" + player.real_name + " escaped to the safety of Centcom.</font></b>";
                    }
                    else if (player.onSyndieBase())
                    {
                        text += "<br><b><font size=2>" + player.real_name + " escaped to the (relative) safety of Syndicate Space.</font></b>";
                    }
                    else
                    {
                        text += "<br><font size=1>" + player.real_name + " survived but is stranded without any hope of rescue.</font>";
                    }
                }
            }

            if (survivors != 0)
            {
                Game13.WriteMsg("<span class='boldnotice'>The following survived the meteor storm</span>:" + text);
            }
            else
            {
                Game13.WriteMsg("<span class='boldnotice'>Nobody survived the meteor storm!</span>");
            }
            GlobalFuncs.feedback_set_details("round_end_result", "end - evacuation");
            GlobalFuncs.feedback_set("round_end_result", survivors);
            base.declare_completion();
            return(true);
        }