From dcd25a8d19f76c79ebcedb79b8b4f2293d007411 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Mon, 1 Aug 2011 14:23:25 -0500 Subject: [PATCH] now the drunk is not displayed in the stats and also the end-game role-revealing messages (conforms to howlbot) --- wolfgame.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wolfgame.py b/wolfgame.py index 9e74a01..d3053d9 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -451,7 +451,11 @@ def stats(cli, nick, chan, rest): if var.ROLES[k]] l2 = [k for k in var.ORIGINAL_ROLES.keys() if var.ORIGINAL_ROLES[k]] - for role in set(l1+l2): + rs = set(l1+l2) + if "village drunk" in rs: + rs.remove("village drunk") # drunk is not displayed + + for role in rs: count = len(var.ROLES[role]) if not f and count>1: vb = "are" @@ -603,6 +607,8 @@ def stop_game(cli): lroles.remove("wolf") lroles.insert(0, "wolf") # picky, howl consistency + lroles.remove("village drunk") + for role in lroles: if len(var.ORIGINAL_ROLES[role]) == 0 or role == "villager": continue