Merge pull request #557 from ElSBP/patch-8

Update spaz.py
This commit is contained in:
Eric Froemling 2023-01-18 14:19:01 -08:00 committed by GitHub
commit 15640a3d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,12 +88,12 @@ class Spaz(ba.Actor):
self.play_big_death_sound = False
# scales how much impacts affect us (most damage calcs)
# Scales how much impacts affect us (most damage calcs).
self.impact_scale = 1.0
self.source_player = source_player
self._dead = False
if self._demo_mode: # preserve old behavior
if self._demo_mode: # Preserve old behavior.
self._punch_power_scale = 1.2
else:
self._punch_power_scale = factory.punch_power_scale
@ -263,7 +263,7 @@ class Spaz(ba.Actor):
def _turbo_filter_add_press(self, source: str) -> None:
"""
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(
timetype=ba.TimeType.BASE, timeformat=ba.TimeFormat.MILLISECONDS