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 14:46:31 +02:00
committed by GitHub
parent 1aeeb6827d
commit 8f9de7c3e2
76 changed files with 351 additions and 264 deletions

View File

@@ -71,7 +71,7 @@
var/obj/item/card/id/held_card = get_held_card()
data["has_printer"] = !!computer.nano_printer
data["id_card"] = held_card ? text("[held_card.registered_name], [held_card.assignment]") : null
data["id_card"] = held_card ? "[held_card.registered_name], [held_card.assignment]" : null
data["access_level"] = get_access_level()
data["machine_id"] = machine_id
data["station_account_number"] = "[SSeconomy.station_account.account_number]"

View File

@@ -203,7 +203,7 @@
id_card.access += access_type
. = TRUE
if(id_card)
id_card.name = text("[id_card.registered_name]'s ID Card ([id_card.assignment])")
id_card.name = "[id_card.registered_name]'s ID Card ([id_card.assignment])"
. = TRUE
/datum/computer_file/program/card_mod/proc/remove_nt_access(var/obj/item/card/id/id_card)