/atom New() => Initialize() [MDB IGNORE] (#8298)

* Find and replace argless atom New() to Initialize().

* Manual replacement of no-arg New() to Initialize().

* Manually replacing remaining New() overrides.

* Fixing linter issues with now-removed New() args.

* Tidying area init overrides.

* Porting Neb's atom subsystem.

* Trying to isolate init problems.

* Adjusting Init code post-test.

* Merging duplicate Initialize() procs.

* Merge resolution.
This commit is contained in:
MistakeNot4892
2021-11-14 19:09:14 +11:00
committed by GitHub
parent 0051b29ead
commit 2f0a618d45
589 changed files with 2903 additions and 3005 deletions

View File

@@ -21,12 +21,9 @@
/obj/machinery/power/tesla_coil/pre_mapped
anchored = TRUE
/obj/machinery/power/tesla_coil/New()
..()
wires = new(src)
/obj/machinery/power/tesla_coil/Initialize()
. = ..()
wires = new(src)
default_apply_parts()
/obj/machinery/power/tesla_coil/Destroy()

View File

@@ -23,12 +23,9 @@
var/energy_to_raise = 32
var/energy_to_lower = -20
/obj/singularity/energy_ball/New(loc, starting_energy = 50, is_miniball = FALSE)
..()
miniball = is_miniball
/obj/singularity/energy_ball/Initialize()
/obj/singularity/energy_ball/Initialize(var/ml, starting_energy = 50, is_miniball = FALSE)
. = ..()
miniball = is_miniball
if(!miniball)
set_light(10, 7, "#EEEEFF")