Move from roles -> special roles.

This commit is contained in:
Eitan Adler 2013-06-01 16:02:14 +02:00
parent b6749abce8
commit 9a1571fbf4

View File

@ -1073,7 +1073,7 @@ def goat(cli, nick, chan, rest):
if var.PHASE != "day":
cli.notice(nick, "You can only do that in the day.")
return
if var.GOATED and nick not in var.ROLES["goat herder"]:
if var.GOATED and nick not in var.SPECIAL_ROLES["goat herder"]:
cli.notice(nick, "You can only do that once per day.")
return
ul = list(var.USERS.keys())
@ -2393,9 +2393,9 @@ def start(cli, nick, chann_, rest):
var.GUNNERS[gnr] = math.ceil(var.SHOTS_MULTIPLIER * len(pl))
del var.ROLES["gunner"]
var.ROLES["goat herder"] = []
#if var.GOAT_HERDER:
# var.ROLES["goat herder"] = nick
var.SPECIAL_ROLES["goat herder"] = []
if var.GOAT_HERDER:
var.SPECIAL_ROLES["goat herder"] = [ nick ]
var.ROLES["villager"] = villagers