From 4483e05c3d4ea8c82f1df344a4966f011aeec033 Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Wed, 9 Feb 2011 21:33:21 +0000 Subject: [PATCH] Ghetto surgery added. If you have some tools, you can table someone and operate on them! Of course, since it's a regular table instead of a proper operating table, it's pretty easy to mess up and accidentally stab them in the face instead, but odds are if you're not in the surgery room, you don't care. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1008 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/items/weapons/surgery_tools.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/objects/items/weapons/surgery_tools.dm b/code/game/objects/items/weapons/surgery_tools.dm index 2d859233c39..acce4bff9cc 100644 --- a/code/game/objects/items/weapons/surgery_tools.dm +++ b/code/game/objects/items/weapons/surgery_tools.dm @@ -16,7 +16,7 @@ CIRCULAR SAW if(!istype(M, /mob)) return - if(!(locate(/obj/machinery/optable, M.loc) && M.resting)) + if(!((locate(/obj/machinery/optable, M.loc) && M.resting) || (locate(/obj/table/, M.loc) && (M.lying || M.weakened || M.stunned || M.paralysis || M.sleeping || M.stat) && prob(50)))) return ..() if (user.zone_sel.selecting == "eyes") @@ -62,7 +62,7 @@ CIRCULAR SAW if(!istype(M, /mob)) return - if(!(locate(/obj/machinery/optable, M.loc) && M.resting)) + if(!((locate(/obj/machinery/optable, M.loc) && M.resting) || (locate(/obj/table/, M.loc) && M.lying && prob(50)))) return ..() if (user.zone_sel.selecting == "eyes") @@ -108,7 +108,7 @@ CIRCULAR SAW if(!istype(M, /mob)) return - if(!(locate(/obj/machinery/optable, M.loc) && M.resting)) + if(!((locate(/obj/machinery/optable, M.loc) && M.resting) || (locate(/obj/table/, M.loc) && M.lying && prob(50)))) return ..() if (user.zone_sel.selecting == "eyes") @@ -167,7 +167,7 @@ CIRCULAR SAW src.add_fingerprint(user) - if(!(locate(/obj/machinery/optable, M.loc) && M.resting)) + if(!((locate(/obj/machinery/optable, M.loc) && M.resting) || (locate(/obj/table/, M.loc) && M.lying && prob(50)))) return ..() if(user.zone_sel.selecting == "head") @@ -289,7 +289,7 @@ CIRCULAR SAW src.add_fingerprint(user) - if(!(locate(/obj/machinery/optable, M.loc) && M.resting)) + if(!((locate(/obj/machinery/optable, M.loc) && M.resting) || (locate(/obj/table/, M.loc) && M.lying && prob(50)))) return ..() if(user.zone_sel.selecting == "head")