diff options
| author | 2018-10-17 14:18:14 +0100 | |
|---|---|---|
| committer | 2018-10-17 14:18:14 +0100 | |
| commit | 2e54284fed6e519856153c4fef2d0703e4fa5929 (patch) | |
| tree | 4f17c5516189be859af718ef37bcbe5e8e0f29a6 | |
| parent | We should be changing `bet_amounts` instead of parsing a bet amount and doing (diff) | |
| signature | ||
Re-add `new_coins` variable in modules/coins.py.lottery, used for telling a user
what their balance is after winning the lottery
| -rw-r--r-- | modules/coins.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/coins.py b/modules/coins.py index 5be2ac64..8f22df12 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -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) |
