1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2025-02-16 13:24:06 +00:00

Aggiunto il detective corrotto (sarà sicuramente buggatissimo ma whatever)

This commit is contained in:
Steffo 2017-07-03 19:54:35 +03:00
parent f0456e3d12
commit 1e61f2f398
2 changed files with 24 additions and 2 deletions

18
main.py
View file

@ -155,6 +155,18 @@ class Investigatore(Role):
self.poweruses = self.refillpoweruses
class Corrotto(Role, Investigatore):
"""Il corrotto è un investigatore che lavora per la Mifia."""
icon = s.corrupt_icon
team = 'Evil'
name = s.corrupt_name
powerdesc = s.detective_power_description
refillpoweruses = 1
def __repr__(self) -> str:
return "<Role: Corrotto, {uses} uses left>".format(uses=self.poweruses)
class Angelo(Role):
"""L'angelo può proteggere una persona al giorno dalla Mifia.
Se ha successo nella protezione, il suo ruolo sarà rivelato a tutti."""
@ -409,7 +421,7 @@ class Servitore(Role):
# Ordine in cui vengono eseguiti i onendday dei vari ruoli.
rolepriority = [Mifioso, Investigatore, Disastro, Angelo, Derek, Stagista, Terrorista, Mamma, SignoreDelCaos, Servitore]
rolepriority = [Mifioso, Investigatore, Corrotto, Disastro, Angelo, Derek, Stagista, Terrorista, Mamma, SignoreDelCaos, Servitore]
class Player:
@ -541,8 +553,12 @@ class Game:
text = s.mifia_team_intro
for player in self.playersinrole['Mifioso']:
text += s.mifia_team_player.format(icon=player.role.icon, name=player.tusername)
for player in self.playersinrole['Corrotto']:
text += s.mifia_team_player.format(icon=player.role.icon, name=player.tusername)
for player in self.playersinrole['Mifioso']:
player.message(bot, text)
for player in self.playersinrole['Corrotto']:
player.message(bot, text)
def updatevotes(self):
"""Aggiorna il conteggio dei voti di tutti i giocatori."""

View file

@ -144,10 +144,16 @@ intern_started_internship = "Stai andando in stage da @{master}."
# Stagista: cambiato ruolo
intern_changed_role = "Lo stagista ha finito il tirocinio ed ha imparato i segreti del mestiere di *{icon} {role}*."
#Stagista: EVOCATO IL SIGNORE DEL CAOS
# Stagista: EVOCATO IL SIGNORE DEL CAOS
intern_chaos_summoned = "Il *\U0001F479 Signore del Caos* e il suo fedele servitore sono scesi sulla Terra.\n" \
"Preparatevi... a non capirci più niente."
#TODO: Corrotto: icona
corrupt_icon = "CAMBIAMI"
# Corrotto: nome ruolo
corrupt_name = "Corrotto"
# Signore del Caos: icona
chaos_lord_icon = "\U0001F479"