Change message when wolves win to mention injury (closes #1)

The message about wolves winning was unclear that the comparison is
between wolves and uninjured villagers, which caused confusion a few
times because people thought the game ended due to a bug. This commit
changes the message to avoid this confusion.
This commit is contained in:
Robert Wall 2013-07-06 00:39:30 -07:00
parent abefb90db2
commit 6f3d7a54ca

View File

@ -852,17 +852,17 @@ def chk_win(cli):
lwolves -= len([x for x in var.WOUNDED if x in var.ROLES["traitor"]])
if lwolves == lpl / 2:
cli.msg(chan, ("Game over! There are the same number of wolves as "+
"villagers. The wolves eat everyone and win."))
cli.msg(chan, ("Game over! There are the same number of wolves as " +
"uninjured villagers. The wolves overpower the villagers and win."))
var.LOGGER.logMessage(("Game over! There are the same number of wolves as "+
"villagers. The wolves eat everyone, and win."))
"uninjured villagers. The wolves overpower the villagers and win."))
village_win = False
var.LOGGER.logBare("WOLVES", "WIN")
elif lwolves > lpl / 2:
cli.msg(chan, ("Game over! There are more wolves than "+
"villagers. The wolves eat everyone, and win."))
"uninjured villagers. The wolves overpower the villagers and win."))
var.LOGGER.logMessage(("Game over! There are more wolves than "+
"villagers. The wolves eat everyone, and win."))
"uninjured villagers. The wolves overpower the villagers and win."))
village_win = False
var.LOGGER.logBare("WOLVES", "WIN")
elif (not var.ROLES["wolf"] and