From e53f34ad6d76af9b1a4c56cd3ca6fc2249f18058 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 29 Jan 2017 01:59:55 +0100 Subject: [PATCH] bugfics --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.py b/main.py index 72d104a..8e58c4c 100644 --- a/main.py +++ b/main.py @@ -340,6 +340,15 @@ class Stagista(Role): if self.master.alive: game.message(bot, s.intern_changed_role.format(icon=self.master.role.__class__.icon, role=self.master.role.__class__.name)) game.changerole(self.player, self.master.role.__class__) + self.player.message(bot, s.role_assigned.format(icon=self.player.role.icon, name=self.player.role.name)) + if self.player.role.powerdesc is not None: + self.player.message(bot, self.player.role.powerdesc.format(gamename=self.name)) + if self.__class__ == Mifioso: + text = s.mifia_team_intro + for player in game.playersinrole['Mifioso']: + text += s.mifia_team_player.format(icon=player.role.icon, name=player.tusername) + for player in game.playersinrole['Mifioso']: + player.message(bot, text) else: game.message(bot, "easter egg. yey") #TODO: mettere l'easter egg