Updates machines to use default_apply_parts()

This commit is contained in:
Atermonera
2020-05-06 21:38:57 -07:00
committed by VirgoBot
parent 4e25e87ab7
commit 9c32a0e2b3
45 changed files with 149 additions and 433 deletions

View File

@@ -31,13 +31,11 @@
********************/
/obj/machinery/microwave/Initialize()
. = ..()
reagents = new/datum/reagents(100)
reagents.my_atom = src
component_parts = list()
component_parts += new /obj/item/weapon/stock_parts/console_screen(src)
component_parts += new /obj/item/weapon/stock_parts/motor(src)
component_parts += new /obj/item/weapon/stock_parts/capacitor(src)
default_apply_parts()
if (!available_recipes)
available_recipes = new
@@ -60,9 +58,7 @@
acceptable_items |= /obj/item/device/soulstone
acceptable_items |= /obj/item/weapon/fuel_assembly/supermatter
RefreshParts()
soundloop = new(list(src), FALSE)
return ..()
/obj/machinery/microwave/Destroy()
QDEL_NULL(soundloop)