mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
density = TRUE
|
||||
opacity = FALSE
|
||||
anchored = FALSE
|
||||
req_access = list(access_engine)
|
||||
req_access = list(ACCESS_ENGINE)
|
||||
var/health = 100
|
||||
var/active = FALSE
|
||||
var/malfunction = FALSE //Malfunction causes parts of the shield to slowly dissapate
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
density = TRUE
|
||||
/// Doesn't use APC power.
|
||||
use_power = POWER_USE_OFF
|
||||
req_one_access = list(access_captain, access_security, access_engine)
|
||||
req_one_access = list(ACCESS_CAPTAIN, ACCESS_SECURITY, ACCESS_ENGINE)
|
||||
|
||||
var/active = FALSE
|
||||
/// Not to be confused with power cell charge, this is in Joules.
|
||||
@@ -37,7 +37,7 @@
|
||||
to_chat(user, "Controls are now [locked ? "locked." : "unlocked."]")
|
||||
. = TRUE
|
||||
updateDialog()
|
||||
spark(src, 5, alldirs)
|
||||
spark(src, 5, GLOB.alldirs)
|
||||
|
||||
/obj/machinery/shield_capacitor/attackby(obj/item/W, mob/user)
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
use_power = POWER_USE_OFF //doesn't use APC power
|
||||
var/multiz = TRUE
|
||||
var/multi_unlocked = TRUE
|
||||
req_one_access = list(access_captain, access_security, access_engine)
|
||||
req_one_access = list(ACCESS_CAPTAIN, ACCESS_SECURITY, ACCESS_ENGINE)
|
||||
|
||||
/obj/machinery/shield_gen/Initialize()
|
||||
for(var/obj/machinery/shield_capacitor/possible_cap in range(1, src))
|
||||
@@ -54,7 +54,7 @@
|
||||
. = TRUE
|
||||
updateDialog()
|
||||
|
||||
spark(src, 5, alldirs)
|
||||
spark(src, 5, GLOB.alldirs)
|
||||
|
||||
/obj/machinery/shield_gen/attackby(obj/item/W, mob/user)
|
||||
if(istype(W, /obj/item/card/id))
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
for (var/tt in RANGE_TURFS(field_radius, gen_turf))
|
||||
T = tt
|
||||
// Ignore station areas.
|
||||
if (the_station_areas[T.loc] || is_shuttle_area(T.loc))
|
||||
if (GLOB.the_station_areas[T.loc] || is_shuttle_area(T.loc))
|
||||
continue
|
||||
else if (istype(T, /turf/space) || istype(T, /turf/unsimulated/floor/asteroid) || isopenturf(T) || istype(T, /turf/simulated/floor/reinforced))
|
||||
for (var/uu in RANGE_TURFS(1, T))
|
||||
@@ -28,7 +28,7 @@
|
||||
if (T == U)
|
||||
continue
|
||||
|
||||
if (the_station_areas[U.loc] || istype(U, /turf/simulated/mineral/surface))
|
||||
if (GLOB.the_station_areas[U.loc] || istype(U, /turf/simulated/mineral/surface))
|
||||
out += T
|
||||
break
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
for (var/tt in RANGE_TURFS(field_radius, z))
|
||||
T = tt
|
||||
// Ignore station areas.
|
||||
if (the_station_areas[T.loc] || istype(T.loc, /area/shuttle))
|
||||
if (GLOB.the_station_areas[T.loc] || istype(T.loc, /area/shuttle))
|
||||
continue
|
||||
else if (istype(T, /turf/space) || istype(T, /turf/unsimulated/floor/asteroid) || isopenturf(T) || istype(T, /turf/simulated/floor/reinforced))
|
||||
for (var/uu in RANGE_TURFS(1, T))
|
||||
@@ -54,7 +54,7 @@
|
||||
if (T == U)
|
||||
continue
|
||||
|
||||
if (the_station_areas[U.loc])
|
||||
if (GLOB.the_station_areas[U.loc])
|
||||
out += T
|
||||
break
|
||||
return out
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
icon_state = "Shield_Gen"
|
||||
anchored = FALSE
|
||||
density = TRUE
|
||||
req_access = list(access_engine_equip)
|
||||
req_access = list(ACCESS_ENGINE_EQUIP)
|
||||
|
||||
var/power_state = FALSE
|
||||
var/is_powered = FALSE
|
||||
|
||||
Reference in New Issue
Block a user