Browse Source

better warning message for sunset

master
jcao219 13 years ago
parent
commit
5129a6731e
  1. 6
      modules/wolfgame.py
  2. 2
      settings/wolfgame.py

6
modules/wolfgame.py

@ -514,7 +514,11 @@ def hurry_up(cli, gameid, change): @@ -514,7 +514,11 @@ def hurry_up(cli, gameid, change):
chan = botconfig.CHANNEL
if not change:
cli.msg(chan, "\02The sun is almost setting.\02")
cli.msg(chan, ("\02As the sun sinks inexorably toward the horizon, turning the lanky pine " +
"trees into fire-edged silhouettes, the villagers are reminded that very little " +
"time remains for them to reach a decision; if darkness falls before they have done " +
"so, the majority will win the vote. No one will be lynched if there " +
"are no votes or an even split.\02"))
if not var.DAY_TIME_LIMIT_CHANGE:
return
var.TIMERS[1] = threading.Timer(var.DAY_TIME_LIMIT_CHANGE, hurry_up, [cli, var.DAY_ID, True])

2
settings/wolfgame.py

@ -11,7 +11,7 @@ MAX_PLAYERS = 30 @@ -11,7 +11,7 @@ MAX_PLAYERS = 30
DRUNK_SHOTS_MULTIPLIER = 3
NIGHT_TIME_LIMIT = 120
DAY_TIME_LIMIT_WARN = 780
DAY_TIME_LIMIT_CHANGE = 120 # After DAY_TIME_LIMIT_WARN has passed
DAY_TIME_LIMIT_CHANGE = 120 # seconds after DAY_TIME_LIMIT_WARN has passed
START_WITH_DAY = False
WOLF_STEALS_GUN = False
KILL_IDLE_TIME = 300

Loading…
Cancel
Save