Floors ID credit withdraw amount. (#43713)

This commit is contained in:
skoglol
2019-04-30 17:08:57 +02:00
committed by moo
parent fd7bba07a5
commit 96634856d2
+1 -1
View File
@@ -197,7 +197,7 @@
return
to_chat(user, "<span class='warning'>The account ID number provided is invalid.</span>")
return
var/amount_to_remove = input(user, "How much do you want to withdraw? Current Balance: [registered_account.account_balance]", "Withdraw Funds", 5) as num
var/amount_to_remove = FLOOR(input(user, "How much do you want to withdraw? Current Balance: [registered_account.account_balance]", "Withdraw Funds", 5) as num, 1)
if(!amount_to_remove || amount_to_remove < 0)
to_chat(user, "<span class='warning'>You're pretty sure that's not how money works.</span>")
return