From 192f3e2993f502567552a542c7fdbd8ae86bde02 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Wed, 13 Feb 2019 12:52:33 +0100 Subject: [PATCH] U N L I M I T E D P O W E R Since there was demand for more cell types this is a weapon cell that recharges, but this one has less charge than a normal one, meaning less burst at the reward of regen over time. Unlike the normal **C U B E** cell this one requires weapon tech as well and Silver. --- code/modules/power/cells/power_cells_ch.dm | 27 +++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/code/modules/power/cells/power_cells_ch.dm b/code/modules/power/cells/power_cells_ch.dm index 09a3ece575..ed5f6e82de 100644 --- a/code/modules/power/cells/power_cells_ch.dm +++ b/code/modules/power/cells/power_cells_ch.dm @@ -4,9 +4,34 @@ icon_state = "hcell" maxcharge = 2000//Trade in charge for recharge matter = list(DEFAULT_WALL_MATERIAL = 1000, "glass" = 100) - description_info = "This 'cell' holds a max charge of 1k and self recharges over time." + description_info = "This 'cell' holds a max charge of 2k and self recharges over time." self_recharge = TRUE /obj/item/weapon/cell/high/hightech/empty/New() ..() charge = 0 + +/obj/item/weapon/cell/device/weapon/hightech + name = "Self-charging weapon power cell" + icon_state = "wcell" + maxcharge = 1000 + charge_amount = 20 + desc = "This 'cell' holds a max charge of 1k and self recharges over time. It is specialized for weaponary although a bit too msall for some weapons" + self_recharge = TRUE + origin_tech = list(TECH_POWER = 7, TECH_MATERIAL = 6,TECH_BLUESPACE = 6,TECH_COMBAT = 1) + +/obj/item/weapon/cell/device/weapon/hightech/empty/initialize() + . = ..() + charge = 0 + update_icon() + +//////DESIGN SECTION TO BE MOVED TO DESIGNS////////////// + +/datum/design/item/powercell/high/hightech + name = "Self-charging weapon cell" + id = "selfch_cell_weapon" + req_tech = list(TECH_POWER = 5, TECH_MATERIAL = 5,TECH_BLUESPACE = 5,TECH_COMBAT = 3) + materials = list(DEFAULT_WALL_MATERIAL = 2000,"glass" = 500, "silver" = 500) + build_path = /obj/item/weapon/cell/high/hightech + category = "Misc" + sort_string = "DAAAF" //Unique Letter String, this decides how the list of printable items is arranged