Refactored all the backslash ref and ref() calls to use REF() instead (#19847)

Refactored all the backslash ref and ref() calls to use REF() instead.
Added a linting for raw ref proc calls.
This commit is contained in:
Fluffy
2024-09-13 10:17:32 +00:00
committed by GitHub
parent 40b8ac6a55
commit 0ae0b10764
233 changed files with 1629 additions and 1564 deletions
@@ -38,7 +38,7 @@
var/list/guntracker_info = list(
"gun_name" = capitalize_first_letters(P.gun.name),
"registered_info" = P.registered_user ? P.registered_user : "Unregistered",
"ref" = "\ref[P]",
"ref" = "[REF(P)]",
"lock_status" = P.lock_status
)
wireless_firing_pins_data += list(guntracker_info)
@@ -31,7 +31,7 @@
var/list/chem_info = list(
"implanted_name" = C.imp_in.real_name,
"remaining_units" = round(C.reagents.total_volume, 0.1),
"ref" = "\ref[C]"
"ref" = "[REF(C)]"
)
chem_implants += list(chem_info)
data["chem_implants"] = chem_implants
@@ -53,7 +53,7 @@
var/list/tracker_info = list(
"id" = T.id,
"loc_display" = loc_display,
"ref" = "\ref[T]"
"ref" = "[REF(T)]"
)
tracking_implants += list(tracker_info)
data["tracking_implants"] = tracking_implants
@@ -33,7 +33,7 @@
continue
if(!AreConnectedZLevels(computer.loc.z, M.loc.z))
continue
var/list/mechData = list("location" = null, "name" = null, "pilot" = null, "ref" = "\ref[M]", "camera" = null, "lockdown" = null)
var/list/mechData = list("location" = null, "name" = null, "pilot" = null, "ref" = "[REF(M)]", "camera" = null, "lockdown" = null)
mechData["name"] = M.name
mechData["pilot"] = "[M.old_mob]"
@@ -51,7 +51,7 @@
continue
if(!AreConnectedZLevels(computer.loc.z, R.loc.z))
continue
var/list/robotData = list("location" = null, "name" = null, "pilot" = null, "ref" = "\ref[R]")
var/list/robotData = list("location" = null, "name" = null, "pilot" = null, "ref" = "[REF(R)]")
robotData["name"] = R.name
robotData["pilot"] = "[R.old_mob]"
@@ -63,7 +63,7 @@
data["mechs"] = sortByKey(mechs, "pilot")
data["robots"] = sortByKey(robots, "pilot")
data["current_cam_loc"] = current_camera ? "\ref[current_camera.loc]" : null
data["current_cam_loc"] = current_camera ? "[REF(current_camera.loc)]" : null
return data