mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 15:08:34 +01:00
Sanitizes input
Follows similar procedure to setting custom race name in the character setup panel.
This commit is contained in:
@@ -92,7 +92,8 @@
|
||||
if(can_change(APPEARANCE_RACE) && (params["race"] in valid_species))
|
||||
if(target.change_species(params["race"]))
|
||||
if(params["race"] == "Custom Species")
|
||||
target.custom_species = input(usr,"Custom Species name:","Species Name")
|
||||
target.custom_species = sanitize(input(usr, "Input custom species name:",
|
||||
"Custom Species Name") as null|text, MAX_NAME_LEN)
|
||||
cut_data()
|
||||
generate_data(usr)
|
||||
changed_hook(APPEARANCECHANGER_CHANGED_RACE)
|
||||
|
||||
Reference in New Issue
Block a user