Browse Source

fix a gunner message in the night bug, and a wolf killing bug caused by a recent commit

master
jcao219 13 years ago
parent
commit
45ba87c3b5
  1. 10
      wolfgame.py

10
wolfgame.py

@ -1519,9 +1519,9 @@ def kill(cli, nick, rest):
if victim in var.ROLES["wolf"]+var.ROLES["werecrow"]: if victim in var.ROLES["wolf"]+var.ROLES["werecrow"]:
cli.msg(nick, "You may only kill villagers, not other wolves.") cli.msg(nick, "You may only kill villagers, not other wolves.")
return return
var.KILLS[nick] = pl[pll.index(victim)] var.KILLS[nick] = victim
cli.msg(nick, "You have selected \u0002{0}\u0002 to be killed.".format(pl[pll.index(victim)])) cli.msg(nick, "You have selected \u0002{0}\u0002 to be killed.".format(victim))
var.LOGGER.logBare(nick, "SELECT", pl[pll.index(victim)]) var.LOGGER.logBare(nick, "SELECT", victim)
var.ACTED_WOLVES.add(nick) var.ACTED_WOLVES.add(nick)
chk_nightdone(cli) chk_nightdone(cli)
@ -1939,10 +1939,10 @@ def transition_night(cli):
cli.msg(d, 'You have been drinking too much! You are the \u0002village drunk\u0002.') cli.msg(d, 'You have been drinking too much! You are the \u0002village drunk\u0002.')
for g in tuple(var.GUNNERS.keys()): for g in tuple(var.GUNNERS.keys()):
if not var.FIRST_NIGHT:
break
if g not in ps: if g not in ps:
continue continue
elif not var.GUNNERS[g]:
continue
gun_msg = ("You hold a gun that shoots special silver bullets. You may only use it "+ gun_msg = ("You hold a gun that shoots special silver bullets. You may only use it "+
"during the day. If you shoot a wolf, (s)he will die instantly, but if you "+ "during the day. If you shoot a wolf, (s)he will die instantly, but if you "+
"shoot a villager, that villager will likely survive. You get {0}.") "shoot a villager, that villager will likely survive. You get {0}.")

Loading…
Cancel
Save