mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +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:
@@ -85,7 +85,7 @@
|
||||
var/account_number = "[M]"
|
||||
var/list/transactions = list()
|
||||
for(var/datum/transaction/T in D.transactions)
|
||||
var/Tref = ref(T)
|
||||
var/Tref = REF(T)
|
||||
transactions += list(list(
|
||||
"ref" = Tref,
|
||||
"date" = T.date,
|
||||
|
||||
@@ -43,14 +43,14 @@
|
||||
for(var/obj/machinery/teleport/pad/S in range(3, T))
|
||||
var/list/pad_info = list(
|
||||
"name" = "[S.name] ([S.x]-[S.y][S.z])",
|
||||
"ref" = "\ref[S]"
|
||||
"ref" = "[REF(S)]"
|
||||
)
|
||||
near_pads_info += list(pad_info)
|
||||
data["nearby_pads"] = near_pads_info
|
||||
else
|
||||
var/atom/selected_atom = linked_pad.locked_obj ? linked_pad.locked_obj.resolve() : null
|
||||
if(selected_atom)
|
||||
data["selected_target"] = "\ref[selected_atom]"
|
||||
data["selected_target"] = "[REF(selected_atom)]"
|
||||
data["selected_target_name"] = linked_pad.locked_obj_name
|
||||
data["calibration"] = 100 - linked_pad.calibration
|
||||
var/list/area_index = list()
|
||||
@@ -71,7 +71,7 @@
|
||||
area_index[tmpname] = 1
|
||||
var/list/teleporter_info = list(
|
||||
"name" = tmpname,
|
||||
"ref" = "\ref[R]"
|
||||
"ref" = "[REF(R)]"
|
||||
)
|
||||
teleport_beacon_info += list(teleporter_info)
|
||||
data["teleport_beacons"] = teleport_beacon_info
|
||||
@@ -99,7 +99,7 @@
|
||||
area_index[tmpname] = 1
|
||||
var/list/implant_info = list(
|
||||
"name" = tmpname,
|
||||
"ref" = "\ref[I]"
|
||||
"ref" = "[REF(I)]"
|
||||
)
|
||||
teleport_implant_info += list(implant_info)
|
||||
data["teleport_implants"] = teleport_implant_info
|
||||
|
||||
Reference in New Issue
Block a user