text be gone (#22929)

This commit is contained in:
Vi3trice
2023-10-26 10:39:11 +01:00
committed by GitHub
parent a1206bbd89
commit 85353104f7
35 changed files with 99 additions and 101 deletions
+3 -3
View File
@@ -196,12 +196,12 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
var/n_name = sanitize(copytext(input(usr, "What would you like to label the fax?", "Fax Labelling", copyitem.name) as text, 1, MAX_MESSAGE_LEN))
if((copyitem && copyitem.loc == src && usr.stat == 0))
if(istype(copyitem, /obj/item/paper))
copyitem.name = "[(n_name ? text("[n_name]") : initial(copyitem.name))]"
copyitem.name = "[(n_name ? "[n_name]" : initial(copyitem.name))]"
copyitem.desc = "This is a paper titled '" + copyitem.name + "'."
else if(istype(copyitem, /obj/item/photo))
copyitem.name = "[(n_name ? text("[n_name]") : "photo")]"
copyitem.name = "[(n_name ? "[n_name]" : "photo")]"
else if(istype(copyitem, /obj/item/paper_bundle))
copyitem.name = "[(n_name ? text("[n_name]") : "paper")]"
copyitem.name = "[(n_name ? "[n_name]" : "paper")]"
else
. = FALSE
else