mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
27d77b6afd
commit
47a1ca8c54
1 changed files with 59 additions and 53 deletions
|
|
@ -53,9 +53,11 @@ else:
|
|||
slowest = 'Slowest'
|
||||
insane = 'Insane'
|
||||
|
||||
|
||||
def ba_get_api_version():
|
||||
return 6
|
||||
|
||||
|
||||
def ba_get_levels():
|
||||
return [babase._level.Level(
|
||||
name,
|
||||
|
|
@ -63,6 +65,7 @@ def ba_get_levels():
|
|||
settings={},
|
||||
preview_texture_name='footballStadiumPreview')]
|
||||
|
||||
|
||||
class myMine(Bomb):
|
||||
# reason for the mine class is so we can add the death zone
|
||||
def __init__(self,
|
||||
|
|
@ -101,12 +104,15 @@ class myMine(Bomb):
|
|||
else:
|
||||
super().handlemessage(msg)
|
||||
|
||||
|
||||
class Player(bs.Player['Team']):
|
||||
"""Our player type for this game."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.survival_seconds: Optional[int] = None
|
||||
self.death_time: Optional[float] = None
|
||||
|
||||
|
||||
class Team(bs.Team[Player]):
|
||||
"""Our team type for this game."""
|
||||
|
||||
|
|
@ -122,7 +128,6 @@ class Infection(bs.TeamGameActivity[Player, Team]):
|
|||
announce_player_deaths = True
|
||||
allow_mid_activity_joins = False
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_available_settings(
|
||||
cls, sessiontype: Type[bs.Session]) -> List[babase.Setting]:
|
||||
|
|
@ -436,7 +441,8 @@ class Infection(bs.TeamGameActivity[Player, Team]):
|
|||
while True:
|
||||
x = random.uniform(-1.0, 1.0)
|
||||
y = random.uniform(-1.0, 1.0)
|
||||
if x*x+y*y < 1.0: break
|
||||
if x*x+y*y < 1.0:
|
||||
break
|
||||
return ((8.0*x, 2.5, -3.5+5.0*y))
|
||||
elif myMap == 'Rampage':
|
||||
x = random.uniform(-6.0, 7.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue