mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 05:02:42 +00:00
Most of area/New() to initialize
This commit is contained in:
@@ -43,24 +43,17 @@
|
|||||||
var/uid
|
var/uid
|
||||||
|
|
||||||
/area/New()
|
/area/New()
|
||||||
icon_state = ""
|
|
||||||
uid = ++global_uid
|
uid = ++global_uid
|
||||||
all_areas += src
|
all_areas += src //Replace with /area in world? Byond optimizes X in world loops.
|
||||||
|
|
||||||
if(!requires_power)
|
|
||||||
power_light = 0
|
|
||||||
power_equip = 0
|
|
||||||
power_environ = 0
|
|
||||||
|
|
||||||
if(dynamic_lighting)
|
|
||||||
luminosity = 0
|
|
||||||
else
|
|
||||||
luminosity = 1
|
|
||||||
|
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/area/Initialize()
|
/area/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|
||||||
|
luminosity = !(dynamic_lighting)
|
||||||
|
icon_state = ""
|
||||||
|
|
||||||
return INITIALIZE_HINT_LATELOAD // Areas tradiationally are initialized AFTER other atoms.
|
return INITIALIZE_HINT_LATELOAD // Areas tradiationally are initialized AFTER other atoms.
|
||||||
|
|
||||||
/area/LateInitialize()
|
/area/LateInitialize()
|
||||||
|
|||||||
Reference in New Issue
Block a user