From 291daafb46a17fa7026462eac6385551f2e42574 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:51:42 +0100 Subject: [PATCH] Potato batteries now have a minimum max charge of 1 (#23159) * Easy fix * Wrong fucking proc --- code/modules/hydroponics/plant_genes.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/hydroponics/plant_genes.dm b/code/modules/hydroponics/plant_genes.dm index a52ac4f43db..5c207ada6e6 100644 --- a/code/modules/hydroponics/plant_genes.dm +++ b/code/modules/hydroponics/plant_genes.dm @@ -403,7 +403,7 @@ to_chat(user, "You add some cable to [G] and slide it inside the battery encasing.") var/obj/item/stock_parts/cell/potato/pocell = new /obj/item/stock_parts/cell/potato(user.loc) pocell.icon_state = G.icon_state - pocell.maxcharge = G.seed.potency * 20 + pocell.maxcharge = max(G.seed.potency * 20, 1) // The secret of potato supercells! var/datum/plant_gene/trait/cell_charge/CG = G.seed.get_gene(/datum/plant_gene/trait/cell_charge)