Photavoltaic cell variants

Size variants for the photocell so we dont need to slap in multiples should make them a bit more clean to use
This commit is contained in:
Sharkmare
2023-03-02 13:28:45 +01:00
committed by GitHub
parent 65637c3fc9
commit 47de095e6a

View File

@@ -11,7 +11,7 @@
// For calculators.
/obj/item/integrated_circuit/passive/power/solar_cell
name = "tiny photovoltaic cell"
name = "photovoltaic cell (tiny)" //CHOMPEDIT: bring in line with other variable size objects such as energy cells
desc = "It's a very tiny solar cell, generally used in calculators."
extended_desc = "The cell generates 1W of energy per second in optimal lighting conditions. Less light will result in less power being generated."
icon_state = "solar_cell"
@@ -20,6 +20,30 @@
spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
var/max_power = 1
//CHOMPADDITION: Photocell Variants
//Using these cuts down individual running power transfer processes and gains you a tiny bit of extra complexity
/obj/item/integrated_circuit/passive/power/solar_cell/dual
name = "photovoltaic cell (small)"
desc = "It's a small solar cell, generally used in flashlights."
complexity = 14
max_power = 2
spawn_flags = IC_SPAWN_RESEARCH
/obj/item/integrated_circuit/passive/power/solar_cell/quad
name = "photovoltaic cell (standard)"
desc = "It's a solar cell, generally used in outdoor lamps."
complexity = 24
max_power = 4
spawn_flags = IC_SPAWN_RESEARCH
/obj/item/integrated_circuit/passive/power/solar_cell/hex
name = "photovoltaic cell (large)"
desc = "It's a large solar cell, generally used en masse to store power for later use."
complexity = 40
max_power = 8
spawn_flags = IC_SPAWN_RESEARCH
//CHOMPADDITION: Photocell Variants END
/obj/item/integrated_circuit/passive/power/solar_cell/handle_passive_energy()
var/turf/T = get_turf(src)
var/light_amount = T ? T.get_lumcount() : 0