Merge pull request #404 from MW2917/patch-5

Update botsvsbots.py
This commit is contained in:
Loup 2025-11-28 01:03:51 +05:30 committed by GitHub
commit 1de57f5ae5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 7 deletions

View file

@ -1055,6 +1055,12 @@
} }
], ],
"versions": { "versions": {
"1.0.1": {
"api_version": 9,
"commit_sha": "7cf3de7",
"released_on": "27-11-2025",
"md5sum": "d0bd3ee5a83d877dfcca74a7768024e0"
},
"1.0.0": { "1.0.0": {
"api_version": 9, "api_version": 9,
"commit_sha": "25b58cb", "commit_sha": "25b58cb",

View file

@ -53,6 +53,7 @@ class SpazBot2(SpazBot):
class BouncyBotSemiLite(BouncyBot): class BouncyBotSemiLite(BouncyBot):
# nerfed bouncybot. this is due to the base bouncybot being the same lv as pro bots.
highlight = (1, 1, 0.8) highlight = (1, 1, 0.8)
punchiness = 0.85 punchiness = 0.85
run = False run = False
@ -81,6 +82,7 @@ class FroshBotShielded(FroshBot):
class StickyBotShielded(StickyBot): class StickyBotShielded(StickyBot):
# shielded stickybots. *not bonus bots cuz they act the same as normal stickybots
default_shields = True default_shields = True
@ -218,6 +220,7 @@ class TeamBotSet(SpazBotSet):
if self._punching_bots_only == False: if self._punching_bots_only == False:
bot_types += [ bot_types += [
BomberBotProShielded, BomberBotProShielded,
StickyBotShielded,
] ]
if self._bonus_bots == True: if self._bonus_bots == True:
bot_types += [ bot_types += [
@ -236,7 +239,6 @@ class TeamBotSet(SpazBotSet):
if self._punching_bots_only == False: if self._punching_bots_only == False:
bot_types += [ bot_types += [
FroshBotShielded, FroshBotShielded,
StickyBotShielded,
] ]
return random.choice(bot_types) return random.choice(bot_types)
@ -259,7 +261,7 @@ class BotsVSBotsGame(bs.TeamGameActivity[bs.Player, Team]):
"""A game type based on acquiring kills.""" """A game type based on acquiring kills."""
name = 'Bots VS Bots' name = 'Bots VS Bots'
description = 'Sit down and enjoy mobs from your team fight the opposing team for you. \n Feel free to enjoy some popcorn with it or place a bet with your friends.' # , self._score_to_win description = 'Sit down and enjoy mobs from your team fight the opposing team for you. \n Feel free to enjoy some popcorn with it or place a bet with your friends.'
@override @override
@classmethod @classmethod
@ -306,9 +308,8 @@ class BotsVSBotsGame(bs.TeamGameActivity[bs.Player, Team]):
# Base class overrides. # Base class overrides.
self.slow_motion = self._epic_mode self.slow_motion = self._epic_mode
self.spawn_time = 1.6 if self._epic_mode else 4.0 self.spawn_time = 1.6 if self._epic_mode else 4.0
self.default_music = ( self.default_music = (bs.MusicType.EPIC
bs.MusicType.TO_THE_DEATH if self._epic_mode else bs.MusicType.TO_THE_DEATH)
)
@override @override
def get_instance_description(self) -> str | Sequence: def get_instance_description(self) -> str | Sequence:
@ -329,8 +330,6 @@ class BotsVSBotsGame(bs.TeamGameActivity[bs.Player, Team]):
def spawn_player(self, player: Player) -> None: def spawn_player(self, player: Player) -> None:
return None return None
# def team_pois_set
def spawn_team(self, team: Team) -> None: def spawn_team(self, team: Team) -> None:
camp = self.map.get_flag_position(team.id) camp = self.map.get_flag_position(team.id)
for i in range(self._bots_per_team): for i in range(self._bots_per_team):