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
@@ -141,9 +141,9 @@
var/singleton/reagent/R = GET_SINGLETON(_R)
dat += "<br> [B.reagents.reagent_volumes[_R]] units of [R.name], "
if (check_beaker_mixing(B))
dat += text("<A href='?src=[REF(src)];stop_mix=[i]'><font color='green'>Mixing</font></A> ")
dat += "<A href='?src=[REF(src)];stop_mix=[i]'><font color='green'>Mixing</font></A> "
else
dat += text("<A href='?src=[REF(src)];mix=[i]'><span class='warning'>Not mixing</span></A> ")
dat += "<A href='?src=[REF(src)];mix=[i]'><span class='warning'>Not mixing</span></A> "
else
dat += "nothing."
dat += " \[<A href='?src=[REF(src)];eject=[i]'>Eject</A>\]<br>"