Fix pestilence totem and wolf cub dying during nighttime not triggering angry wolves, and don't show winners if game is fstopped

This commit is contained in:
Skizzerz 2014-08-04 01:54:21 -05:00
parent 79a72aa33e
commit 3da561a408

View File

@ -1983,8 +1983,6 @@ def begin_day(cli):
chan = botconfig.CHANNEL
# Reset nighttime variables
var.ANGRY_WOLVES = False
var.DISEASED_WOLVES = False
var.GAMEPHASE = "day"
var.KILLS = {} # nicknames of kill victims (wolves only)
var.OTHER_KILLS = {} # other kill victims (hunter/vengeful ghost/death totem)
@ -2093,6 +2091,8 @@ def transition_day(cli, gameid=0):
var.DAY_START_TIME = datetime.now()
var.DAY_COUNT += 1
var.FIRST_DAY = (var.DAY_COUNT == 1)
var.ANGRY_WOLVES = False
var.DISEASED_WOLVES = False
havetotem = copy.copy(var.LASTGIVEN)
if (not len(var.SEEN)+len(var.KILLS)+len(var.OBSERVED) # neither seer nor wolf acted
@ -2379,6 +2379,7 @@ def transition_day(cli, gameid=0):
var.GUNNERS[victim] -= 1 # deduct the used bullet
for victim in dead:
print("bywolves = {0}, diseased = {1}".format(victim in bywolves, victim in var.DISEASED))
if victim in bywolves and victim in var.DISEASED:
var.DISEASED_WOLVES = True