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
507667443c
commit
800125c17f
2 changed files with 78 additions and 79 deletions
|
|
@ -43,6 +43,8 @@ if TYPE_CHECKING:
|
||||||
from typing import Sequence, Union
|
from typing import Sequence, Union
|
||||||
|
|
||||||
# Check game ver.
|
# Check game ver.
|
||||||
|
|
||||||
|
|
||||||
def is_game_version_lower_than(version):
|
def is_game_version_lower_than(version):
|
||||||
"""
|
"""
|
||||||
Returns a boolean value indicating whether the current game
|
Returns a boolean value indicating whether the current game
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,8 @@ import random
|
||||||
import weakref
|
import weakref
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
import ba, _ba
|
import ba
|
||||||
|
import _ba
|
||||||
import ba.internal
|
import ba.internal
|
||||||
import bastd
|
import bastd
|
||||||
from bastd.actor.powerupbox import PowerupBox
|
from bastd.actor.powerupbox import PowerupBox
|
||||||
|
|
@ -423,7 +424,6 @@ Spaz.super_handlemessage = Spaz.handlemessage
|
||||||
|
|
||||||
def bot_handlemessage(self, msg: Any):
|
def bot_handlemessage(self, msg: Any):
|
||||||
|
|
||||||
|
|
||||||
if isinstance(msg, ba.PowerupMessage):
|
if isinstance(msg, ba.PowerupMessage):
|
||||||
if msg.poweruptype == 'health':
|
if msg.poweruptype == 'health':
|
||||||
if ba.app.config.get("bombRadiusVisual"):
|
if ba.app.config.get("bombRadiusVisual"):
|
||||||
|
|
@ -498,7 +498,6 @@ def bot_handlemessage(self, msg: Any):
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Spaz.handlemessage = bot_handlemessage
|
Spaz.handlemessage = bot_handlemessage
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -650,7 +649,6 @@ class DummyBotSet(NewBotSet):
|
||||||
self._bot_update_list = (self._bot_update_list +
|
self._bot_update_list = (self._bot_update_list +
|
||||||
1) % self._bot_list_count
|
1) % self._bot_list_count
|
||||||
|
|
||||||
|
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -1296,8 +1294,7 @@ class PowerUpPracticeTab(PracticeTab):
|
||||||
i.node.position[1],
|
i.node.position[1],
|
||||||
i.node.position[2] + z)
|
i.node.position[2] + z)
|
||||||
PowerupBox(position=pos,
|
PowerupBox(position=pos,
|
||||||
poweruptype=
|
poweruptype=self.power_list_type
|
||||||
self.power_list_type
|
|
||||||
[self._icon_index]).autoretain()
|
[self._icon_index]).autoretain()
|
||||||
|
|
||||||
def _power_window(self) -> None:
|
def _power_window(self) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue