Skip to content

Commit

Permalink
Fixed error when trading mats up across categories
Browse files Browse the repository at this point in the history
  • Loading branch information
WaferMouse committed Jul 15, 2020
1 parent 4a490ee commit 0c7fa63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mats_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,12 @@ def do_trade(self, modifier):
if self.subcat == self.granny.selected[0]:
small = 1
out_subcat = self.subcat
elif self.subcat != self.granny.selected[0]:
elif self.subcat != self.granny.selected[0] and diff > 0:
small = 2
out_subcat = self.granny.selected[0]
else:
small = 1
out_subcat = self.granny.selected[0]
if diff > 0:
in_val = small
out = power
Expand Down

0 comments on commit 0c7fa63

Please sign in to comment.