mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 07:04:18 +00:00
bugfixes
This commit is contained in:
parent
244923ff77
commit
0f90e0f31c
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -265,8 +265,8 @@ class Disastro(Role):
|
||||||
self.poweruses -= 1
|
self.poweruses -= 1
|
||||||
randomrole = random.sample(rolepriority, 1)[0]
|
randomrole = random.sample(rolepriority, 1)[0]
|
||||||
self.player.message(bot, s.detective_discovery.format(target=target.tusername,
|
self.player.message(bot, s.detective_discovery.format(target=target.tusername,
|
||||||
icon=randomrole.role.icon,
|
icon=randomrole.icon,
|
||||||
role=randomrole.role.name,
|
role=randomrole.name,
|
||||||
left=self.poweruses))
|
left=self.poweruses))
|
||||||
else:
|
else:
|
||||||
self.player.message(bot, s.error_username)
|
self.player.message(bot, s.error_username)
|
||||||
|
@ -396,7 +396,7 @@ class Game:
|
||||||
for currentrole in rolepriority:
|
for currentrole in rolepriority:
|
||||||
for player in random.sample(playersleft, self.roleconfig[currentrole.__name__]):
|
for player in random.sample(playersleft, self.roleconfig[currentrole.__name__]):
|
||||||
self.playersinrole[currentrole.__name__].append(player)
|
self.playersinrole[currentrole.__name__].append(player)
|
||||||
player.role = currentrole(self)
|
player.role = currentrole(player)
|
||||||
playersleft.remove(player)
|
playersleft.remove(player)
|
||||||
# Assegna il ruolo di Royal a tutti gli altri
|
# Assegna il ruolo di Royal a tutti gli altri
|
||||||
for player in playersleft:
|
for player in playersleft:
|
||||||
|
|
Loading…
Reference in a new issue