// Function from file: cards_ids.dm public Obj_Item_Weapon_Card_Id_CaptainsSpare(dynamic loc = null) : base((object)(loc)) { Job_Captain J = null; J = new Job_Captain(); this.access = J.get_access(); // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!; return; }
// Function from file: xmas.dm public override bool start( ) { dynamic M = null; string response = null; Obj_Item_Weapon_Card_Id_Gold santacard = null; Job_Captain J = null; dynamic bag = null; Obj_Item_Weapon_AGift gift = null; Objective santa_objective = null; Obj_Effect_ProcHolder_Spell_Targeted_AreaTeleport_Teleport telespell = null; foreach (dynamic _a in Lang13.Enumerate(GlobalVars.dead_mob_list)) { M = _a; Task13.Schedule(0, (Task13.Closure)(() => { response = Interface13.Alert(M, "Santa is coming to town! Do you want to be santa?", "Ho ho ho!", "Yes", "No"); if (response == "Yes" && Lang13.Bool(M) && Lang13.Bool(M.client) && Convert.ToInt32(M.stat) == 2 && !(this.santa != null)) { this.santa = new Mob_Living_Carbon_Human(Rand13.PickFromTable(GlobalVars.blobstart)); this.santa.key = M.key; GlobalFuncs.qdel(M); this.santa.real_name = "Santa Claus"; this.santa.name = "Santa Claus"; this.santa.mind.name = "Santa Claus"; this.santa.mind.assigned_role = "Santa"; this.santa.mind.special_role = "Santa"; this.santa.hair_style = "Long Hair"; this.santa.facial_hair_style = "Full Beard"; this.santa.hair_color = "FFF"; this.santa.facial_hair_color = "FFF"; this.santa.equip_to_slot_or_del(new Obj_Item_Clothing_Under_Color_Red(), 14); this.santa.equip_to_slot_or_del(new Obj_Item_Clothing_Suit_Space_Santa(), 13); this.santa.equip_to_slot_or_del(new Obj_Item_Clothing_Head_Santa(), 11); this.santa.equip_to_slot_or_del(new Obj_Item_Clothing_Mask_Breath(), 2); this.santa.equip_to_slot_or_del(new Obj_Item_Clothing_Gloves_Color_Red(), 10); this.santa.equip_to_slot_or_del(new Obj_Item_Clothing_Shoes_Sneakers_Red(), 12); this.santa.equip_to_slot_or_del(new Obj_Item_Weapon_Tank_Internals_EmergencyOxygen_Double(), 6); this.santa.equip_to_slot_or_del(new Obj_Item_Device_Radio_Headset_Heads_Captain(), 8); this.santa.equip_to_slot_or_del(new Obj_Item_Weapon_Storage_Backpack_Santabag(), 1); this.santa.equip_to_slot_or_del(new Obj_Item_Device_Flashlight(), 16); santacard = new Obj_Item_Weapon_Card_Id_Gold(this.santa); santacard.update_label("Santa Claus", "Santa"); J = new Job_Captain(); santacard.access = J.get_access(); this.santa.equip_to_slot_or_del(santacard, 7); this.santa.update_icons(); bag = this.santa.back; gift = new Obj_Item_Weapon_AGift(this.santa); while (((Obj_Item_Weapon_Storage)bag).can_be_inserted(gift, true)) { ((Obj_Item_Weapon_Storage)bag).handle_item_insertion(gift, true); gift = new Obj_Item_Weapon_AGift(this.santa); } santa_objective = new Objective(); santa_objective.explanation_text = "Bring joy and presents to the station!"; santa_objective.completed = true; santa_objective.owner = this.santa.mind; this.santa.mind.objectives.Add(santa_objective); this.santa.mind.AddSpell(new Obj_Effect_ProcHolder_Spell_AoeTurf_Conjure_Presents()); telespell = new Obj_Effect_ProcHolder_Spell_Targeted_AreaTeleport_Teleport(this.santa); telespell.clothes_req = 0; this.santa.mind.AddSpell(telespell); this.santa.WriteMsg("<span class='boldannounce'>You are Santa! Your objective is to bring joy to the people on this station. You can conjure more presents using a spell, and there are several presents in your bag.</span>"); } return; })); } return(false); }