Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
train = {
0x022000: 'Probe',
0x003b00: 'Mothership',
}
spells = {
0x012520: 'Chrono Boost',
}
abilities = {
0x011a10: 'Set rally point',
0x011a20: 'Set rally target',
}
class Pylon(GameObject, Building, Protoss):
code = 0x5801
class Assimilator(GameObject, Building, Protoss):
code = 0x5901
class Gateway(GameObject, Production, Protoss):
code = 0x5a01
train = {
0x021d00: 'Zealot',
0x021d01: 'Stalker',
0x021d03: 'High Templar',
0x021d04: 'Dark Templar',
0x021d05: 'Sentry',
}
@Mode(0x031500, 0x031600)
class WarpGate(Production):
code = 0xa101
full_name = "Warp Gate"
train = {
0x030710: 'Zealot',
0x030711: 'Stalker',
0x030713: 'High Templar',
}
class CyberneticsCore(GameObject, Building, Protoss):
code = 0x6401
research = {
0x031d00: 'Air Weapons Level 1',
0x031d01: 'Air Weapons Level 2',
0x031d02: 'Air Weapons Level 3',
0x031d03: 'Air Armor Level 1',
0x031d04: 'Air Armor Level 2',
0x031d05: 'Air Armor Level 3',
0x031d06: 'Warp Gate',
0x035d01: 'Hallucination',
}
class PhotonCannon(GameObject, Building, Detector, Protoss):
code = 0x5e01
class RoboticsFacility(GameObject, Production, Protoss):
code = 0x6301
train = {
0x021f00: 'Warp Prism',
0x021f01: 'Observer',
0x021f02: 'Colossus',
0x021f03: 'Immortal',
}
class Stargate(GameObject, Production, Protoss):
code = 0x5f01
train = {
0x021e00: 'Phoenix',
0x021e02: 'Carrier',
0x021e04: 'Void Ray',
}
class TwilightCouncil(GameObject, Building, Protoss):
code = 0x5d01
@Transport(0x020101, None, 0x020133, None)
class CommandCenter(GameObject, TerranMain, Production, Terran):
code = 0x2d01
abilities = {
0x20104: 'Load All',
}
def load_all(self, selection):
pass
@Mode(0x020200, 0x020310)
class Flying(Moveable):
code = 0x4001
@Upgrade(0x031400, 0x031401)
class OrbitalCommand(TerranMain, Production, Terran):
code = 0xa001
spells = {
0x010b10: 'MULE',
0x010b20: 'MULE',
0x012220: 'Extra Supplies',
0x013c10: 'Scanner Sweep',
}
@Mode(0x031700, 0x031810)
class Flying(Moveable):
code = 0xa201
@Upgrade(0x030f00, 0x030f01)
class PlanetaryFortress(TerranMain, Production, Terran):
code = 0x9e01
abilities = {
0x012e00: 'Cancel', # Generic ESC cancel (only seen at PF)
}
class Pylon(GameObject, Building, Protoss):
code = 0x5801
class Assimilator(GameObject, Building, Protoss):
code = 0x5901
class Gateway(GameObject, Production, Protoss):
code = 0x5a01
train = {
0x021d00: 'Zealot',
0x021d01: 'Stalker',
0x021d03: 'High Templar',
0x021d04: 'Dark Templar',
0x021d05: 'Sentry',
}
@Mode(0x031500, 0x031600)
class WarpGate(Production):
code = 0xa101
full_name = "Warp Gate"
train = {
0x030710: 'Zealot',
0x030711: 'Stalker',
0x030713: 'High Templar',
0x030714: 'Dark Templar',
0x030715: 'Sentry',
}
class Forge(GameObject, Building, Protoss):
code = 0x5b01
research = {
0x022500: 'Ground Weapons Level 1',
0x022501: 'Ground Weapons Level 2',
0x022502: 'Ground Weapons Level 3',
code = 0x8d01
class BroodLord(GameObject, Unit, Army):
code = 0x8e01
# Buildings
class SpineCrawler(GameObject, Building, Zerg):
code = 0x7e01
@Mode(0x033600, 0x033810, 0x033801)
class Uprooted(object):
code = 0xa601
class SporeCrawler(GameObject, Building, Zerg):
code = 0x7f01
@Mode(0x033700, 0x033910, 0x033901)
class Uprooted(object):
code = 0xa701
class ZergMain(Production, Main):
abilities = {
0x011b11: 'Set worker rally point',
0x011b21: 'Set worker rally target',
0x011b10: 'Set unit rally point',
0x011b20: 'Set unit rally target',
}
train = {
0x032400: 'Queen',
}
research = {
0x022e03: 'Burrow',
}
class Hatchery(GameObject, ZergMain, Zerg):
code = 0x7201
@Upgrade(0x022b00, 0x022b01)
class Lair(ZergMain):
code = 0x9e01
abilities = {
0x012e00: 'Cancel', # Generic ESC cancel (only seen at PF)
}
class SupplyDepot(GameObject, Building, Terran):
code = 0x2e01
@Mode(0x020e00, 0x020f00)
class Lowered(Building):
code = 0x4b01
class Refinery(GameObject, Building, Terran):
code = 0x2f01
class Barracks(GameObject, Production, Terran):
code = 0x3001
abilities = {
0x02c406: 'Cancel addon',
}
train = {
0x021000: 'Marine',
0x021001: 'Reaper',
0x021002: 'Ghost',
0x021003: 'Marauder',
}
build = {
0x020400: 'Techlab',
0x020401: 'Reactor',
}
@Mode(0x020500, 0x020d10)
class Flying(Moveable):
@Transport(0x020001, None, 0x020033, 0x20020)
class Bunker(GameObject, Building, Terran):
code = 0x3301
abilities = {
0x032100: 'Salvage',
0x032f20: 'Attack',
0x033000: 'Stimpack',
0x033300: 'Stop'
}
class SensorTower(GameObject, Building, Terran):
code = 0x3401
class MissileTurret(GameObject, Building, Terran):
code = 0x3201
class Factory(GameObject, Production, Terran):
code = 0x3601
train = {
0x021101: 'Siege Tank',
0x021104: 'Thor',
0x021105: 'Hellion',
}
build = {
0x020600: 'Build Techlab',
0x020601: 'Build Reactor',
}
abilities = {
0x020700: 'Set rally point',
0x02c606: 'Cancel addon',
}
@Mode(0x020700, 0x020a10)
class Flying(Moveable):