Small tweaks

This commit is contained in:
Vgr E. Barry 2015-10-29 17:46:32 -04:00
parent 922842b49c
commit f73267f6e1
2 changed files with 3 additions and 3 deletions

View File

@ -750,7 +750,8 @@ class SleepyMode(GameMode):
})
# this ensures that priest will always receive the blessed villager and prophet templates
# prophet is normally a role by itself, but we're turning it into a template for this mode
self.TEMPLATE_RESTRICTIONS["cursed villager"] |= "priest"
self.TEMPLATE_RESTRICTIONS = var.TEMPLATE_RESTRICTIONS.copy()
self.TEMPLATE_RESTRICTIONS["cursed villager"] |= {"priest"}
self.TEMPLATE_RESTRICTIONS["blessed villager"] = frozenset(self.ROLE_GUIDE.keys()) - {"priest", "blessed villager", "prophet"}
self.TEMPLATE_RESTRICTIONS["prophet"] = frozenset(self.ROLE_GUIDE.keys()) - {"priest", "blessed villager", "prophet"}
# this ensures that village drunk will always receive the gunner template

View File

@ -7906,8 +7906,7 @@ 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)
var.BLESSED.update(var.ROLES["blessed villager"])
if not restart:
var.SPECIAL_ROLES["goat herder"] = []