mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
[ci] auto-format
This commit is contained in:
parent
0fd7c5bed1
commit
4941d0cb0e
3 changed files with 566 additions and 561 deletions
|
|
@ -111,6 +111,7 @@ class Player(bs.Player['Team']):
|
|||
self.dead = False
|
||||
self.icons: list[Icon] = []
|
||||
|
||||
|
||||
class Team(bs.Team[Player]):
|
||||
"""Our team type for this game."""
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ if TYPE_CHECKING:
|
|||
class BotsCanAcceptPowerupsPlugin(babase.Plugin):
|
||||
def on_app_running(self) -> None:
|
||||
SpazBot.oldinit = SpazBot.__init__
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.oldinit()
|
||||
pam = PowerupBoxFactory.get().powerup_accept_material
|
||||
|
|
|
|||
|
|
@ -317,6 +317,7 @@ def ishost():
|
|||
if player.inputdevice.client_id == -1:
|
||||
return True
|
||||
|
||||
|
||||
def activity_loop():
|
||||
if bs.get_foreground_host_activity() is not None:
|
||||
activity = bs.get_foreground_host_activity()
|
||||
|
|
@ -352,4 +353,6 @@ def activity_loop():
|
|||
|
||||
if config["Infinite Bombs"]:
|
||||
player.actor.bomb_count = 100
|
||||
|
||||
|
||||
timer = babase.AppTimer(2, activity_loop, repeat=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue