mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 22:47:59 +01:00
Convert most of /obj/machinery to use Initialize rather than New (#17845)
* Switch a bunch of /obj/machinery from /New to /Initialize This is an easy and uncontroversial batch. No globs, no late init, and stuff. * Move more machinery to Initialize This time the ones dealing with GLOB vars, as well as some simpler ones i missed previously. * More tricky New -> Initialize migrations * The last of machinery Initialize conversion * fixups * Newscaster armor fix * styling * Comment on armor handling * Move newscaster armor definition back to datum * farie82 review * kill extra .= Co-authored-by: Farie82 <farie82@users.noreply.github.com> * farie's review part 2 Co-authored-by: Farie82 <farie82@users.noreply.github.com> Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
@@ -232,8 +232,8 @@
|
||||
var/safe_levels = 10
|
||||
|
||||
|
||||
/obj/machinery/power/bluespace_tap/New()
|
||||
..()
|
||||
/obj/machinery/power/bluespace_tap/Initialize(mapload)
|
||||
. = ..()
|
||||
//more code stolen from dna vault, inculding comment below. Taking bets on that datum being made ever.
|
||||
//TODO: Replace this,bsa and gravgen with some big machinery datum
|
||||
var/list/occupied = list()
|
||||
|
||||
@@ -167,7 +167,8 @@ GLOBAL_LIST_INIT(non_simple_animals, typecacheof(list(/mob/living/carbon/human/m
|
||||
|
||||
var/list/obj/structure/fillers = list()
|
||||
|
||||
/obj/machinery/dna_vault/New()
|
||||
/obj/machinery/dna_vault/Initialize(mapload)
|
||||
. = ..()
|
||||
//TODO: Replace this,bsa and gravgen with some big machinery datum
|
||||
var/list/occupied = list()
|
||||
for(var/direct in list(EAST,WEST,SOUTHEAST,SOUTHWEST))
|
||||
|
||||
@@ -108,8 +108,8 @@
|
||||
var/static/gid = 0
|
||||
var/id = 0
|
||||
|
||||
/obj/machinery/satellite/New()
|
||||
..()
|
||||
/obj/machinery/satellite/Initialize(mapload)
|
||||
. = ..()
|
||||
id = gid++
|
||||
|
||||
/obj/machinery/satellite/attack_hand(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user