Merge pull request #656 from 3alTemp/curse_time_fix

Spaz curse_time fixo
This commit is contained in:
Eric Froemling 2024-03-01 17:50:04 -08:00 committed by GitHub
commit 4da36f100c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@
languages; I feel it helps keep logic more understandable and should help us
catch problems where a base class changes or removes a method and child
classes forget to adapt to the change.
- Custom spaz "curse_time" values now work properly. (Thanks Temp!)
- Implemented `efro.dataclassio.IOMultiType` which will make my life a lot
easier.
- Punches no longer physically affect powerup boxes which should make it easier

View File

@ -629,7 +629,8 @@ class Spaz(bs.Actor):
1000.0 * (tval + self.curse_time)
)
self._curse_timer = bs.Timer(
5.0, bs.WeakCall(self.handlemessage, CurseExplodeMessage())
self.curse_time,
bs.WeakCall(self.handlemessage, CurseExplodeMessage()),
)
def equip_boxing_gloves(self) -> None: