diff --git a/plugins/minigames/arms_race.py b/plugins/minigames/arms_race.py index 8fcb78a..cb797dd 100644 --- a/plugins/minigames/arms_race.py +++ b/plugins/minigames/arms_race.py @@ -1,10 +1,9 @@ # Ported by your friend: Freaku -#Join BCS: +# Join BCS: # https://discord.gg/ucyaesh - # ba_meta require api 9 from __future__ import annotations diff --git a/plugins/minigames/icy_emits.py b/plugins/minigames/icy_emits.py index 1fd86ab..edc4e04 100644 --- a/plugins/minigames/icy_emits.py +++ b/plugins/minigames/icy_emits.py @@ -2,7 +2,8 @@ import babase -import bascenev1 as bs, random +import bascenev1 as bs +import random from bascenev1lib.actor.bomb import Bomb from bascenev1lib.game.meteorshower import Player, MeteorShowerGame @@ -14,7 +15,7 @@ class IcyEmitsGame(MeteorShowerGame): @classmethod def get_supported_maps(cls, sessiontype): - return ['Lake Frigid','Hockey Stadium'] + return ['Lake Frigid', 'Hockey Stadium'] def _drop_bomb_cluster(self) -> None: delay = 0.0 @@ -24,23 +25,24 @@ class IcyEmitsGame(MeteorShowerGame): pos = (-7.3 + 15.3 * random.random(), 5.3, -5.5 + 2.1 * random.random()) dropdir = (-1.0 if pos[0] > 0 else 1.0) - vel = (0,10,0) + vel = (0, 10, 0) bs.timer(delay, babase.Call(self._drop_bomb, pos, vel)) delay += 0.1 self._set_meteor_timer() def _drop_bomb(self, position, velocity): - random_xpositions = [-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10] - random_zpositions = [-5,-4.5,-4,-3.5,-3,-2.5,-2,-1.5,-1,-0.5,0,0.5,1,1.5,2,2.5,3,3.5,4,4.5,5] - bomb_position = (random.choice(random_xpositions), 0.2,random.choice(random_zpositions)) - Bomb(position=bomb_position, velocity=velocity, bomb_type = 'ice').autoretain() - - + random_xpositions = [-10, -9, -8, -7, -6, -5, - + 4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + random_zpositions = [-5, -4.5, -4, -3.5, -3, -2.5, -2, - + 1.5, -1, -0.5, 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5] + bomb_position = (random.choice(random_xpositions), 0.2, random.choice(random_zpositions)) + Bomb(position=bomb_position, velocity=velocity, bomb_type='ice').autoretain() # ba_meta export plugin class byFreaku(babase.Plugin): def __init__(self): ## Campaign support ## - randomPic = ['lakeFrigidPreview','hockeyStadiumPreview'] - babase.app.classic.add_coop_practice_level(bs.Level(name='Icy Emits', displayname='${GAME}', gametype=IcyEmitsGame, settings={}, preview_texture_name=random.choice(randomPic))) + randomPic = ['lakeFrigidPreview', 'hockeyStadiumPreview'] + babase.app.classic.add_coop_practice_level(bs.Level( + name='Icy Emits', displayname='${GAME}', gametype=IcyEmitsGame, settings={}, preview_texture_name=random.choice(randomPic))) diff --git a/plugins/minigames/memory_game.py b/plugins/minigames/memory_game.py index 5e8d6a0..ae4cfa4 100644 --- a/plugins/minigames/memory_game.py +++ b/plugins/minigames/memory_game.py @@ -27,7 +27,6 @@ if TYPE_CHECKING: from typing import Any, Sequence, Optional, List, Dict, Type, Union, Any, Literal - class OnTimer(bs.Actor): """Timer which counts but doesn't show on-screen""" diff --git a/plugins/utilities/floater.py b/plugins/utilities/floater.py index 90099a0..45e9e76 100644 --- a/plugins/utilities/floater.py +++ b/plugins/utilities/floater.py @@ -269,6 +269,8 @@ def new_chat_message(*args, **kwargs): bs.chatmessage = new_chat_message # ba_meta export plugin + + class byFreaku(babase.Plugin): def on_app_running(self): pass diff --git a/plugins/utilities/icons_keyboard.py b/plugins/utilities/icons_keyboard.py index ce7061d..052bb4c 100644 --- a/plugins/utilities/icons_keyboard.py +++ b/plugins/utilities/icons_keyboard.py @@ -32,4 +32,4 @@ class IconKeyboard(bauiv1.Keyboard): pages = { f'icon{i//26+1}': tuple(list_of_icons[i:i+26]) for i in range(26, len(list_of_icons), 26) - } \ No newline at end of file + }