Skip to content

Commit

Permalink
Multiply gain by amount bought, duh
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Jul 7, 2014
1 parent 6e40e91 commit 1a40cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit 1a40cf8

Please sign in to comment.