mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-19 13:53:17 +00:00
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:
@@ -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]"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user