// Function from file: closets.dm public override bool MouseDrop_T(Ent_Static dropping = null, Mob user = null) { Ent_Static L = null; if (!(dropping is Ent_Dynamic) || Lang13.Bool(((dynamic)dropping).anchored) || dropping is Obj_Screen) { return(false); } if (user.incapacitated() || Lang13.Bool(user.lying)) { return(false); } if (!this.Adjacent(user) || !user.Adjacent(dropping)) { return(false); } if (!this.opened || dropping is Obj_Structure_Closet) { return(false); } if (user == dropping) { return(false); } this.add_fingerprint(user); user.visible_message("<span class='warning'>" + user + " tries to stuff " + dropping + " into " + this + ".</span>", "<span class='warning'>You try to stuff " + dropping + " into " + this + ".</span>", "<span class='italics'>You hear clanging.</span>"); if (GlobalFuncs.do_after(user, 40, null, this)) { user.visible_message("<span class='notice'>" + user + " stuffs " + dropping + " into " + this + ".</span>", "<span class='notice'>You stuff " + dropping + " into " + this + ".</span>", "<span class='italics'>You hear a loud metal bang.</span>"); L = dropping; if (L is Mob_Living) { ((dynamic)L).Weaken(2); } Map13.StepTowardsSimple((Ent_Dynamic)(dropping), this.loc); this.close(); } return(true); }
// Function from file: cryo.dm public override bool MouseDrop_T(Ent_Static dropping = null, Mob user = null) { if (user.stat != 0 || Lang13.Bool(user.lying) || !this.Adjacent(user) || !user.Adjacent(dropping) || !(dropping is Mob_Living_Carbon)) { return(false); } this.close_machine(dropping); return(false); }
// Function from file: morgue.dm public override bool MouseDrop_T(Ent_Static dropping = null, Mob user = null) { Ent_Static M = null; if (!(dropping is Ent_Dynamic) || Lang13.Bool(((dynamic)dropping).anchored) || !this.Adjacent(user) || !user.Adjacent(dropping) || dropping.loc == user) { return(false); } if (!(dropping is Mob)) { if (!(dropping is Obj_Structure_Closet_BodyBag)) { return(false); } } else { M = dropping; if (Lang13.Bool(((dynamic)M).buckled)) { return(false); } } if (!(user is Mob) || Lang13.Bool(user.lying) || user.incapacitated()) { return(false); } dropping.loc = this.loc; if (user != dropping) { this.visible_message("<span class='warning'>" + user + " stuffs " + dropping + " into " + this + ".</span>"); } return(false); }