mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 13:54: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
|
return r
|
||||||
|
|
||||||
def onstartgame(self, bot, game):
|
def onstartgame(self, bot, game):
|
||||||
target = self.player
|
while True:
|
||||||
while target == self.player:
|
|
||||||
target = random.sample(game.players, 1)[0]
|
target = random.sample(game.players, 1)[0]
|
||||||
|
if target == self.player:
|
||||||
|
continue
|
||||||
self.player.message(bot, s.mom_discovery.format(target=target.tusername,
|
self.player.message(bot, s.mom_discovery.format(target=target.tusername,
|
||||||
icon=target.role.icon,
|
icon=target.role.icon,
|
||||||
role=target.role.name))
|
role=target.role.name))
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
rolepriority = [Mifioso, Investigatore, Disastro, Angelo, Derek, Terrorista, Mamma]
|
rolepriority = [Mifioso, Investigatore, Disastro, Angelo, Derek, Terrorista, Mamma]
|
||||||
|
|
|
@ -8,9 +8,6 @@ royal_icon = "\U0001F610"
|
||||||
# Royal: nome ruolo
|
# Royal: nome ruolo
|
||||||
royal_name = "Royal"
|
royal_name = "Royal"
|
||||||
|
|
||||||
# Royal: come giocare
|
|
||||||
royal_help = "I Royal non hanno alcun potere speciale."
|
|
||||||
|
|
||||||
# Mifioso: icona
|
# Mifioso: icona
|
||||||
mifia_icon = "\U0001F47F"
|
mifia_icon = "\U0001F47F"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue