star can now be blue if the warning is level 4 (for Dolphin only tracks)

This commit is contained in:
raphael60650 2021-10-28 12:17:43 +02:00
parent 4d4c2ff2bb
commit a3c31cad5b
2 changed files with 9 additions and 1 deletions

View file

@ -148,7 +148,12 @@ class Track:
if self.score:
if 0 < self.score <= 3:
star_text = "" * self.score + "" * (3 - self.score) + "!" * getattr(self, "warning", 0)
star_text = "" * self.score + "" * (3 - self.score)
if 0 < self.warning <= 3:
star_text += "!" * self.warning
if self.warning == 4:
star_text += "d"
star_text = trackname_color[star_text] + " "
if self.since_version == highlight_version:

View file

@ -91,6 +91,9 @@ trackname_color = {
"★★★!!": "\\\\c{YOR6}★★★\\\\c{off}",
"★★☆!!": "\\\\c{YOR6}★★☆\\\\c{off}",
"★☆☆!!": "\\\\c{YOR6}★☆☆\\\\c{off}",
"★★★d": "\\\\c{BLUE}★★★\\\\c{off}",
"★★☆d": "\\\\c{BLUE}★★☆\\\\c{off}",
"★☆☆d": "\\\\c{BLUE}★☆☆\\\\c{off}",
}
region_id_to_name = {