From 7fd98331f4af18a86202d09f9d32dde5771ec941 Mon Sep 17 00:00:00 2001 From: skizzerz Date: Sun, 10 May 2015 17:52:54 -0500 Subject: [PATCH] Make nobody win if all the safes and all the wolves die off at once in evilvillage --- src/settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/settings.py b/src/settings.py index ddb6e35..4993295 100644 --- a/src/settings.py +++ b/src/settings.py @@ -566,7 +566,12 @@ class EvilVillageMode(GameMode): evt.stop_processing = True try: - if lrealwolves == 0: + if lrealwolves == 0 and lsafes == 0: + evt.data["winner"] = "none" + evt.data["message"] ("Game over! All the villagers are dead, but the cult needed to sacrifice " + + "the wolves to accomplish that. The cult disperses shortly thereafter, " + + "and nobody wins.") + elif lrealwolves == 0: evt.data["winner"] = "villagers" evt.data["message"] = ("Game over! All the wolves are dead! The villagers " + "round up the remaining cultists, hang them, and live " +