mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
More standard tgui input conversions (#63464)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user