From 4950408f6db07ac316801443450b8abf05ee455c Mon Sep 17 00:00:00 2001 From: bobloy Date: Wed, 10 Oct 2018 14:41:34 -0400 Subject: [PATCH] Don't double add products --- planttycoon/planttycoon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/planttycoon/planttycoon.py b/planttycoon/planttycoon.py index ae78ed9..1741048 100644 --- a/planttycoon/planttycoon.py +++ b/planttycoon/planttycoon.py @@ -1260,7 +1260,8 @@ class PlantTycoon(Cog): if withdraw_points: if product.lower() not in gardener.products: gardener.products[product.lower()] = 0 - gardener.products[product.lower()] += amount + # gardener.products[product.lower()] += amount + # Only add it once gardener.products[product.lower()] += ( amount * self.products[product.lower()]["uses"] )