From b2a7587af4655df765d748affbcf482f7678fc21 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Tue, 19 Jul 2011 18:37:54 -0500 Subject: [PATCH] small fix to make it display the wolf first during the role-revealing after game ends --- wolfgame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wolfgame.py b/wolfgame.py index 15921ea..ed05078 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -559,7 +559,10 @@ def chk_win(cli): roles_msg = [] var.ORIGINAL_ROLES["cursed villager"] = var.CURSED - for role in var.ORIGINAL_ROLES.keys(): + lroles = list(var.ORIGINAL_ROLES.keys()) + lroles.remove("wolf") + lroles.insert(0, "wolf") # picky, howl consistency + for role in lroles: if len(var.ORIGINAL_ROLES[role]) == 0 or role == "villager": continue elif len(var.ORIGINAL_ROLES[role]) == 2: