Merge pull request #8031 from VOREStation/Arokha/drillcell2

Actually fix drill cells for real this time
This commit is contained in:
Aronai Sieyes
2020-05-22 16:27:49 -04:00
committed by GitHub

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()