Merge pull request #102 from skizzerz/drunkassassin

Remove some restrictions on who can be assassin
This commit is contained in:
jacob1 2015-01-03 18:20:58 -05:00
commit 6fc05abd71
2 changed files with 16 additions and 7 deletions

View File

@ -5173,13 +5173,22 @@ def transition_night(cli):
pl = ps[:] pl = ps[:]
random.shuffle(pl) random.shuffle(pl)
pl.remove(ass) pl.remove(ass)
if ass in var.PLAYERS and not is_user_simple(ass): role = var.get_role(ass)
pm(cli, ass, ('You are an \u0002assassin\u0002. Choose a target with ' + if role == "village drunk":
'"target <nick>". If you die you will take out your target with you. ' + var.TARGETED[ass] = random.choice(pl)
'If your target dies you may choose another one.')) message = ("You are an \u0002assassin\u0002. In your drunken stupor you have selected " +
"\u0002{0}\u0002 as your target.").format(var.TARGETED[ass])
if ass in var.PLAYERS and not is_user_simple(ass):
message += " If you die you will take out your target with you."
pm(cli, ass, message)
else: else:
pm(cli, ass, "You are an \u0002assassin\u0002.") if ass in var.PLAYERS and not is_user_simple(ass):
pm(cli, ass, "Players: " + ", ".join(pl)) pm(cli, ass, ('You are an \u0002assassin\u0002. Choose a target with ' +
'"target <nick>". If you die you will take out your target with you. ' +
'If your target dies you may choose another one.'))
else:
pm(cli, ass, "You are an \u0002assassin\u0002.")
pm(cli, ass, "Players: " + ", ".join(pl))
if var.FIRST_NIGHT: if var.FIRST_NIGHT:
for mm in var.ROLES["matchmaker"]: for mm in var.ROLES["matchmaker"]:

View File

@ -199,7 +199,7 @@ TEMPLATE_RESTRICTIONS = {"cursed villager" : WOLF_ROLES + ["seer", "oracle", "au
"gunner" : WOLFTEAM_ROLES + ["fool", "lycan", "jester"], "gunner" : WOLFTEAM_ROLES + ["fool", "lycan", "jester"],
"sharpshooter" : WOLFTEAM_ROLES + ["fool", "lycan", "jester"], "sharpshooter" : WOLFTEAM_ROLES + ["fool", "lycan", "jester"],
"mayor" : ["fool", "jester", "monster"], "mayor" : ["fool", "jester", "monster"],
"assassin" : WOLF_ROLES + list(TOTEM_ORDER) + ["traitor", "seer", "augur", "oracle", "harlot", "detective", "bodyguard", "guardian angel", "village drunk", "hunter", "fool", "mayor", "lycan", "doctor"], "assassin" : WOLF_ROLES + ["traitor", "seer", "augur", "oracle", "harlot", "detective", "bodyguard", "guardian angel", "lycan"],
"bureaucrat" : [], "bureaucrat" : [],
} }