From 1af572f12ac395569e91de64ffb88a1af79c3cc5 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 11 Jul 2015 23:59:55 -0400 Subject: [PATCH] shuffle villager list before pming them the roles prevents you from knowing if you are a hidden role based on the timing of the message --- src/wolfgame.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wolfgame.py b/src/wolfgame.py index db9c5ee..5583dec 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -5822,6 +5822,7 @@ def transition_night(cli): villagers += var.ROLES["time lord"] if var.DEFAULT_ROLE == "villager": villagers += var.ROLES["vengeful ghost"] + var.ROLES["amnesiac"] + random.shuffle(villagers) for villager in villagers: if villager in var.PLAYERS and not is_user_simple(villager): pm(cli, villager, "You are a \u0002villager\u0002. It is your job to lynch all of the wolves.") @@ -5831,6 +5832,7 @@ def transition_night(cli): cultists = copy.copy(var.ROLES["cultist"]) if var.DEFAULT_ROLE == "cultist": cultists += var.ROLES["vengeful ghost"] + var.ROLES["amnesiac"] + random.shuffle(cultists) for cultist in cultists: if cultist in var.PLAYERS and not is_user_simple(cultist): pm(cli, cultist, "You are a \u0002cultist\u0002. It is your job to help the wolves kill all of the villagers.")