/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

@@ -9,19 +9,18 @@
var/do_rotation = TRUE
/obj/item/weapon/broken_gun/New(var/newloc, var/path)
..()
/obj/item/weapon/broken_gun/Initialize(var/ml, var/path)
. = ..(ml)
if(path)
if(!setup_gun(path))
qdel(src)
return
setup_repair_needs()
addtimer(CALLBACK(src, .proc/validate_gun_type), 30 SECONDS)
/obj/item/weapon/broken_gun/Initialize()
. = ..()
spawn(30 SECONDS)
if(!my_guntype && !QDELETED(src))
qdel(src)
/obj/item/weapon/broken_gun/proc/validate_gun_type()
if(!my_guntype && !QDELETED(src))
qdel(src)
/obj/item/weapon/broken_gun/examine(mob/user)
. = ..()