From cb7a6db8e84720d8adc3147fe60857b1d32cc289 Mon Sep 17 00:00:00 2001 From: skizzerz Date: Fri, 30 Oct 2015 19:07:36 -0500 Subject: [PATCH] Fix stats for sleepy (hardcode for now) --- src/wolfgame.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index bd6d648..d5613f9 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -1776,7 +1776,16 @@ def stats(cli, nick, chan, rest): if overkill: # we tried killing more people than exist in a role, so deduct from amnesiac/clone count instead - if pr == "clone": + if var.CURRENT_GAMEMODE.name == "sleepy" and pr == "doomsayer": + rolecounts["seer"][0] = max(0, rolecounts["seer"][0] - 1) + rolecounts["seer"][1] = max(0, rolecounts["seer"][1] - 1) + elif var.CURRENT_GAMEMODE.name == "sleepy" and pr == "demoniac": + rolecounts["cultist"][0] = max(0, rolecounts["cultist"][0] - 1) + rolecounts["cultist"][1] = max(0, rolecounts["cultist"][1] - 1) + elif var.CURRENT_GAMEMODE.name == "sleepy" and pr == "succubus": + rolecounts["harlot"][0] = max(0, rolecounts["harlot"][0] - 1) + rolecounts["harlot"][1] = max(0, rolecounts["harlot"][1] - 1) + elif pr == "clone": # in this case, it means amnesiac became a clone (clone becoming amnesiac is impossible so we # do not have the converse check in here - clones always inherit what amnesiac turns into). equiv_sets["amnesiac_clone"] = max(0, equiv_sets["amnesiac_clone"] - 1)