Give coins lost to the house in roulette to the Bank
This commit is contained in:
parent
4fc0ee09b6
commit
95b398c422
1 changed files with 1 additions and 0 deletions
|
@ -337,6 +337,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
losses = {}
|
losses = {}
|
||||||
if choice == 0:
|
if choice == 0:
|
||||||
loss = sum(bet_amounts)
|
loss = sum(bet_amounts)
|
||||||
|
self._give_to_pool(event["server"], loss)
|
||||||
event["user"].set_setting("coins", str(user_coins-loss))
|
event["user"].set_setting("coins", str(user_coins-loss))
|
||||||
event["stdout"].write("Roulette spin lands on 0, "
|
event["stdout"].write("Roulette spin lands on 0, "
|
||||||
"the house wins, %s loses %s" % (
|
"the house wins, %s loses %s" % (
|
||||||
|
|
Loading…
Reference in a new issue