Linted custom_hooks.

Now every game script related things are now hooked to custom_hooks.
This commit is contained in:
pranav-1711 2022-02-14 16:06:22 +05:30
parent 2676c4ef99
commit 569e9bc968
4 changed files with 117 additions and 108 deletions

View file

@ -168,8 +168,8 @@ class ScoreScreenActivity(Activity[EmptyPlayer, EmptyTeam]):
from bastd.actor.text import Text
from ba import _language
super().on_begin()
from stats import mystats
mystats.update(self._stats)
import custom_hooks
custom_hooks.score_screen_on_begin(self._stats)
# Pop up a 'press any button to continue' statement after our
# min-view-time show a 'press any button to continue..'

View file

@ -72,7 +72,8 @@ class PlayerSpaz(Spaz):
self._player = player
self._drive_player_position()
modifyspaz.main(self, self.node, self._player)
import custom_hooks
custom_hooks.playerspaz_init(self, self.node, self._player)
# Overloads to tell the type system our return type based on doraise val.