Make sure scores are int only.
This commit is contained in:
@ -95,11 +95,11 @@ class Scoreboard:
|
|||||||
|
|
||||||
def decrease_score(self, points=1):
|
def decrease_score(self, points=1):
|
||||||
"""Decrease the current score."""
|
"""Decrease the current score."""
|
||||||
self.currentScore -= points
|
self.currentScore -= int(points)
|
||||||
|
|
||||||
def increase_score(self, points=1):
|
def increase_score(self, points=1):
|
||||||
"""Increase the current score."""
|
"""Increase the current score."""
|
||||||
self.currentScore += points
|
self.currentScore += int(points)
|
||||||
|
|
||||||
def check_high_score(self):
|
def check_high_score(self):
|
||||||
"""Check if current score qualifies as a high score.
|
"""Check if current score qualifies as a high score.
|
||||||
|
Reference in New Issue
Block a user