Re-add new_coins variable in modules/coins.py.lottery, used for telling a user

what their balance is after winning the lottery
This commit is contained in:
jesopo 2018-10-17 14:18:14 +01:00
parent c22d5a348f
commit 2e54284fed

View file

@ -545,6 +545,7 @@ class Module(ModuleManager.BaseModule):
user = server.get_user(winner)
coins = self._get_user_coins(user)
winnings = decimal.Decimal(LOTTERY_BUYIN)*len(users)
new_coins = coins+winnings
self._give(server, user, winnings)
server.set_setting("lottery-winner", user.nickname)