SC2: Multi-campaign (#2954)

Adds HotS, LotV and NCO campaigns to SC2 game.
The world's name has changed to reflect that (it's not only Wings of Liberty now)
The client was patched in a way that can still join to games generated prior this change
---------

Co-authored-by: Magnemania <magnemight@gmail.com>
Co-authored-by: EnvyDragon <138727357+EnvyDragon@users.noreply.github.com>
Co-authored-by: Matthew <matthew.marinets@gmail.com>
Co-authored-by: hopop201 <benjy.hopop201@gmail.com>
Co-authored-by: Salzkorn <salzkitty@gmail.com>
Co-authored-by: genderdruid <pallyoffail@gmail.com>
Co-authored-by: MadiMadsen <137329235+MadiMadsen@users.noreply.github.com>
Co-authored-by: neocerber <neocerber@gmail.com>
Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
Co-authored-by: Fabian Dill <Berserker66@users.noreply.github.com>
This commit is contained in:
Ziktofel
2024-03-15 17:33:03 +01:00
committed by GitHub
parent ed9cbfecb9
commit e0e9fdd86a
97 changed files with 13708 additions and 4739 deletions

View File

@@ -12,6 +12,8 @@ from .position import Point2
from .unit import Unit
from .units import Units
from worlds._sc2common.bot import logger
if TYPE_CHECKING:
from .game_info import Ramp
@@ -310,6 +312,7 @@ class BotAI(BotAIInternal):
:param message:
:param team_only:"""
assert isinstance(message, str), f"{message} is not a string"
logger.debug("Sending message: " + message)
await self.client.chat_send(message, team_only)
def in_map_bounds(self, pos: Union[Point2, tuple, list]) -> bool: