Beispiel #1
0
 async def debug_leave(self):
     await self._execute(debug=sc_pb.RequestDebug(debug=[debug_pb.DebugCommand(end_game=debug_pb.DebugEndGame())]))
Beispiel #2
0
 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)]))
Beispiel #3
0
 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))
Beispiel #4
0
 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)]))
Beispiel #5
0
 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)]))
Beispiel #6
0
 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)]))
Beispiel #7
0
 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)]))
Beispiel #8
0
 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)]))
Beispiel #9
0
 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)]))
Beispiel #10
0
 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)]))
Beispiel #11
0
 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)]))
Beispiel #12
0
 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)]))
Beispiel #13
0
 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)]))
Beispiel #14
0
 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)]))