mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 16:53:49 +08:00
ci compliant?
This commit is contained in:
parent
277c5f14ca
commit
2fdf006030
@ -1413,10 +1413,7 @@ class RunaroundGame(bs.CoopGameActivity[Player, Team]):
|
|||||||
time: float = 1.22) -> None:
|
time: float = 1.22) -> None:
|
||||||
""" Makes the UI heart beat at low health. """
|
""" Makes the UI heart beat at low health. """
|
||||||
assert self._lives_bg is not None
|
assert self._lives_bg is not None
|
||||||
if (
|
if self._lives_bg.node.exists():
|
||||||
self._lives_bg is None
|
|
||||||
or self._lives_bg.node.exists()
|
|
||||||
):
|
|
||||||
return
|
return
|
||||||
heart = self._lives_bg.node
|
heart = self._lives_bg.node
|
||||||
|
|
||||||
@ -1434,7 +1431,8 @@ class RunaroundGame(bs.CoopGameActivity[Player, Team]):
|
|||||||
|
|
||||||
# Neutralize heartbeat (Done did when dead.)
|
# Neutralize heartbeat (Done did when dead.)
|
||||||
else:
|
else:
|
||||||
|
defscale: Sequence[float] = heart.scale
|
||||||
bs.animate_array(heart, 'scale', 2, {
|
bs.animate_array(heart, 'scale', 2, {
|
||||||
0.0: heart.scale,
|
0.0: defscale,
|
||||||
time: (90,90),
|
time: (90,90),
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user