Fix: Economy machinery now uses TGUI input + global bank pin range defines (#27913)

* economy machinery now uses tgui_input_number

* Update code/modules/economy/economy_machinery/economy_machinery.dm

Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com>

* pin range defines + replacing hardcoded ranges

* account pin generator uses defines

---------

Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Toastical <toastical@toaster.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Toastical <toast@toaster.com>
This commit is contained in:
Toastical
2025-01-18 19:38:52 +00:00
committed by GitHub
co-authored by Toastical Burzah Toastical
parent 1491299772
commit 4af0352394
6 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -462,7 +462,7 @@
var/attempt_pin = pin
if(customer_account.security_level != ACCOUNT_SECURITY_ID && !attempt_pin)
//if pin is not given, we'll prompt them here
attempt_pin = tgui_input_number(user, "Enter pin code", "Vendor transaction", max_value = 99999)
attempt_pin = tgui_input_number(user, "Enter pin code", "Vendor transaction", max_value = BANK_PIN_MAX, min_value = BANK_PIN_MIN)
if(!Adjacent(user) || !attempt_pin)
return FALSE
var/is_admin = is_admin(user)