Actually fix drill cells for real this time

This commit is contained in:
Aronai Sieyes
2020-05-22 09:57:46 -04:00
parent 70251e83f9
commit 448a210929
+2 -2
View File
@@ -54,9 +54,9 @@
/obj/machinery/mining/drill/Initialize()
. = ..()
default_apply_parts()
if(ispath(cell))
cell = new cell(src)
default_apply_parts()
/obj/machinery/mining/drill/loaded
cell = /obj/item/weapon/cell/high
@@ -241,7 +241,7 @@
capacity = 200 * P.rating
if(istype(P, /obj/item/weapon/stock_parts/capacitor))
charge_use -= 10 * P.rating
cell = locate(/obj/item/weapon/cell) in component_parts
cell = locate(/obj/item/weapon/cell) in src
/obj/machinery/mining/drill/proc/check_supports()