Potato batteries now have a minimum max charge of 1 (#23159)

* Easy fix

* Wrong fucking proc
This commit is contained in:
DGamerL
2023-11-14 12:51:42 +00:00
committed by GitHub
parent e2ffb8a882
commit 291daafb46
+1 -1
View File
@@ -403,7 +403,7 @@
to_chat(user, "<span class='notice'>You add some cable to [G] and slide it inside the battery encasing.</span>")
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)