mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 23:13:46 +08:00
Added type annotations for _is_exists function in EasterEggHuntGame._update
This commit is contained in:
parent
18133ac216
commit
1fe3c69551
@ -186,7 +186,7 @@ class EasterEggHuntGame(ba.TeamGameActivity):
|
|||||||
xpos = random.uniform(-7.1, 6.0)
|
xpos = random.uniform(-7.1, 6.0)
|
||||||
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):
|
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