From eb6f3cf3de400b3f771e9b2ef0649882d0546f53 Mon Sep 17 00:00:00 2001 From: oddluck <39967334+oddluck@users.noreply.github.com> Date: Sat, 7 Mar 2020 17:46:00 +0000 Subject: [PATCH] Jeopardy: no point reduction if hint unchanged --- Jeopardy/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jeopardy/plugin.py b/Jeopardy/plugin.py index 2dff194..e43c65e 100644 --- a/Jeopardy/plugin.py +++ b/Jeopardy/plugin.py @@ -444,6 +444,7 @@ class Jeopardy(callbacks.Plugin): schedule.removeEvent('event_%s' % self.channel) except: pass + self.lastHint = self.currentHint if self.hints <= self.numHints and self.hints > 0 and self.numHints > 0: ans = self.a[0] self.show.setdefault(self.id, None) @@ -465,7 +466,7 @@ class Jeopardy(callbacks.Plugin): except: break self.currentHint = ''.join(self.show[self.id]) - if self.hints > 0: + if self.hints > 0 and self.lastHint != self.currentHint: self.p -= int(round(self.p * self.reduction, -1)) if self.points > self.p: points = self.p