Try to do the goat herder, at 2 am

This commit is contained in:
Eitan Adler 2013-05-18 01:37:42 -04:00
parent fcec06f53c
commit 9e8ac652ab
2 changed files with 7 additions and 1 deletions

View File

@ -1079,7 +1079,7 @@ def goat(cli, nick, chan, rest):
if var.PHASE != "day": if var.PHASE != "day":
cli.notice(nick, "You can only do that in the day.") cli.notice(nick, "You can only do that in the day.")
return return
if var.GOATED: if var.GOATED and nick != var.ROLES["goat herder"]:
cli.notice(nick, "You can only do that once per day.") cli.notice(nick, "You can only do that once per day.")
return return
ul = list(var.USERS.keys()) ul = list(var.USERS.keys())
@ -2398,6 +2398,10 @@ def start(cli, nick, chann_, rest):
var.GUNNERS[gnr] = math.ceil(var.SHOTS_MULTIPLIER * len(pl)) var.GUNNERS[gnr] = math.ceil(var.SHOTS_MULTIPLIER * len(pl))
del var.ROLES["gunner"] del var.ROLES["gunner"]
var.ROLES["goat herder"] = None
if var.GOAT_HERDER:
var.ROLES["goat herder"] = random.choice(pl)
var.ROLES["villager"] = villagers var.ROLES["villager"] = villagers
cli.msg(chan, ("{0}: Welcome to Werewolf, the popular detective/social party "+ cli.msg(chan, ("{0}: Welcome to Werewolf, the popular detective/social party "+

View File

@ -26,6 +26,8 @@ LEAVE_STASIS_PENALTY = 3
IDLE_STASIS_PENALTY = 2 IDLE_STASIS_PENALTY = 2
PART_STASIS_PENALTY = 4 PART_STASIS_PENALTY = 4
GOAT_HERDER = True
SELF_LYNCH_ALLOWED = True SELF_LYNCH_ALLOWED = True
CARE_BOLD = True CARE_BOLD = True