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:
parent
c22d5a348f
commit
2e54284fed
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue