Fix sign of buy command (display only)

master
Sebastian Pipping 13 years ago
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…
Cancel
Save