Пример #1
0
        // Function from file: processor.dm
        public virtual void process_food(Ent_Static loc = null, dynamic what = null, Obj_Machinery_Processor processor = null)
        {
            int?i = null;


            if (this.output != null && loc != null && processor != null)
            {
                i = null;
                i = 0;

                while ((i ?? 0) < Convert.ToDouble(processor.rating_amount))
                {
                    Lang13.Call(this.output, loc);
                    i++;
                }
            }

            if (Lang13.Bool(what))
            {
                GlobalFuncs.qdel(what);
            }
            return;
        }
Пример #2
0
        // Function from file: processor.dm
        public override void process_food(Ent_Static loc = null, dynamic what = null, Obj_Machinery_Processor processor = null)
        {
            dynamic S = null;
            int     C = 0;
            double  i = 0;

            S = what;
            C = S.cores;

            if (Convert.ToInt32(S.stat) != 2)
            {
                S.loc = loc;
                ((Ent_Static)S).visible_message("<span class='notice'>" + C + " crawls free of the processor!</span>");
                return;
            }

            foreach (dynamic _a in Lang13.IterateRange(1, C + Convert.ToDouble(processor.rating_amount) - 1))
            {
                i = _a;

                Lang13.Call(S.coretype, loc);
                GlobalFuncs.feedback_add_details("slime_core_harvested", "" + GlobalFuncs.replacetext(S.colour, " ", "_"));
            }
            base.process_food(loc, (object)(what), processor);
            return;
        }
        // Function from file: processor.dm
        public override void process_food(Ent_Static loc = null, dynamic what = null, Obj_Machinery_Processor processor = null)
        {
            dynamic O = null;
            Obj_Item_Weapon_ReagentContainers_Glass_Bucket bucket_of_blood = null;
            Reagent_Blood B = null;
            Disease       D = null;

            O = what;

            if (Lang13.Bool(O.client))
            {
                O.loc = loc;
                ((Ent_Static)O).visible_message("<span class='notice'>Suddenly " + O + " jumps out from the processor!</span>", "<span class='notice'>You jump out from the processor!</span>", "<span class='italics'>You hear chimpering.</span>");
                return;
            }
            bucket_of_blood = new Obj_Item_Weapon_ReagentContainers_Glass_Bucket(loc);
            B               = new Reagent_Blood();
            B.holder        = bucket_of_blood;
            B.volume        = 70;
            B.data["donor"] = O;

            foreach (dynamic _a in Lang13.Enumerate(O.viruses, typeof(Disease)))
            {
                D = _a;


                if (!((D.spread_flags & 1) != 0))
                {
                    B.data["viruses"] += D.Copy();
                }
            }

            if (Lang13.Bool(O.has_dna()))
            {
                B.data["blood_DNA"] = O.dna.unique_enzymes;
            }

            if (O.resistances != null && O.resistances.len != 0)
            {
                B.data["resistances"] = O.resistances.Copy();
            }
            bucket_of_blood.reagents.reagent_list.Add(B);
            bucket_of_blood.reagents.update_total();
            bucket_of_blood.on_reagent_change();
            base.process_food(loc, (object)(what), processor);
            return;
        }
Пример #4
0
 // Function from file: processor.dm
 public override void process_food(Ent_Static loc = null, dynamic what = null, Obj_Machinery_Processor processor = null)
 {
     base.process_food(loc, (object)(what), processor);
     return;
 }