mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 14:00:18 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user