More standard tgui input conversions (#63464)

This commit is contained in:
Jeremiah
2021-12-24 03:04:18 -08:00
committed by GitHub
parent 36e5fcadd3
commit dcab86ba2c
64 changed files with 246 additions and 215 deletions
+5 -5
View File
@@ -66,8 +66,8 @@
to_chat(H, span_boldnotice("A new life and identity has begun. Help your fellow skeletons into bringing out the spooky-pocalypse. You haven't forgotten your past life, and are still beholden to past loyalties."))
change_name(H) //time for a new name!
/datum/element/spooky/proc/change_name(mob/living/carbon/human/H)
var/t = sanitize_name(tgui_input_text(H, "Enter your new skeleton name", "Spookifier", H.real_name, MAX_NAME_LEN))
if(!t)
t = "spooky skeleton"
H.fully_replace_character_name(null, t)
/datum/element/spooky/proc/change_name(mob/living/carbon/human/spooked)
var/skeleton_name = sanitize_name(tgui_input_text(spooked, "Enter your new skeleton name", "Spookifier", spooked.real_name, MAX_NAME_LEN))
if(!skeleton_name)
skeleton_name = "spooky skeleton"
spooked.fully_replace_character_name(null, skeleton_name)