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
d58ab12bc4
commit
8c6a1ffc45
@ -606,6 +606,7 @@ class Spaz(ba.Actor):
|
|||||||
"""
|
"""
|
||||||
assert self.node
|
assert self.node
|
||||||
self.node.boxing_gloves = True
|
self.node.boxing_gloves = True
|
||||||
|
self._has_boxing_gloves = True
|
||||||
if self._demo_mode: # Preserve old behavior.
|
if self._demo_mode: # Preserve old behavior.
|
||||||
self._punch_power_scale = 1.7
|
self._punch_power_scale = 1.7
|
||||||
self._punch_cooldown = 300
|
self._punch_cooldown = 300
|
||||||
@ -754,7 +755,6 @@ class Spaz(ba.Actor):
|
|||||||
ba.WeakCall(self._bomb_wear_off),
|
ba.WeakCall(self._bomb_wear_off),
|
||||||
timeformat=ba.TimeFormat.MILLISECONDS))
|
timeformat=ba.TimeFormat.MILLISECONDS))
|
||||||
elif msg.poweruptype == 'punch':
|
elif msg.poweruptype == 'punch':
|
||||||
self._has_boxing_gloves = True
|
|
||||||
tex = PowerupBoxFactory.get().tex_punch
|
tex = PowerupBoxFactory.get().tex_punch
|
||||||
self._flash_billboard(tex)
|
self._flash_billboard(tex)
|
||||||
self.equip_boxing_gloves()
|
self.equip_boxing_gloves()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user