From c75a97cd50ddb80e5d5ee4fbda99431a2bac2388 Mon Sep 17 00:00:00 2001 From: bgobandit Date: Fri, 10 Feb 2017 13:16:23 -0500 Subject: [PATCH] You can no longer take non-integer amounts of sheets from a stack. (#23908) --- code/game/objects/items/stacks/stack.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index 668e5ae7d30..763031cdd85 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -251,7 +251,7 @@ //get amount from user var/min = 0 var/max = src.get_amount() - var/stackmaterial = 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