Jeopardy: no point reduction if hint unchanged
This commit is contained in:
parent
ac0512e50f
commit
eb6f3cf3de
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue