From 0c3a555bd46f41d097433cc95554fd1fcebc61bb Mon Sep 17 00:00:00 2001
From: Silverplate <118299273+silverplatedelta@users.noreply.github.com>
Date: Sat, 22 Apr 2023 03:43:29 -0400
Subject: [PATCH] Corrects cash input text for arcade machines (#20827)
* Correct amount shown
* Simplifed as per Syrryan's comment
* corrects grammar when adding 1 credit
---
code/modules/economy/economy_machinery/economy_machinery.dm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/modules/economy/economy_machinery/economy_machinery.dm b/code/modules/economy/economy_machinery/economy_machinery.dm
index c85e6735732..fbebcd0c92f 100644
--- a/code/modules/economy/economy_machinery/economy_machinery.dm
+++ b/code/modules/economy/economy_machinery/economy_machinery.dm
@@ -77,7 +77,7 @@
if(amount > cash_money.amount)
return
var/amount_to_insert = amount ? amount : cash_money.amount
- visible_message("[user] inserts [cash_money] into [src].")
+ visible_message("[user] inserts [amount_to_insert == 1 ? "[amount_to_insert] credit" : "[amount_to_insert] credits"] into [src].")
cash_stored += amount_to_insert
cash_transaction += amount_to_insert
cash_money.use(amount_to_insert)