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 ]