Jeopardy: no point reduction if hint unchanged

This commit is contained in:
oddluck 2020-03-07 17:46:00 +00:00
parent ac0512e50f
commit eb6f3cf3de
1 changed files with 2 additions and 1 deletions

View File

@ -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