From 5d5b88e8f97c0eceefe5012b719a68316f68f474 Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Tue, 15 Nov 2016 14:19:18 -0600 Subject: [PATCH] Stop counting extra money --- code/modules/admin/fun_balloon.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/admin/fun_balloon.dm b/code/modules/admin/fun_balloon.dm index fe14369e173..03ea20be051 100644 --- a/code/modules/admin/fun_balloon.dm +++ b/code/modules/admin/fun_balloon.dm @@ -120,9 +120,13 @@ for(var/obj/item/weapon/coin/C in mover) total_cash += C.value counted_money += C + if(total_cash >= threshhold) + break for(var/obj/item/stack/spacecash/S in mover) total_cash += S.value * S.amount counted_money += S + if(total_cash >= threshhold) + break if(total_cash >= threshhold) for(var/obj/I in counted_money)