Jeopardy: round points to multiple of 10

This commit is contained in:
oddluck 2020-02-26 21:17:03 +00:00
parent abfbb3937f
commit 4f4f3caf03

View File

@ -458,7 +458,7 @@ class Jeopardy(callbacks.Plugin):
break break
self.currentHint = ''.join(self.show[self.id]) self.currentHint = ''.join(self.show[self.id])
if self.hints > 0: if self.hints > 0:
self.p -= int(self.p * self.reduction) self.p -= int(round(self.p * self.reduction, -1))
if self.points > self.p: if self.points > self.p:
points = self.p points = self.p
else: else: