mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 00:47:10 +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)
|
||||
ypos = random.uniform(3.5, 3.5)
|
||||
zpos = random.uniform(-8.2, 3.7)
|
||||
def _is_exists(egg):
|
||||
def _is_exists(egg: Egg) -> bool:
|
||||
if egg.node is None:
|
||||
return False
|
||||
return egg.node.exists()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user