Merge pull request #380 from MW2917/patch-1

The Egg Game fix
This commit is contained in:
Loup 2025-06-28 11:56:26 +05:30 committed by GitHub
commit 50ed3ddafe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 9 deletions

View file

@ -1262,6 +1262,12 @@
}
],
"versions": {
"1.1.0": {
"api_version": 9,
"commit_sha": "80bbbce",
"released_on": "27-06-2025",
"md5sum": "990e426d79f8836eee5aaab169e24fa2"
},
"1.0.0": {
"api_version": 8,
"commit_sha": "388e58a",

View file

@ -1,4 +1,3 @@
# Ported by brostos to api 8
# Tool used to make porting easier.(https://github.com/bombsquad-community/baport)
# Released under the MIT License. See LICENSE for details.
@ -7,7 +6,7 @@
# created in BCS (Bombsquad Consultancy Service) - opensource bombsquad mods for all
# discord.gg/ucyaesh join now and give your contribution
# The Egg game by mr.smoothy
# ba_meta require api 8
# ba_meta require api 9
# (see https://ballistica.net/wiki/meta-tag-system)
from __future__ import annotations
@ -124,12 +123,6 @@ class EggGame(bs.TeamGameActivity[Player, Team]):
name = 'Epic Egg Game'
description = 'Score some goals.'
available_settings = [
bs.IntSetting(
'Score to Win',
min_value=1,
default=1,
increment=1,
),
bs.IntChoiceSetting(
'Time Limit',
choices=[
@ -339,7 +332,7 @@ class EggGame(bs.TeamGameActivity[Player, Team]):
try:
col = source_player.team.color
self.flagg = Flag(pos, touchable=False, color=col).autoretain()
self.flagg = Flag(touchable=False, position=pos, color=col).autoretain()
self.flagg.is_area_of_interest = True
player_pos = source_player.node.position