Fixed point fetching and special resolution by player

This commit is contained in:
LaDfBC
2021-01-02 17:41:14 -06:00
parent 16a74828a2
commit f96618d2d1
2 changed files with 14 additions and 11 deletions

View File

@@ -38,6 +38,9 @@ class PointsService():
# Iterates through the point table, which we assume is sorted, and gets the points
def __get_points_for_diff__(self, diff):
if diff == 'None':
return 0
for i in range(0, len(self._point_table)):
if int(diff) < self._point_table[i][0]:
return self._point_table[i][1]