From 34b1d3de381ec6142d8ebfe0ac52c9658583fc7c Mon Sep 17 00:00:00 2001 From: "d_h2005@yahoo.com" Date: Sat, 25 Aug 2012 02:06:41 +0000 Subject: [PATCH] Potato batteries now scale with potency. Thanks to QualityVan! git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4530 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/reagents/reagent_containers/food/snacks/grown.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/reagents/reagent_containers/food/snacks/grown.dm b/code/modules/reagents/reagent_containers/food/snacks/grown.dm index 57d87150d00..c2fe0060dd5 100644 --- a/code/modules/reagents/reagent_containers/food/snacks/grown.dm +++ b/code/modules/reagents/reagent_containers/food/snacks/grown.dm @@ -146,7 +146,9 @@ W:amount -= 5 if(!W:amount) del(W) user << "You add some cable to the potato and slide it inside the battery encasing." - new /obj/item/weapon/cell/potato(user.loc) + var/obj/item/weapon/cell/potato/pocell = new /obj/item/weapon/cell/potato(user.loc) + pocell.maxcharge = src.potency * 10 + pocell.charge = pocell.maxcharge del(src) return