Make dynquit during game configurable, per woffle

This commit is contained in:
Ominous 2014-12-14 23:34:15 -05:00
parent 3294c01b49
commit 5c57c62be3
2 changed files with 7 additions and 2 deletions

View File

@ -2267,8 +2267,11 @@ def leave_game(cli, nick, chan, rest):
if var.get_role(nick) != "person" and var.ROLE_REVEAL:
role = var.get_reveal_role(nick)
an = "n" if role[0] in ("a", "e", "i", "o", "u") else ""
lmsg = random.choice(var.QUIT_MESSAGES).format(nick, an, var.get_reveal_role(nick), population)
cli.msg(botconfig.CHANNEL, lmsg)
if var.DYNQUIT_DURING_GAME:
lmsg = random.choice(var.QUIT_MESSAGES).format(nick, an, var.get_reveal_role(nick), population)
cli.msg(botconfig.CHANNEL, lmsg)
else:
cli.msg(botconfig.CHANNEL, ("\02{0}\02, a \02{1}\02, has died of an unknown disease.{2}").format(nick, var.get_reveal_role(nick), population))
var.LOGGER.logMessage(("{0}, a {1}, has died of an unknown disease.").format(nick, var.get_reveal_role(nick)))
else:
lmsg = random.choice(var.QUIT_MESSAGES_NO_REVEAL).format(nick, population)

View File

@ -44,6 +44,8 @@ IDLE_STASIS_PENALTY = 1
PART_STASIS_PENALTY = 1
QUIET_DEAD_PLAYERS = False
DYNQUIT_DURING_GAME = False # are dynamic quit messages used while a game is in progress? Note that true will break certain stats scrapers
GOAT_HERDER = True
ABSTAIN_ENABLED = True # whether village can !abstain in order to not vote anyone during day