Make sure scores are int only.

This commit is contained in:
Storm Dragon 2025-02-14 21:37:20 -05:00
parent 6d2c6e04d8
commit c242fc6832

View File

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