/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

@@ -16,10 +16,11 @@
/mob/zshadow/can_fall()
return FALSE
/mob/zshadow/New(var/mob/L)
INITIALIZE_IMMEDIATE(/mob/zshadow)
/mob/zshadow/Initialize(var/ml, var/mob/L)
. = ..()
if(!istype(L))
qdel(src)
return
return INITIALIZE_HINT_QDEL
owner = L
sync_icon(L)
@@ -83,7 +84,7 @@
var/turf/simulated/open/OS = GetAbove(src)
while(OS && istype(OS))
if(!M.shadow)
M.shadow = new /mob/zshadow(M)
M.shadow = new /mob/zshadow(null, M)
M.shadow.forceMove(OS)
M = M.shadow
OS = GetAbove(M)