From 2fa5d08bf51fe16f2e4a417439137c28220e519f Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sat, 17 Jun 2017 15:32:44 -0500 Subject: [PATCH] Prevents cyborgs from extruding materials (#1463) --- code/game/objects/items/stacks/stack.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index 64af889af6..381b69b44f 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -269,13 +269,15 @@ return if(!in_range(src, user)) return + if(is_cyborg) + return else if(zero_amount()) return //get amount from user var/min = 0 var/max = src.get_amount() - var/stackmaterial = round(input(user,"How many sheets do you wish to take out of this stack? (Maximum [max]") as num) + var/stackmaterial = round(input(user,"How many sheets do you wish to take out of this stack? (Maximum [max])") as num) if(stackmaterial == null || stackmaterial <= min || stackmaterial >= src.get_amount()) return else