From 729dc56965e93170bc2f11177dabbc353f8d911c Mon Sep 17 00:00:00 2001 From: PopGamer46 Date: Thu, 14 Mar 2024 19:37:31 +0100 Subject: [PATCH] Fixes the nanobank tgui input window not being able to accept pin codes above 10000 (#24576) * make max_value actually fit pin code * iam officially blind * fixes the same issue with setting the money account on a agent id --- code/game/objects/items/weapons/cards_ids.dm | 2 +- code/modules/pda/nanobank.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 813b74fddf2..aa53d533db2 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -534,7 +534,7 @@ RebuildHTML() if("Money Account") - var/new_account = tgui_input_number(user, "What money account would you like to link to this card?", "Agent Card Account", 12345) + var/new_account = tgui_input_number(user, "What money account would you like to link to this card?", "Agent Card Account", 12345, max_value = 9999999) if(!Adjacent(user) || !new_account) return associated_account_number = new_account diff --git a/code/modules/pda/nanobank.dm b/code/modules/pda/nanobank.dm index 8163a4d7ec6..0d53fc5f84e 100644 --- a/code/modules/pda/nanobank.dm +++ b/code/modules/pda/nanobank.dm @@ -241,7 +241,7 @@ error_message(user, "Incorrect Credentials") /datum/data/pda/app/nanobank/proc/input_account_pin(mob/user) - var/attempt_pin = tgui_input_number(user, "Enter pin code", "NanoBank Account Auth") + var/attempt_pin = tgui_input_number(user, "Enter pin code", "NanoBank Account Auth", max_value = 99999) if(!user_account || !attempt_pin) return return attempt_pin