Пример #1
0
        // Function from file: standard.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            visualsOnly = visualsOnly ?? GlobalVars.FALSE;

            Obj_Item_Clothing_Under U              = null;
            dynamic                 sec_briefcase  = null;
            Obj_Item                briefcase_item = null;
            int?                    i              = null;
            Obj_Item_Device_Pda     pda            = null;
            Obj_Item_Weapon_Card_Id W              = null;

            U = ((dynamic)H).w_uniform;
            U.attachTie(new Obj_Item_Clothing_Tie_Waistcoat(H));

            if (Lang13.Bool(visualsOnly))
            {
                return;
            }
            sec_briefcase = H.l_hand;

            foreach (dynamic _a in Lang13.Enumerate(sec_briefcase, typeof(Obj_Item)))
            {
                briefcase_item = _a;

                GlobalFuncs.qdel(briefcase_item);
            }
            i = null;
            i = 3;

            while ((i ?? 0) > 0)
            {
                ((Obj_Item_Weapon_Storage)sec_briefcase).handle_item_insertion(new Obj_Item_Stack_Spacecash_C1000(), true);
                i--;
            }
            ((Obj_Item_Weapon_Storage)sec_briefcase).handle_item_insertion(new Obj_Item_Weapon_Gun_Energy_KineticAccelerator_Crossbow(), true);
            ((Obj_Item_Weapon_Storage)sec_briefcase).handle_item_insertion(new Obj_Item_Weapon_Gun_Projectile_Revolver_Mateba(), true);
            ((Obj_Item_Weapon_Storage)sec_briefcase).handle_item_insertion(new Obj_Item_AmmoBox_A357(), true);
            ((Obj_Item_Weapon_Storage)sec_briefcase).handle_item_insertion(new Obj_Item_Weapon_C4(), true);
            pda        = ((dynamic)H).belt;
            pda.owner  = H.real_name;
            pda.ownjob = "Reaper";
            pda.update_label();
            W                 = ((dynamic)H).wear_id;
            W.access          = GlobalFuncs.get_all_accesses();
            W.assignment      = "Reaper";
            W.registered_name = H.real_name;
            W.update_label(H.real_name);
            return;
        }
Пример #2
0
        // Function from file: captain.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            visualsOnly = visualsOnly ?? GlobalVars.FALSE;

            Obj_Item_Clothing_Under         U = null;
            Obj_Item_Weapon_Implant_Loyalty L = null;

            base.post_equip(H, visualsOnly);
            U = ((dynamic)H).w_uniform;
            U.attachTie(new Obj_Item_Clothing_Tie_Medal_Gold_Captain());

            if (Lang13.Bool(visualsOnly))
            {
                return;
            }
            L           = new Obj_Item_Weapon_Implant_Loyalty(H);
            L.imp_in    = H;
            L.implanted = 1;
            ((dynamic)H).sec_hud_set_implants();
            GlobalFuncs.minor_announce("Captain " + H.real_name + " on deck!");
            return;
        }
Пример #3
0
        // Function from file: security.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            visualsOnly = visualsOnly ?? GlobalVars.FALSE;

            Obj_Item_Clothing_Under         U = null;
            Obj_Item_Weapon_Implant_Loyalty L = null;
            dynamic W        = null;
            bool    teleport = false;
            dynamic T        = null;
            int     safety   = 0;

            base.post_equip(H, visualsOnly);
            U = ((dynamic)H).w_uniform;

            if (this.tie != null)
            {
                U.attachTie(Lang13.Call(this.tie));
            }

            if (Lang13.Bool(visualsOnly))
            {
                return;
            }
            L           = new Obj_Item_Weapon_Implant_Loyalty(H);
            L.imp_in    = H;
            L.implanted = 1;
            ((dynamic)H).sec_hud_set_implants();
            W         = ((dynamic)H).wear_id;
            W.access |= this.dep_access;
            teleport  = false;

            if (!GlobalVars.config.sec_start_brig)
            {
                if (this.destination != null || Lang13.Bool(this.spawn_point))
                {
                    teleport = true;
                }
            }

            if (teleport)
            {
                if (Lang13.Bool(this.spawn_point))
                {
                    T = GlobalFuncs.get_turf(this.spawn_point);
                    H.Move(T);
                }
                else
                {
                    safety = 0;

                    while (safety < 25)
                    {
                        T = GlobalFuncs.safepick(GlobalFuncs.get_area_turfs(this.destination));

                        if (Lang13.Bool(T) && !H.Move(T))
                        {
                            safety += 1;
                            continue;
                        }
                        else
                        {
                            break;
                        }
                    }
                }
            }

            if (Lang13.Bool(this.department))
            {
                H.WriteMsg("<b>You have been assigned to " + this.department + "!</b>");
            }
            else
            {
                H.WriteMsg("<b>You have not been assigned to any department. Patrol the halls and help where needed.</b>");
            }
            return;
        }