mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
More macros (#2955)
changes: Holomaps now use an area flag instead of a proc to determine which areas do not draw on the holomap. The supply shuttle once more has a roof. The supply shuttle's landing zone is now dynamically lit. Turfs only generate visibility updates on Initialize() after mapload - visualnet is not initialized by then anyways. Merged /datum/gas_mixture/(init) into /datum/gas_mixture/New(). Converted a ZAS proc into a macro. Made ZAS attempt to remove a turf from a zone instead of always rebuilding it in a certain case. Macroized two misc procs. Fixes #2947.
This commit is contained in:
@@ -16,11 +16,6 @@
|
||||
updateVisibility(src)
|
||||
return ..()
|
||||
|
||||
/turf/simulated/Initialize()
|
||||
. = ..()
|
||||
updateVisibility(src)
|
||||
|
||||
|
||||
// STRUCTURES
|
||||
|
||||
/obj/structure/Destroy()
|
||||
@@ -33,8 +28,8 @@
|
||||
updateVisibility(src)
|
||||
return ..()
|
||||
|
||||
/obj/effect/New()
|
||||
..()
|
||||
/obj/effect/Initialize()
|
||||
. = ..()
|
||||
updateVisibility(src)
|
||||
|
||||
// DOORS
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/datum/gas_mixture
|
||||
//Associative list of gas moles.
|
||||
//Gases with 0 moles are not tracked and are pruned by update_values()
|
||||
var/list/gas = list()
|
||||
var/list/gas
|
||||
//Temperature in Kelvin of this gas mix.
|
||||
var/temperature = 0
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
volume = _volume
|
||||
temperature = _temperature
|
||||
group_multiplier = _group_multiplier
|
||||
gas = list()
|
||||
|
||||
/datum/gas_mixture/proc/get_gas(gasid)
|
||||
if(!gas.len)
|
||||
|
||||
Reference in New Issue
Block a user