mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 05:44:19 +00:00
Miglioramenti al codice della Mamma
This commit is contained in:
parent
7535212730
commit
f36d767728
2 changed files with 4 additions and 5 deletions
6
main.py
6
main.py
|
@ -302,12 +302,14 @@ class Mamma(Role):
|
|||
return r
|
||||
|
||||
def onstartgame(self, bot, game):
|
||||
target = self.player
|
||||
while target == self.player:
|
||||
while True:
|
||||
target = random.sample(game.players, 1)[0]
|
||||
if target == self.player:
|
||||
continue
|
||||
self.player.message(bot, s.mom_discovery.format(target=target.tusername,
|
||||
icon=target.role.icon,
|
||||
role=target.role.name))
|
||||
break
|
||||
|
||||
|
||||
rolepriority = [Mifioso, Investigatore, Disastro, Angelo, Derek, Terrorista, Mamma]
|
||||
|
|
|
@ -8,9 +8,6 @@ royal_icon = "\U0001F610"
|
|||
# Royal: nome ruolo
|
||||
royal_name = "Royal"
|
||||
|
||||
# Royal: come giocare
|
||||
royal_help = "I Royal non hanno alcun potere speciale."
|
||||
|
||||
# Mifioso: icona
|
||||
mifia_icon = "\U0001F47F"
|
||||
|
||||
|
|
Loading…
Reference in a new issue