Fix sign of buy command (display only)
This commit is contained in:
parent
a3521100b6
commit
c720456749
|
@ -26,7 +26,7 @@ class DepositCommand(Command):
|
|||
class BuyCommand(Command):
|
||||
def __init__(self, item):
|
||||
self.item = item
|
||||
self._difference = item.price
|
||||
self._difference = -item.price
|
||||
|
||||
def run(self, user_name):
|
||||
net.buy_item(self.item.id, user_name)
|
||||
|
|
Loading…
Reference in New Issue