mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 15:03:33 +08:00
Update spaz.py
This commit is contained in:
parent
706a91dee7
commit
2a50321753
@ -262,7 +262,7 @@ class Spaz(ba.Actor):
|
|||||||
def _turbo_filter_add_press(self, source: str) -> None:
|
def _turbo_filter_add_press(self, source: str) -> None:
|
||||||
"""
|
"""
|
||||||
Can pass all button presses through here; if we see an obscene number
|
Can pass all button presses through here; if we see an obscene number
|
||||||
of them in a short time let's shame/pushish this guy for using turbo
|
of them in a short time let's shame/pushish this guy for using turbo.
|
||||||
"""
|
"""
|
||||||
t_ms = ba.time(
|
t_ms = ba.time(
|
||||||
timetype=ba.TimeType.BASE, timeformat=ba.TimeFormat.MILLISECONDS
|
timetype=ba.TimeType.BASE, timeformat=ba.TimeFormat.MILLISECONDS
|
||||||
@ -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:
|
if not self.node or self.frozen or self.node.knockout > 0.0:
|
||||||
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