mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 23:59:18 +08:00
Update spaz.py
This commit is contained in:
parent
2a50321753
commit
f7c235f030
@ -376,7 +376,7 @@ class Spaz(ba.Actor):
|
|||||||
Called to 'press jump' on this spaz;
|
Called to 'press jump' on this spaz;
|
||||||
used by player or AI connections.
|
used by player or AI connections.
|
||||||
"""
|
"""
|
||||||
if not self.node or self.frozen or self.node.knockout > 0.0:
|
if not self.node:
|
||||||
return
|
return
|
||||||
t_ms = ba.time(timeformat=ba.TimeFormat.MILLISECONDS)
|
t_ms = ba.time(timeformat=ba.TimeFormat.MILLISECONDS)
|
||||||
assert isinstance(t_ms, int)
|
assert isinstance(t_ms, int)
|
||||||
@ -399,7 +399,7 @@ class Spaz(ba.Actor):
|
|||||||
Called to 'press pick-up' on this spaz;
|
Called to 'press pick-up' on this spaz;
|
||||||
used by player or AI connections.
|
used by player or AI connections.
|
||||||
"""
|
"""
|
||||||
if not self.node or self.frozen or self.node.knockout > 0.0:
|
if not self.node:
|
||||||
return
|
return
|
||||||
t_ms = ba.time(timeformat=ba.TimeFormat.MILLISECONDS)
|
t_ms = ba.time(timeformat=ba.TimeFormat.MILLISECONDS)
|
||||||
assert isinstance(t_ms, int)
|
assert isinstance(t_ms, int)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user