mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 05:44:19 +00:00
bugfix
This commit is contained in:
parent
3d80a07083
commit
a37db0de02
1 changed files with 6 additions and 9 deletions
15
main.py
15
main.py
|
@ -604,12 +604,12 @@ class Game:
|
|||
# Preset completo
|
||||
self.roleconfig = {
|
||||
"Mifioso": math.floor(len(self.players) / 8) + 1,
|
||||
"Investigatore": math.floor(len(self.players) / 8) + 1,
|
||||
"Angelo": math.floor(len(self.players) / 8) + 1,
|
||||
"Terrorista": math.floor(len(self.players) / 8) + 1,
|
||||
"Derek": math.floor(len(self.players) / 8) + 1,
|
||||
"Disastro": math.floor(len(self.players) / 8) + 1,
|
||||
"Mamma": math.floor(len(self.players) / 8) + 1
|
||||
"Investigatore": math.floor(len(self.players) / 9) + 1,
|
||||
"Angelo": math.floor(len(self.players) / 10) + 1,
|
||||
"Terrorista": math.floor(len(self.players) / 11) + 1,
|
||||
"Derek": math.floor(len(self.players) / 12) + 1,
|
||||
"Disastro": math.floor(len(self.players) / 13) + 1,
|
||||
"Mamma": math.floor(len(self.players) / 14) + 1
|
||||
}
|
||||
self.votingmifia = True
|
||||
self.missingmifia = True
|
||||
|
@ -1087,9 +1087,6 @@ def selectpreset(bot, update):
|
|||
game = findgamebyid(update.callback_query.message.chat['id'])
|
||||
if game is not None and game.phase is 'Preset':
|
||||
if update.callback_query.from_user['id'] == game.admin.tid:
|
||||
bot.editMessageText(text=s.preset_selected.format(selected=update.callback_query.data),
|
||||
chat_id=update.callback_query.message.chat['id'],
|
||||
message_id=update.callback_query.id)
|
||||
game.loadpreset(bot, update.callback_query.data)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue