From 1a40cf8b81067b2359626d0501dc6f0f085d7564 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 6 Jul 2014 23:35:54 -0700 Subject: [PATCH] Multiply gain by amount bought, duh --- trade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trade.py b/trade.py index e7477acd..6a49a77b 100644 --- a/trade.py +++ b/trade.py @@ -144,7 +144,7 @@ def try_combinations(capacity, credits, tradeList): best.append([trade, maximum]) capacity -= maximum credits -= maximum * itemCostCr - bestCr += trade.gainCr + bestCr += maximum * trade.gainCr if not capacity or not credits: break return [ best, bestCr ]