Merge pull request #336 from Freaku17/main

Updated my mods for 1.7.37+ (API 9)
This commit is contained in:
! Freaku 2025-02-09 12:21:08 +05:30 committed by GitHub
commit b0f6846228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 70 additions and 18 deletions

View file

@ -39,6 +39,12 @@
} }
], ],
"versions": { "versions": {
"2.0.0": {
"api_version": 9,
"commit_sha": "6bf081a",
"released_on": "08-02-2025",
"md5sum": "ae390fd99e657a19a553c29a48c4cff4"
},
"1.0.0": { "1.0.0": {
"api_version": 8, "api_version": 8,
"commit_sha": "48f9302", "commit_sha": "48f9302",
@ -58,6 +64,12 @@
} }
], ],
"versions": { "versions": {
"2.0.0": {
"api_version": 9,
"commit_sha": "6bf081a",
"released_on": "08-02-2025",
"md5sum": "10c482f1843894f4376b6624df276cb7"
},
"1.0.0": { "1.0.0": {
"api_version": 8, "api_version": 8,
"commit_sha": "48f9302", "commit_sha": "48f9302",
@ -307,6 +319,12 @@
} }
], ],
"versions": { "versions": {
"3.0.0": {
"api_version": 9,
"commit_sha": "07f7a85",
"released_on": "09-02-2025",
"md5sum": "ccfff509782e0f5d838fcc9813b4a3c7"
},
"2.0.1": { "2.0.1": {
"api_version": 8, "api_version": 8,
"commit_sha": "d511c15", "commit_sha": "d511c15",
@ -338,6 +356,12 @@
} }
], ],
"versions": { "versions": {
"3.0.0": {
"api_version": 9,
"commit_sha": "6bf081a",
"released_on": "08-02-2025",
"md5sum": "67c9612e3bfdb0383737bcc1b32ef64b"
},
"2.0.0": { "2.0.0": {
"api_version": 8, "api_version": 8,
"commit_sha": "48f9302", "commit_sha": "48f9302",
@ -363,6 +387,12 @@
} }
], ],
"versions": { "versions": {
"3.0.0": {
"api_version": 9,
"commit_sha": "6bf081a",
"released_on": "08-02-2025",
"md5sum": "d606c10308c2a42a604cc74dcf92c8d1"
},
"2.0.0": { "2.0.0": {
"api_version": 8, "api_version": 8,
"commit_sha": "48f9302", "commit_sha": "48f9302",
@ -666,6 +696,12 @@
} }
], ],
"versions": { "versions": {
"2.1.1": {
"api_version": 9,
"commit_sha": "6bf081a",
"released_on": "08-02-2025",
"md5sum": "4feb8d6a90fee305ea70531fc9bb0e31"
},
"2.1.0": { "2.1.0": {
"api_version": 9, "api_version": 9,
"commit_sha": "17e968d", "commit_sha": "17e968d",

View file

@ -1,3 +1,9 @@
# Ported by your friend: Freaku
# Join BCS:
# https://discord.gg/ucyaesh
# ba_meta require api 9 # ba_meta require api 9
from __future__ import annotations from __future__ import annotations
@ -30,8 +36,11 @@ class State:
enable_bomb=self.bomb, enable_bomb=self.bomb,
enable_pickup=self.grab) enable_pickup=self.grab)
if self.curse: if self.curse:
try:
spaz.curse_time = -1 spaz.curse_time = -1
spaz.curse() spaz.curse()
except:
pass
if self.bomb: if self.bomb:
spaz.bomb_type = self.bomb spaz.bomb_type = self.bomb
spaz.set_score_text(self.name) spaz.set_score_text(self.name)

View file

@ -6,7 +6,7 @@ import bascenev1 as bs
from bascenev1lib.game.chosenone import Player, ChosenOneGame from bascenev1lib.game.chosenone import Player, ChosenOneGame
# ba_meta require api 8 # ba_meta require api 9
# ba_meta export bascenev1.GameActivity # ba_meta export bascenev1.GameActivity
class FrozenOneGame(ChosenOneGame): class FrozenOneGame(ChosenOneGame):
name = 'Frozen One' name = 'Frozen One'

View file

@ -8,7 +8,7 @@ from bascenev1lib.actor.bomb import Bomb
from bascenev1lib.game.meteorshower import Player, MeteorShowerGame from bascenev1lib.game.meteorshower import Player, MeteorShowerGame
# ba_meta require api 8 # ba_meta require api 9
# ba_meta export bascenev1.GameActivity # ba_meta export bascenev1.GameActivity
class IcyEmitsGame(MeteorShowerGame): class IcyEmitsGame(MeteorShowerGame):
name = 'Icy Emits' name = 'Icy Emits'

View file

@ -16,7 +16,7 @@ from __future__ import annotations
# def spawnAllMap(self) # def spawnAllMap(self)
# ba_meta require api 8 # ba_meta require api 9
from typing import TYPE_CHECKING, overload from typing import TYPE_CHECKING, overload
import _babase import _babase
import babase import babase

View file

@ -31,7 +31,7 @@ class Team(bs.Team[Player]):
self.score = 0 self.score = 0
# ba_meta require api 8 # ba_meta require api 9
# ba_meta export bascenev1.GameActivity # ba_meta export bascenev1.GameActivity
class MFGame(bs.TeamGameActivity[Player, Team]): class MFGame(bs.TeamGameActivity[Player, Team]):
name = 'Musical Flags' name = 'Musical Flags'

View file

@ -32,7 +32,7 @@
""" """
# ba_meta require api 8 # ba_meta require api 9
from __future__ import annotations from __future__ import annotations

View file

@ -655,6 +655,12 @@
} }
], ],
"versions": { "versions": {
"2.0.3": {
"api_version": 9,
"commit_sha": "6bf081a",
"released_on": "08-02-2025",
"md5sum": "e80d0282867e44f27d1efeadd13e1edf"
},
"2.0.2": { "2.0.2": {
"api_version": 9, "api_version": 9,
"commit_sha": "2c66eac", "commit_sha": "2c66eac",
@ -975,6 +981,12 @@
} }
], ],
"versions": { "versions": {
"3.1.1": {
"api_version": 9,
"commit_sha": "6bf081a",
"released_on": "08-02-2025",
"md5sum": "53776b882b3c06be4d28a3d547984c46"
},
"3.1.0": { "3.1.0": {
"api_version": 9, "api_version": 9,
"commit_sha": "bb129cc", "commit_sha": "bb129cc",

View file

@ -272,4 +272,5 @@ bs.chatmessage = new_chat_message
class byFreaku(babase.Plugin): class byFreaku(babase.Plugin):
def on_app_running(self): pass def on_app_running(self):
pass

View file

@ -10,10 +10,10 @@
# ba_meta require api 9 # ba_meta require api 9
import bauiv1 import bauiv1
import babase from babase import SpecialChar
from babase import charstr from babase import charstr
list_of_icons = [i for i in babase.SpecialChar] list_of_icons = [i for i in SpecialChar]
list_of_icons = [charstr(i) for i in list_of_icons] list_of_icons = [charstr(i) for i in list_of_icons]
list_of_icons.reverse() list_of_icons.reverse()
@ -21,7 +21,8 @@ for i in range(26 - (len(list_of_icons) % 26)):
list_of_icons.append('') list_of_icons.append('')
class IconKeyboard(babase.Keyboard if hasattr(babase, 'Keyboard') else bauiv1.Keyboard): # ba_meta export bauiv1.Keyboard
class IconKeyboard(bauiv1.Keyboard):
"""Keyboard go brrrrrrr""" """Keyboard go brrrrrrr"""
name = 'Icons by \ue048Freaku' name = 'Icons by \ue048Freaku'
chars = [(list_of_icons[0:10]), chars = [(list_of_icons[0:10]),
@ -32,10 +33,3 @@ class IconKeyboard(babase.Keyboard if hasattr(babase, 'Keyboard') else bauiv1.Ke
f'icon{i//26+1}': tuple(list_of_icons[i:i+26]) f'icon{i//26+1}': tuple(list_of_icons[i:i+26])
for i in range(26, len(list_of_icons), 26) for i in range(26, len(list_of_icons), 26)
} }
# ba_meta export plugin
class byFreaku(babase.Plugin):
def __init__(self):
babase.app.meta.scanresults.exports['babase.Keyboard' if hasattr(
babase, 'Keyboard') else 'bauiv1.Keyboard'].append(__name__+'.IconKeyboard')