mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
Adds a pointer to the extraction location for Contractor uplinks (#16497)
* Contractor extraction point locator V1 * `update_static_data()` revert
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
GLOBAL_LIST_EMPTY(GPS_list)
|
||||
|
||||
#define EMP_DISABLE_TIME 30 SECONDS
|
||||
#define POS_VECTOR(A) list(A.x, A.y, A.z)
|
||||
|
||||
/**
|
||||
* # GPS
|
||||
@@ -83,11 +82,11 @@ GLOBAL_LIST_EMPTY(GPS_list)
|
||||
return data
|
||||
var/turf/T = get_turf(src)
|
||||
data["area"] = get_area_name(src, TRUE)
|
||||
data["position"] = POS_VECTOR(T)
|
||||
data["position"] = ATOM_COORDS(T)
|
||||
|
||||
// Saved location
|
||||
if(locked_location)
|
||||
data["saved"] = POS_VECTOR(locked_location)
|
||||
data["saved"] = ATOM_COORDS(locked_location)
|
||||
else
|
||||
data["saved"] = null
|
||||
|
||||
@@ -104,7 +103,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
|
||||
var/list/signal = list("tag" = G.gpstag, "area" = null, "position" = null)
|
||||
if(!G.emped)
|
||||
signal["area"] = get_area_name(G, TRUE)
|
||||
signal["position"] = POS_VECTOR(GT)
|
||||
signal["position"] = ATOM_COORDS(GT)
|
||||
signals += list(signal)
|
||||
data["signals"] = signals
|
||||
|
||||
@@ -219,4 +218,3 @@ GLOBAL_LIST_EMPTY(GPS_list)
|
||||
. = ..()
|
||||
|
||||
#undef EMP_DISABLE_TIME
|
||||
#undef POS_VECTOR
|
||||
|
||||
Reference in New Issue
Block a user