[ci] auto-format

This commit is contained in:
SenjuZoro 2023-07-26 18:55:16 +00:00 committed by github-actions[bot]
parent 693eac6172
commit e7a5df9aac

View file

@ -1,10 +1,9 @@
#Ported by: Freaku / @[Just] Freak#4999
# Ported by: Freaku / @[Just] Freak#4999
#Join BCS:
# Join BCS:
# https://discord.gg/ucyaesh
# ba_meta require api 8
from __future__ import annotations
@ -20,7 +19,6 @@ if TYPE_CHECKING:
from typing import Any, Type, List, Dict, Tuple, Union, Sequence, Optional
class State:
def __init__(self, bomb=None, grab=False, punch=False, curse=False, required=False, final=False, name=''):
self.bomb = bomb
@ -37,8 +35,8 @@ class State:
def apply(self, spaz):
spaz.disconnect_controls_from_player()
spaz.connect_controls_to_player(enable_punch=self.punch,
enable_bomb=self.bomb,
enable_pickup=self.grab)
enable_bomb=self.bomb,
enable_pickup=self.grab)
if self.curse:
spaz.curse_time = -1
spaz.curse()
@ -50,16 +48,18 @@ class State:
return (self.name)
states = [ State(bomb='normal', name='Basic Bombs'),
State(bomb='ice', name='Frozen Bombs'),
State(bomb='sticky', name='Sticky Bombs'),
State(bomb='impact', name='Impact Bombs'),
State(grab=True, name='Grabbing only'),
State(punch=True, name='Punching only'),
State(curse=True, name='Cursed', final=True) ]
states = [State(bomb='normal', name='Basic Bombs'),
State(bomb='ice', name='Frozen Bombs'),
State(bomb='sticky', name='Sticky Bombs'),
State(bomb='impact', name='Impact Bombs'),
State(grab=True, name='Grabbing only'),
State(punch=True, name='Punching only'),
State(curse=True, name='Cursed', final=True)]
class Player(bs.Player['Team']):
"""Our player type for this game."""
def __init__(self):
self.state = None