From d918d3f23904cb9df56c5bb8f0a087b7d00546d6 Mon Sep 17 00:00:00 2001 From: SpaceVampire <> Date: Fri, 18 Jun 2021 18:08:20 -0400 Subject: [PATCH] oops --- code/modules/persistence/storage/smartfridge.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/persistence/storage/smartfridge.dm b/code/modules/persistence/storage/smartfridge.dm index f56661bf8b2..74ab16ff0f3 100644 --- a/code/modules/persistence/storage/smartfridge.dm +++ b/code/modules/persistence/storage/smartfridge.dm @@ -51,8 +51,8 @@ // Delete some stacks if we want if(stacks_go_missing) - var/fuzzy = rand(-5,5)*.01 - count -= floor(count*(0.8+fuzzy)) // loss of 15-25% with rounding down + var/fuzzy = rand(75,85) + count -= round(count*0.01*fuzzy) // loss of 15-25% with rounding down if(count <= 0) continue