async def debug_leave(self): await self._execute(debug=sc_pb.RequestDebug(debug=[debug_pb.DebugCommand(end_game=debug_pb.DebugEndGame())]))
async def debug_fast_build(self): """ Sets the build time of units and structures and upgrades to zero. Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=12)]))
def debug(self, debug_commands): """Run a debug command.""" if isinstance(debug_commands, sc_debug.DebugCommand): debug_commands = [debug_commands] return self._client.send(debug=sc_pb.RequestDebug( debug=debug_commands))
async def debug_tech_tree(self): """ Removes all tech requirements (e.g. can build a factory without having a barracks). Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=10)]))
async def debug_upgrade(self): """ Researches all currently available upgrades. E.g. using it once unlocks combat shield, stimpack and 1-1. Using it a second time unlocks 2-2 and all other upgrades stay researched. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=11)]))
async def debug_gas(self): """ Gives 5000 vespene to the bot. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=8)]))
async def debug_cooldown(self): """ Disables cooldowns of unit abilities for the bot. Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=9)]))
async def debug_god(self): """ Your units and structures no longer take any damage. Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=6)]))
async def debug_minerals(self): """ Gives 5000 minerals to the bot. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=7)]))
async def debug_all_resources(self): """ Gives 5000 minerals and 5000 vespene to the bot. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=5)]))
async def debug_free(self): """ Units, structures and upgrades are free of mineral and gas cost. Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=4)]))
async def debug_food(self): """ Should disable food usage (does not seem to work?). Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=3)]))
async def debug_control_enemy(self): """ Allows control over enemy units and structures similar to team games control - does not allow the bot to spend the opponent's ressources. Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=2)]))
async def debug_show_map(self): """ Reveals the whole map for the bot. Using it a second time disables it again. """ await self._execute(debug=sc_pb.RequestDebug( debug=[debug_pb.DebugCommand(game_state=1)]))