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:
Kashargul
2025-03-16 08:57:48 +01:00
committed by GitHub
parent f362f6585f
commit 4d36cfdaeb
116 changed files with 486 additions and 528 deletions
+3 -4
View File
@@ -375,12 +375,11 @@
var/list/fruit_icon_cache = list()
/obj/item/reagent_containers/food/snacks/fruit_slice/New(var/newloc, var/datum/seed/S)
..(newloc)
/obj/item/reagent_containers/food/snacks/fruit_slice/Initialize(mapload, var/datum/seed/S)
. = ..()
// Need to go through and make a general image caching controller. Todo.
if(!istype(S))
qdel(src)
return
return INITIALIZE_HINT_QDEL
name = "[S.seed_name] slice"
desc = "A slice of \a [S.seed_name]. Tasty, probably."
+2 -3
View File
@@ -39,8 +39,8 @@
var/lockdown = 0
var/datum/wires/seedstorage/wires = null
/obj/machinery/seed_storage/New()
..()
/obj/machinery/seed_storage/Initialize(mapload)
. = ..()
wires = new(src)
if(!contraband_seeds.len)
contraband_seeds = pick( /// Some form of ambrosia in all lists.
@@ -83,7 +83,6 @@
/obj/item/seeds/deathberryseed = 1 /// Very ow.
)
)
return
/obj/machinery/seed_storage/process()
..()
+2 -2
View File
@@ -23,8 +23,8 @@
else
return ..()
/obj/machinery/portable_atmospherics/hydroponics/soil/New()
..()
/obj/machinery/portable_atmospherics/hydroponics/soil/Initialize(mapload)
. = ..()
verbs -= /obj/machinery/portable_atmospherics/hydroponics/verb/close_lid_verb
verbs -= /obj/machinery/portable_atmospherics/hydroponics/verb/remove_label
verbs -= /obj/machinery/portable_atmospherics/hydroponics/verb/setlight