Add streak without adding to pointsAdded

This commit is contained in:
rootcoma 2014-01-06 17:08:33 -08:00
parent 14932826bc
commit 48aee817ae
1 changed files with 1 additions and 2 deletions

View File

@ -1479,7 +1479,6 @@ class TriviaTime(callbacks.Plugin):
streakBonus = pointsAdded * .01 * (self.streak-1)
if streakBonus > pointsAdded:
streakBonus = pointsAdded
pointsAdded += streakBonus
threadStorage.updateGameStreak(self.channel, self.lastWinner, self.streak)
threadStorage.updateUserHighestStreak(self.lastWinner, self.streak)
threadStorage.updateGameLongestStreak(self.channel, username, self.streak)
@ -1487,7 +1486,7 @@ class TriviaTime(callbacks.Plugin):
pointsAdded = int(pointsAdded)
# report correct guess, and show players streak
threadStorage.updateUserLog(username, self.channel, pointsAdded,1, timeElapsed)
threadStorage.updateUserLog(username, self.channel, (pointsAdded+streakBonus), 1, timeElapsed)
self.lastAnswer = time.time()
self.sendMessage('DING DING DING, \x02%s\x02 got the correct answer, \x02%s\x02, in \x02%0.4f\x02 seconds for \x02%d(+%d)\x02 points!' % (username, correctAnswer, timeElapsed, pointsAdded, streakBonus))