mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 13:54:19 +00:00
ep4 una nuova patch
This commit is contained in:
parent
6a2f6134f0
commit
c910b09798
1 changed files with 4 additions and 3 deletions
7
main.py
7
main.py
|
@ -293,8 +293,9 @@ class Game:
|
||||||
random.seed()
|
random.seed()
|
||||||
random.shuffle(topvotes)
|
random.shuffle(topvotes)
|
||||||
lynched = topvotes.pop()
|
lynched = topvotes.pop()
|
||||||
self.message(bot, s.player_lynched.format(name=lynched.tusername, icon=lynched.role.icon, role=lynched.role.name))
|
if lynched.alive:
|
||||||
lynched.kill()
|
self.message(bot, s.player_lynched.format(name=lynched.tusername, icon=lynched.role.icon, role=lynched.role.name))
|
||||||
|
lynched.kill()
|
||||||
else:
|
else:
|
||||||
self.message(bot, s.no_players_lynched)
|
self.message(bot, s.no_players_lynched)
|
||||||
# Fai gli endday in un certo ordine.
|
# Fai gli endday in un certo ordine.
|
||||||
|
@ -438,7 +439,7 @@ def endjoin(bot, update):
|
||||||
game.phase = 'Voting'
|
game.phase = 'Voting'
|
||||||
game.message(bot, s.join_phase_ended)
|
game.message(bot, s.join_phase_ended)
|
||||||
try:
|
try:
|
||||||
game.assignroles(bot, mifia=0, investigatore=0, angelo=0)
|
game.assignroles(bot, mifia=1, investigatore=0, angelo=1)
|
||||||
except IndexError:
|
except IndexError:
|
||||||
game.message(bot, s.error_not_enough_players)
|
game.message(bot, s.error_not_enough_players)
|
||||||
game.endgame()
|
game.endgame()
|
||||||
|
|
Loading…
Reference in a new issue