Allow Agent cards to use numbers in their names (#68065)

This commit is contained in:
‮ittaG ordnasselA
2022-06-30 11:38:54 +02:00
committed by GitHub
parent 07f5201136
commit ae8cb8147b
+1 -1
View File
@@ -1483,7 +1483,7 @@
if(popup_input == "Forge/Reset")
if(!forged)
var/input_name = tgui_input_text(user, "What name would you like to put on this card? Leave blank to randomise.", "Agent card name", registered_name ? registered_name : (ishuman(user) ? user.real_name : user.name), MAX_NAME_LEN)
input_name = sanitize_name(input_name)
input_name = sanitize_name(input_name, allow_numbers = TRUE)
if(!input_name)
// Invalid/blank names give a randomly generated one.
if(user.gender == MALE)