New() goes in the trash, we've gotta Initialize()

This commit is contained in:
CitadelStationBot
2017-04-26 17:15:48 -05:00
parent e7df2bc14a
commit bcab389ca2
69 changed files with 358 additions and 245 deletions
+6 -6
View File
@@ -24,8 +24,8 @@
// Auto conveyour is always on unless unpowered
/obj/machinery/conveyor/auto/New(loc, newdir)
..(loc, newdir)
/obj/machinery/conveyor/auto/Initialize(mapload, newdir)
. = ..()
operating = 1
update_move_direction()
@@ -43,8 +43,8 @@
icon_state = "conveyor[operating * verted]"
// create a conveyor
/obj/machinery/conveyor/New(loc, newdir)
..(loc)
/obj/machinery/conveyor/Initialize(mapload, newdir)
. = ..()
if(newdir)
setDir(newdir)
update_move_direction()
@@ -326,8 +326,8 @@
w_class = WEIGHT_CLASS_BULKY
var/id = "" //inherited by the switch
/obj/item/conveyor_switch_construct/New()
..()
/obj/item/conveyor_switch_construct/Initialize()
. = ..()
id = rand() //this couldn't possibly go wrong
/obj/item/conveyor_switch_construct/afterattack(atom/A, mob/user, proximity)