mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 00:30:22 +08:00
Now all tests passed
This commit is contained in:
parent
1fe3c69551
commit
a38a6629fb
@ -1157,7 +1157,9 @@ class CoopScoreScreen(ba.Activity):
|
|||||||
self._tournament_time_remaining = max(
|
self._tournament_time_remaining = max(
|
||||||
0, self._tournament_time_remaining - 1)
|
0, self._tournament_time_remaining - 1)
|
||||||
if self._tournament_time_remaining_text is not None:
|
if self._tournament_time_remaining_text is not None:
|
||||||
val = ba.timestring(self._tournament_time_remaining, suppress_format_warning=True, centi=False)
|
val = ba.timestring(self._tournament_time_remaining,
|
||||||
|
suppress_format_warning=True,
|
||||||
|
centi=False)
|
||||||
self._tournament_time_remaining_text.node.text = val
|
self._tournament_time_remaining_text.node.text = val
|
||||||
|
|
||||||
def _show_world_rank(self, offs_x: float) -> None:
|
def _show_world_rank(self, offs_x: float) -> None:
|
||||||
|
|||||||
@ -187,7 +187,7 @@ class EasterEggHuntGame(ba.TeamGameActivity):
|
|||||||
ypos = random.uniform(3.5, 3.5)
|
ypos = random.uniform(3.5, 3.5)
|
||||||
zpos = random.uniform(-8.2, 3.7)
|
zpos = random.uniform(-8.2, 3.7)
|
||||||
def _is_exists(egg: Egg) -> bool:
|
def _is_exists(egg: Egg) -> bool:
|
||||||
if egg.node is None:
|
if egg.node is None:
|
||||||
return False
|
return False
|
||||||
return egg.node.exists()
|
return egg.node.exists()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user