mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 11:31:51 +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:
@@ -8,8 +8,8 @@
|
||||
drop_sound = 'sound/items/drop/toolbox.ogg'
|
||||
pickup_sound = 'sound/items/pickup/toolbox.ogg'
|
||||
|
||||
/obj/item/weapon/storage/briefcase/crimekit/New()
|
||||
..()
|
||||
/obj/item/weapon/storage/briefcase/crimekit/Initialize()
|
||||
. = ..()
|
||||
new /obj/item/weapon/storage/box/swabs(src)
|
||||
new /obj/item/weapon/storage/box/fingerprints(src)
|
||||
new /obj/item/weapon/reagent_containers/spray/luminol(src)
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
w_class = ITEMSIZE_TINY
|
||||
var/list/evidence = list()
|
||||
|
||||
/obj/item/weapon/sample/New(var/newloc, var/atom/supplied)
|
||||
..(newloc)
|
||||
/obj/item/weapon/sample/Initialize(var/ml, var/atom/supplied)
|
||||
. = ..(ml)
|
||||
if(supplied)
|
||||
copy_evidence(supplied)
|
||||
name = "[initial(name)] (\the [supplied])"
|
||||
|
||||
/obj/item/weapon/sample/print/New(var/newloc, var/atom/supplied)
|
||||
..(newloc, supplied)
|
||||
/obj/item/weapon/sample/print/Initialize()
|
||||
. = ..()
|
||||
if(evidence && evidence.len)
|
||||
icon_state = "fingerprint1"
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
can_hold = list(/obj/item/weapon/forensics/swab)
|
||||
storage_slots = 14
|
||||
|
||||
/obj/item/weapon/storage/box/swabs/New()
|
||||
..()
|
||||
/obj/item/weapon/storage/box/swabs/Initialize()
|
||||
. = ..()
|
||||
for(var/i = 1 to storage_slots) // Fill 'er up.
|
||||
new /obj/item/weapon/forensics/swab(src)
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
storage_slots = 7
|
||||
can_hold = list(/obj/item/weapon/evidencebag)
|
||||
|
||||
/obj/item/weapon/storage/box/evidence/New()
|
||||
..()
|
||||
/obj/item/weapon/storage/box/evidence/Initialize()
|
||||
. = ..()
|
||||
for(var/i = 1 to storage_slots)
|
||||
new /obj/item/weapon/evidencebag(src)
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
can_hold = list(/obj/item/weapon/sample/print)
|
||||
storage_slots = 14
|
||||
|
||||
/obj/item/weapon/storage/box/fingerprints/New()
|
||||
..()
|
||||
/obj/item/weapon/storage/box/fingerprints/Initialize()
|
||||
. = ..()
|
||||
for(var/i = 1 to storage_slots)
|
||||
new /obj/item/weapon/sample/print(src)
|
||||
Reference in New Issue
Block a user