modules/coins.py._take should have a server param

This commit is contained in:
jesopo 2018-10-16 13:41:02 +01:00
parent 5fc57ca143
commit 7eb65ac1da

View file

@ -73,9 +73,9 @@ class Module(ModuleManager.BaseModule):
user_coins = self._get_user_coins(user)
self._take_from_pool(server, amount)
self._set_user_coins(user, user_coins+amount)
def _take(self, user, amount):
def _take(self, server, user, amount):
user_coins = self._get_user_coins(user)
self._give_to_pool(amount)
self._give_to_pool(server, amount)
self._set_user_coins(user, user_coins-amount)
def _move(self, user1, user2, amount):
user1_coins = self._get_user_coins(user1)