Text() away (#19850)

Refactored all the builtin text procs to use string interpolation
instead.
Added a linting for the above.

This is based on, and should only be merged after, #19847
This commit is contained in:
Fluffy
2024-09-21 12:46:31 +00:00
committed by GitHub
parent 1aeeb6827d
commit 8f9de7c3e2
76 changed files with 351 additions and 264 deletions
+3 -3
View File
@@ -263,7 +263,7 @@
/mob/proc/findname(msg)
for(var/mob/M in GLOB.mob_list)
if (M.real_name == text("[]", msg))
if (M.real_name == "[msg]")
return M
return 0
@@ -367,7 +367,7 @@
<BR><B>Left Hand:</B> <A href='?src=[REF(src)];item=l_hand'>[(l_hand ? l_hand : "Nothing")]</A>
<BR><B>Right Hand:</B> <A href='?src=[REF(src)];item=r_hand'>[(r_hand ? r_hand : "Nothing")]</A>
<BR><B>Back:</B> <A href='?src=[REF(src)];item=back'>[(back ? back : "Nothing")]</A> [((istype(wear_mask, /obj/item/clothing/mask) && istype(back, /obj/item/tank) && !( internal )) ? " <A href='?src=[REF(src)];item=internal'>Set Internal</A>" : "")]
<BR>[(internal ? text("<A href='?src=[REF(src)];item=internal'>Remove Internal</A>") : "")]
<BR>[(internal ? "<A href='?src=[REF(src)];item=internal'>Remove Internal</A>" : "")]
<BR><A href='?src=[REF(src)];item=pockets'>Empty Pockets</A>
<BR><A href='?src=[REF(user)];refresh=1'>Refresh</A>
<BR><A href='?src=[REF(user)];mach_close=mob[name]'>Close</A>
@@ -657,7 +657,7 @@
/mob/Topic(href, href_list)
if(href_list["mach_close"])
var/t1 = text("window=[href_list["mach_close"]]")
var/t1 = "window=[href_list["mach_close"]]"
unset_machine()
src << browse(null, t1)