/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

@@ -14,16 +14,16 @@
/obj/item/projectile/energy/blob/splattering
splatter = TRUE
/obj/item/projectile/energy/blob/New()
/obj/item/projectile/energy/blob/Initialize()
if(splatter)
create_reagents(splatter_volume)
ready_chemicals()
..()
. = ..()
/obj/item/projectile/energy/blob/Destroy()
qdel(reagents)
reagents = null
..()
. = ..()
/obj/item/projectile/energy/blob/on_impact(var/atom/A)
if(splatter)

View File

@@ -66,7 +66,7 @@
..() //initial flash
//residual illumination
new /obj/effect/effect/smoke/illumination(src.loc, rand(190,240) SECONDS, range=8, power=3, color=light_colour) //same lighting power as flare
new /obj/effect/effect/smoke/illumination(src.loc, rand(190,240) SECONDS, 8, 3, light_colour) //same lighting power as flare
/obj/item/projectile/energy/electrode
name = "electrode"