Floors ID credit withdraw amount. (#43713)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user