mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
[ci] auto-format
This commit is contained in:
parent
b69f428c07
commit
a0e13b5796
1 changed files with 6 additions and 4 deletions
|
|
@ -554,7 +554,7 @@ class EliminationGame(bs.TeamGameActivity[Player, Team]):
|
||||||
self, position: Sequence[float], velocity: Sequence[float]
|
self, position: Sequence[float], velocity: Sequence[float]
|
||||||
) -> None:
|
) -> None:
|
||||||
bomb_type = random.choice([
|
bomb_type = random.choice([
|
||||||
'land_mine', 'land_mine', 'tnt', 'tnt',
|
'land_mine', 'land_mine', 'tnt', 'tnt',
|
||||||
'impact', 'sticky', 'normal',
|
'impact', 'sticky', 'normal',
|
||||||
])
|
])
|
||||||
bomb = Bomb(
|
bomb = Bomb(
|
||||||
|
|
@ -678,7 +678,8 @@ class EliminationGame(bs.TeamGameActivity[Player, Team]):
|
||||||
try:
|
try:
|
||||||
player.team.spawn_order.remove(player)
|
player.team.spawn_order.remove(player)
|
||||||
player.team.spawn_order.append(player)
|
player.team.spawn_order.append(player)
|
||||||
except: pass
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def _update(self) -> None:
|
def _update(self) -> None:
|
||||||
if self._solo_mode:
|
if self._solo_mode:
|
||||||
|
|
@ -707,10 +708,11 @@ class EliminationGame(bs.TeamGameActivity[Player, Team]):
|
||||||
if len(self.teams) >= 5 and not self._add_player_phase:
|
if len(self.teams) >= 5 and not self._add_player_phase:
|
||||||
self._add_player_phase = True
|
self._add_player_phase = True
|
||||||
bs.broadcastmessage(
|
bs.broadcastmessage(
|
||||||
"Be ready! ⚔️ 2 random eliminated players may rejoin the game in 2 minutes.",
|
"Be ready! ⚔️ 2 random eliminated players may rejoin the game in 2 minutes.",
|
||||||
color=(1, 0.7, 0.1)
|
color=(1, 0.7, 0.1)
|
||||||
)
|
)
|
||||||
self._add_player_timer = bs.BaseTimer(120, bs.WeakCallStrict(self._revive_random_players))
|
self._add_player_timer = bs.BaseTimer(
|
||||||
|
120, bs.WeakCallStrict(self._revive_random_players))
|
||||||
|
|
||||||
def _get_living_teams(self) -> list[Team]:
|
def _get_living_teams(self) -> list[Team]:
|
||||||
return [
|
return [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue