From 38fe1ac2fe336b05bbd903cd46f1c1b98f864cdd Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 9 Feb 2018 13:50:19 -0500 Subject: [PATCH] Cell blueprints now use the /empty variants (#35463) * Cell blueprints now use the /empty variants * Add empty stock cell --- code/modules/power/cell.dm | 4 ++++ code/modules/research/designs/power_designs.dm | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 608a63ce8f..0a29d54865 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -158,6 +158,10 @@ return 0 /* Cell variants*/ +/obj/item/stock_parts/cell/empty/Initialize() + . = ..() + charge = 0 + /obj/item/stock_parts/cell/crap name = "\improper Nanotrasen brand rechargeable AA battery" desc = "You can't top the plasma top." //TOTALLY TRADEMARK INFRINGEMENT diff --git a/code/modules/research/designs/power_designs.dm b/code/modules/research/designs/power_designs.dm index e8d9478174..b14224b01f 100644 --- a/code/modules/research/designs/power_designs.dm +++ b/code/modules/research/designs/power_designs.dm @@ -9,7 +9,7 @@ build_type = PROTOLATHE | AUTOLATHE |MECHFAB materials = list(MAT_METAL = 700, MAT_GLASS = 50) construction_time=100 - build_path = /obj/item/stock_parts/cell + build_path = /obj/item/stock_parts/cell/empty category = list("Misc","Power Designs","Machinery","initial") departmental_flags = DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_ENGINEERING @@ -20,7 +20,7 @@ build_type = PROTOLATHE | AUTOLATHE | MECHFAB materials = list(MAT_METAL = 700, MAT_GLASS = 60) construction_time=100 - build_path = /obj/item/stock_parts/cell/high + build_path = /obj/item/stock_parts/cell/high/empty category = list("Misc","Power Designs") departmental_flags = DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_ENGINEERING @@ -31,7 +31,7 @@ build_type = PROTOLATHE | MECHFAB materials = list(MAT_METAL = 700, MAT_GLASS = 70) construction_time=100 - build_path = /obj/item/stock_parts/cell/super + build_path = /obj/item/stock_parts/cell/super/empty category = list("Misc","Power Designs") departmental_flags = DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_ENGINEERING @@ -42,7 +42,7 @@ build_type = PROTOLATHE | MECHFAB materials = list(MAT_METAL = 700, MAT_GOLD = 150, MAT_SILVER = 150, MAT_GLASS = 80) construction_time=100 - build_path = /obj/item/stock_parts/cell/hyper + build_path = /obj/item/stock_parts/cell/hyper/empty category = list("Misc","Power Designs") departmental_flags = DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_ENGINEERING @@ -53,7 +53,7 @@ build_type = PROTOLATHE | MECHFAB materials = list(MAT_METAL = 800, MAT_GOLD = 120, MAT_GLASS = 160, MAT_DIAMOND = 160, MAT_TITANIUM = 300, MAT_BLUESPACE = 100) construction_time=100 - build_path = /obj/item/stock_parts/cell/bluespace + build_path = /obj/item/stock_parts/cell/bluespace/empty category = list("Misc","Power Designs") departmental_flags = DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_ENGINEERING