예제 #1
0
        public void blob_broadcast(  )
        {
            dynamic speak_text = null;
            Mob_Living_SimpleAnimal_Hostile_Blob blob_minion = null;

            speak_text = Interface13.Input(this, "What would you like to say with your minions?", "Blob Broadcast", null, null, InputType.Str);

            if (!Lang13.Bool(speak_text))
            {
                return;
            }
            else
            {
                this.WriteMsg("You broadcast with your minions, <B>" + speak_text + "</B>");
            }

            foreach (dynamic _a in Lang13.Enumerate(this.blob_mobs, typeof(Mob_Living_SimpleAnimal_Hostile_Blob)))
            {
                blob_minion = _a;


                if (blob_minion.overmind == this && blob_minion.stat == 0)
                {
                    blob_minion.say(speak_text);
                }
            }
            return;
        }
예제 #2
0
        // Function from file: powers.dm
        public void set_chemical(  )
        {
            dynamic         BC = null;
            Obj_Effect_Blob BL = null;
            Mob_Living_SimpleAnimal_Hostile_Blob BLO = null;

            BC = Rand13.PickFromTable(Lang13.GetTypes(typeof(Reagent_Blob)) - typeof(Reagent_Blob) - this.blob_reagent_datum.type);
            this.blob_reagent_datum = Lang13.Call(BC);

            foreach (dynamic _a in Lang13.Enumerate(GlobalVars.blobs, typeof(Obj_Effect_Blob)))
            {
                BL = _a;

                BL.update_icon();
            }

            foreach (dynamic _b in Lang13.Enumerate(typeof(Game13), typeof(Mob_Living_SimpleAnimal_Hostile_Blob)))
            {
                BLO = _b;

                BLO.update_icons();
            }
            this.WriteMsg("Your reagent is now: <b><font color=\"" + this.blob_reagent_datum.color + "\">" + this.blob_reagent_datum.name + "</b></font>!");
            this.WriteMsg("The <b><font color=\"" + this.blob_reagent_datum.color + "\">" + this.blob_reagent_datum.name + "</b></font> reagent " + this.blob_reagent_datum.description);
            return;
        }