add villager and cultist to the amnesiac blacklist
This commit is contained in:
parent
6a09f77a85
commit
a6a87c2dde
@ -5352,9 +5352,10 @@ def start(cli, nick, chan, forced = False):
|
|||||||
var.ORIGINAL_ROLES = copy.deepcopy(var.ROLES) # Make a copy
|
var.ORIGINAL_ROLES = copy.deepcopy(var.ROLES) # Make a copy
|
||||||
|
|
||||||
# Handle amnesiac
|
# Handle amnesiac
|
||||||
amnroles = list(var.ROLE_GUIDE.keys())
|
amnroles = list(var.ROLE_GUIDE.keys() - [var.DEFAULT_ROLE])
|
||||||
for nope in var.AMNESIAC_BLACKLIST:
|
for nope in var.AMNESIAC_BLACKLIST:
|
||||||
amnroles.remove(nope)
|
if nope in amnroles:
|
||||||
|
amnroles.remove(nope)
|
||||||
for nope in var.TEMPLATE_RESTRICTIONS.keys():
|
for nope in var.TEMPLATE_RESTRICTIONS.keys():
|
||||||
if nope in amnroles:
|
if nope in amnroles:
|
||||||
amnroles.remove(nope)
|
amnroles.remove(nope)
|
||||||
|
@ -179,7 +179,7 @@ WOLFTEAM_ROLES = ["wolf", "werecrow", "wolf cub", "traitor", "hag", "sorcerer",
|
|||||||
# These roles never win as a team, only ever individually (either instead of or in addition to the regular winners)
|
# These roles never win as a team, only ever individually (either instead of or in addition to the regular winners)
|
||||||
TRUE_NEUTRAL_ROLES = ["crazed shaman", "fool", "jester", "monster", "clone"]
|
TRUE_NEUTRAL_ROLES = ["crazed shaman", "fool", "jester", "monster", "clone"]
|
||||||
# These are the roles that will NOT be used for when amnesiac turns, everything else is fair game!
|
# These are the roles that will NOT be used for when amnesiac turns, everything else is fair game!
|
||||||
AMNESIAC_BLACKLIST = ["monster", "amnesiac", "minion", "matchmaker", "clone"]
|
AMNESIAC_BLACKLIST = ["monster", "amnesiac", "minion", "matchmaker", "clone", "villager", "cultist"]
|
||||||
|
|
||||||
# The roles in here are considered templates and will be applied on TOP of other roles. The restrictions are a list of roles that they CANNOT be applied to
|
# The roles in here are considered templates and will be applied on TOP of other roles. The restrictions are a list of roles that they CANNOT be applied to
|
||||||
# NB: if you want a template to apply to everyone, list it here but make the restrictions an empty list. Templates not listed here are considered full roles instead
|
# NB: if you want a template to apply to everyone, list it here but make the restrictions an empty list. Templates not listed here are considered full roles instead
|
||||||
|
Loading…
x
Reference in New Issue
Block a user