From e8001c19deba0a8009e8d7030d593b199d6d82a3 Mon Sep 17 00:00:00 2001 From: Jimmy Cao Date: Thu, 29 Dec 2011 13:30:59 -0600 Subject: [PATCH] small tweaks in !fgame --- modules/sabotage.py | 2 ++ settings/wolfgame.py | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/sabotage.py b/modules/sabotage.py index 680debe..7cd4e0d 100644 --- a/modules/sabotage.py +++ b/modules/sabotage.py @@ -15,6 +15,8 @@ hook = decorators.generate(HOOKS, raw_nick=True, permissions=False) def connect_callback(cli): var.PHASE = "none" var.PLAYERS = [] + + var.LAST_STATS = None @cmd("join") diff --git a/settings/wolfgame.py b/settings/wolfgame.py index 008cae1..ae82349 100644 --- a/settings/wolfgame.py +++ b/settings/wolfgame.py @@ -114,7 +114,7 @@ def game_mode(name): CHANGEABLE_ROLES = { "seers" : INDEX_OF_ROLE["seer"], "wolves" : INDEX_OF_ROLE["wolf"], - "cursed villager" : INDEX_OF_ROLE["cursed villager"], + "cursed" : INDEX_OF_ROLE["cursed villager"], "drunks" : INDEX_OF_ROLE["village drunk"], "harlots" : INDEX_OF_ROLE["harlot"], "traitors" : INDEX_OF_ROLE["traitor"], @@ -129,11 +129,12 @@ CHANGEABLE_ROLES = { "seers" : INDEX_OF_ROLE["seer"], class Normal(object): pass - -# Example !game roles=wolves:1,seers:0 + # TODO: implement game modes @game_mode("roles") class ChangedRolesMode(object): + """Example: !game roles=wolves:1,seers:0,angels:1""" + def __init__(self, arg): self.ROLES_GUIDE = ROLES_GUIDE.copy() lx = list(ROLES_GUIDE[None])