new->init refactor

This commit is contained in:
Killian
2022-02-20 19:32:23 +00:00
parent 3f9af78f3a
commit 91d39da943
71 changed files with 182 additions and 4839 deletions
+1 -3
View File
@@ -91,11 +91,9 @@
else
light = new/datum/light_source(src, .)
<<<<<<< HEAD
=======
/atom/Initialize()
. = ..()
>>>>>>> 2f0a618d451... /atom New() => Initialize() [MDB IGNORE] (#8298)
/**
* Updates the atom's opacity value.
-12
View File
@@ -5,7 +5,6 @@
///whether we are already in the SSlighting.objects_queue list
var/needs_update = FALSE
<<<<<<< HEAD
///the turf that our light is applied to
var/turf/affected_turf
@@ -20,17 +19,6 @@
. = ..()
current_underlay = mutable_appearance(LIGHTING_ICON, "transparent", source.z, PLANE_LIGHTING, 255, RESET_COLOR | RESET_ALPHA | RESET_TRANSFORM)
=======
/atom/movable/lighting_overlay/Initialize(var/ml, var/no_update = FALSE)
. = ..(ml)
verbs.Cut()
total_lighting_overlays++
var/turf/T = loc //If this runtimes atleast we'll know what's creating overlays outside of turfs.
T.lighting_overlay = src
T.luminosity = 0
if(!no_update)
update_overlay()
>>>>>>> 2f0a618d451... /atom New() => Initialize() [MDB IGNORE] (#8298)
affected_turf = source
if (affected_turf.lighting_object)