mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 23:54:24 +01:00
Finish Machinery new to init (#17334)
* Finish Machinery new to init * fix that --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -43,8 +43,8 @@
|
||||
src.set_light(0)
|
||||
cameranet.removeCamera(src)
|
||||
|
||||
/obj/machinery/camera/New()
|
||||
..()
|
||||
/obj/machinery/camera/Initialize(mapload)
|
||||
. = ..()
|
||||
//Camera must be added to global list of all cameras no matter what...
|
||||
if(cameranet.cameras_unsorted || !ticker)
|
||||
cameranet.cameras += src
|
||||
|
||||
@@ -313,15 +313,17 @@ var/list/ai_verbs_default = list(
|
||||
var/mob/living/silicon/ai/powered_ai = null
|
||||
invisibility = 100
|
||||
|
||||
/obj/machinery/ai_powersupply/New(var/mob/living/silicon/ai/ai=null)
|
||||
powered_ai = ai
|
||||
/obj/machinery/ai_powersupply/Initialize(mapload)
|
||||
. = ..()
|
||||
powered_ai = loc
|
||||
if(!istype(powered_ai))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
powered_ai.psupply = src
|
||||
if(istype(powered_ai,/mob/living/silicon/ai/announcer)) //Don't try to get a loc for a nullspace announcer mob, just put it into it
|
||||
forceMove(powered_ai)
|
||||
else
|
||||
forceMove(powered_ai.loc)
|
||||
|
||||
..()
|
||||
use_power(1) // Just incase we need to wake up the power system.
|
||||
|
||||
/obj/machinery/ai_powersupply/Destroy()
|
||||
|
||||
@@ -34,9 +34,6 @@
|
||||
fabricator_tag = "Upper Level Mining"
|
||||
drone_type = /mob/living/silicon/robot/drone/mining
|
||||
|
||||
/obj/machinery/drone_fabricator/New()
|
||||
..()
|
||||
|
||||
/obj/machinery/drone_fabricator/power_change()
|
||||
..()
|
||||
if (stat & NOPOWER)
|
||||
|
||||
@@ -253,13 +253,13 @@ var/global/list/grub_machine_overlays = list()
|
||||
ignored_targets += A
|
||||
|
||||
|
||||
/obj/machinery/abstract_grub_machine/New()
|
||||
..()
|
||||
/obj/machinery/abstract_grub_machine/Initialize(mapload)
|
||||
. = ..()
|
||||
shuffle_power_usages()
|
||||
grub = loc
|
||||
if(!istype(grub))
|
||||
grub = null
|
||||
qdel(src)
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
/obj/machinery/abstract_grub_machine/Destroy()
|
||||
grub = null
|
||||
|
||||
Reference in New Issue
Block a user