2017-07-06 16:49:06 +00:00
|
|
|
from .Role import Role
|
|
|
|
from .SignoreDelCaos import SignoreDelCaos
|
|
|
|
import strings as s
|
|
|
|
|
|
|
|
class Servitore(Role):
|
|
|
|
"""Il servitore del Caos è il sottoposto al Signore del Caos.
|
|
|
|
Se non ci sono Signori del Caos in partita diventa Signore del Caos."""
|
2017-07-08 12:31:37 +00:00
|
|
|
icon = s.chaos_servant_icon
|
2017-07-06 16:49:06 +00:00
|
|
|
team = 'Chaos'
|
|
|
|
name = s.chaos_servant_name
|
|
|
|
powerdesc = s.chaos_servant_power_description
|
|
|
|
|
|
|
|
def __repr__(self) -> str:
|
|
|
|
return "<Role: Servitore del Caos>"
|
|
|
|
|
2017-07-18 23:28:49 +00:00
|
|
|
def onendday(self):
|
2017-07-17 23:06:30 +00:00
|
|
|
for chaoslord in self.player.game.playersinrole["SignoreDelCaos"]:
|
2017-07-06 16:49:06 +00:00
|
|
|
if chaoslord.alive:
|
|
|
|
break
|
|
|
|
else:
|
2017-07-18 23:28:49 +00:00
|
|
|
self.player.game.changerole(self.player, SignoreDelCaos)
|
|
|
|
self.player.game.message(s.chaos_servant_inherited)
|