mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 09:31:30 +00:00
/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:
@@ -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)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user