From 1a78a2abfb7a755f0774f8e1795a3b6e5836b67e Mon Sep 17 00:00:00 2001 From: skizzerz Date: Mon, 26 Oct 2015 21:01:28 -0500 Subject: [PATCH] Add blessed villager template, begin devout --- src/wolfgame.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/wolfgame.py b/src/wolfgame.py index 4cd7fce..0d80b5b 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -5530,6 +5530,11 @@ def investigate(cli, nick, chan, rest): "that \u0002{0}\u0002 is the detective!").format(nick)) debuglog("{0} ({1}) PAPER DROP".format(nick, var.get_role(nick))) +@cmd("pray", chan=False, pm=True, playing=True, silenced=True, phases=("night",), roles=("devout",)) +def pray(cli, nick, chan, rest): + """Receive divine visions of something or someone.""" + pass + @cmd("visit", chan=False, pm=True, playing=True, silenced=True, phases=("night",), roles=("harlot",)) def hvisit(cli, nick, chan, rest): """Visit a player. You will die if you visit a wolf or a target of the wolves.""" @@ -6973,6 +6978,12 @@ def transition_night(cli): else: pm(cli, cultist, "You are a \u0002cultist\u0002.") + for blessed in var.ROLES["blessed villager"]: + if blessed in var.PLAYERS and not is_user_simple(blessed): + pm(cli, blessed, "You feel incredibly safe. You are a \u0002blessed villager\u0002.") + else: + pm(cli, blessed, "You are a \u0002blessed villager\u0002.") + for g in var.GUNNERS.keys(): if g not in ps: continue @@ -7285,6 +7296,10 @@ def start(cli, nick, chan, forced = False, restart = ""): var.ROLES["sharpshooter"].discard(None) + # Handle blessed villager + for blessed in var.ROLES["blessed villager"]: + var.BLESSED.add(blessed) + if not restart: var.SPECIAL_ROLES["goat herder"] = [] if var.GOAT_HERDER: