How to use the sc2reader.old_data.Army function in sc2reader

To help you get started, we’ve selected a few sc2reader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
code = 0x9d01
    spells = {
        0x011000: 'Changeling',
        0x040320: 'Contaminate',
    }
class Mutalisk(GameObject, Unit, Army, Zerg):
    code = 0x8801
class Corruptor(GameObject, Unit, Army, Zerg):
    code = 0x8c01
    spells = {
        0x003120: 'Corruption',
    }
    @Mode(0x023300, 0x023301)
    class BroodLordCocoon(object):
        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',
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
0x032210: 'EMP Round',
        0x013620: 'Sniper Round',
        0x031f10: 'Tactical Nuclear Strike',
    }

# Factory
class Hellion(GameObject, Unit, Army, Terran):
    code = 0x5101

class SiegeTank(GameObject, Unit, Army, Terran):
    code = 0x3d01
    @Mode(0x013800, 0x013900)
    class Sieged(Army):
        code = 0x3c01

class Thor(GameObject, Unit, Army, Terran):
    code = 0x5001
    spells = {
        0x012320: '250mm Strike Cannons',
    }

# Starport
class Viking(GameObject, Unit, Army, Terran):
    code = 0x3e01
    @Mode(0x013e00, 0x013f00)
    class Landed(Unit, Army):
        code = 0x3f01

# all, all(moving), unload unit, load unit
@Transport(0x013b12, 0x013b22, 0x013b33, 0x013b20)
class Medivac(GameObject, Unit, Army, Terran):
    code = 0x5201
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
0x003900: 'Toggle Auto-Repair',
        0x003920: 'Repair',
    }
# Barracks
class Marine(GameObject, Army, Terran):
    code = 0x4c01
    abilities = {
        0x013400: 'Use Stimpack (mixed)',
    }
class Marauder(GameObject, Unit, Army, Terran):
    code = 0x4f01
    abilities = {
        0x013400: 'Use Stimpack (mixed)',
        0x012100: 'Use Stimpack',
    }
class Reaper(GameObject, Unit, Army, Terran):
    code = 0x4d01

@Cloak(0x013500, 0x013501)
class Ghost(GameObject, Unit, Army, Terran):
    code = 0x4e01
    abilities = {
        0x003200: 'Hold fire',
        0x003300: 'Weapons free',
        0x031f01: 'Cancel Tactical Nuclear Strike',
    }
    spells = {
        0x032210: 'EMP Round',
        0x013620: 'Sniper Round',
        0x031f10: 'Tactical Nuclear Strike',
    }
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
code = 0x3d01
    @Mode(0x013800, 0x013900)
    class Sieged(Army):
        code = 0x3c01

class Thor(GameObject, Unit, Army, Terran):
    code = 0x5001
    spells = {
        0x012320: '250mm Strike Cannons',
    }

# Starport
class Viking(GameObject, Unit, Army, Terran):
    code = 0x3e01
    @Mode(0x013e00, 0x013f00)
    class Landed(Unit, Army):
        code = 0x3f01

# all, all(moving), unload unit, load unit
@Transport(0x013b12, 0x013b22, 0x013b33, 0x013b20)
class Medivac(GameObject, Unit, Army, Terran):
    code = 0x5201
    spells = {
        0x013700: 'Toggle Auto-Heal',
        0x020803: 'Heal'
    }

class Raven(GameObject, Unit, SpellCaster, Terran, Detector):
    code = 0x5401
    spells = {
        0x033b10: 'Auto Turret',
        0x003e10: 'Point Defense Drone',
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
class Burrowed(object):
        code = 0x8f01
class Roach(GameObject, Unit, Army, Zerg):
    code = 0x8a01
    @Mode(0x023a00, 0x023b00)
    class Burrowed(Moveable):
        code = 0x9201
        move = {
            0x033200: 'Stop', # XXX what else?
        }
class Hydralisk(GameObject, Unit, Army, Zerg):
    code = 0x8701
    @Mode(0x023800, 0x023900)
    class Burrowed(object):
        code = 0x9101
class Infestor(GameObject, Unit, Army, Zerg):
    code = 0x8b01
    spells = {
        0x003710: 'Fungal Growth',
        0x011e10: 'Infested Terran',
        0x011f20: 'Neural Paraiste',
    }
    @Mode(0x030c00, 0x030d00)
    class Burrowed(Moveable):
        code = 0x9b01
class Ultralisk(GameObject, Unit, Army, Zerg):
    code = 0x8901
    @Mode(0x031200, 0x031300)
    class Burrowed(object):
        code = 0x9f01

class Broodling(GameObject, Unit, Zerg):
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
class WarpPrism(GameObject, Unit, Army, Protoss):
    code = 0x6d01
    @Mode(0x031a00, 0x031b00)
    class Phasing(object):
        code = 0xa401
class Phoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a01
    abilities = {
        0x010c01: 'Cancel Graviton Beam',
    }
    spells = {
        0x010c20: 'Graviton Beam',
    }
class VoidRay(GameObject, Unit, Army, Protoss):
    code = 0x6c01
class Carrier(GameObject, Unit, Army, Protoss):
    code = 0x6b01
    train = {
        0x022400: 'Interceptor',
    }
class Mothership(GameObject, Unit, Army, Protoss):
    code = 0x2401
    spells = {
        0x032310: 'Vortex',
        0x003d10: 'Mass Recall',
    }
class HallucinatedImmortal(GameObject, Unit, Army, Protoss):
    code = 0x6f02
class HallucinatedColossus(GameObject, Unit, Army, Protoss):
    code = 0x1d02
class HallucinatedPhoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a02
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
}
    @Upgrade(0x033c00, 0x0) # TODO: cancel code?
    class Archon(Unit, Army, Protoss):
        code = 0xa801
        abilities = {
            0x011810: 'Set rally point', # while morphing
        }

class DarkTemplar(GameObject, Unit, Army, Protoss):
    code = 0x6801
    @Upgrade(0x033c00, 0x0) # TODO: cancel code?
    class Archon(GameObject, Unit, Army, Protoss):
        code = 0xa801
class Immortal(GameObject, Unit, Army, Protoss):
    code = 0x6f01
class Colossus(GameObject, Unit, Army, Protoss):
    code = 0x1d01
class Observer(GameObject, Unit, Detector, Protoss):
    code = 0x6e01

@Transport(0x021c12, 0x021c22, 0x021c33, 0x021c20)
class WarpPrism(GameObject, Unit, Army, Protoss):
    code = 0x6d01
    @Mode(0x031a00, 0x031b00)
    class Phasing(object):
        code = 0xa401
class Phoenix(GameObject, Unit, Army, Protoss):
    code = 0x6a01
    abilities = {
        0x010c01: 'Cancel Graviton Beam',
    }
    spells = {
github GraylinKim / sc2reader / sc2reader / old_data.py View on Github external
code = 0x5101

class SiegeTank(GameObject, Unit, Army, Terran):
    code = 0x3d01
    @Mode(0x013800, 0x013900)
    class Sieged(Army):
        code = 0x3c01

class Thor(GameObject, Unit, Army, Terran):
    code = 0x5001
    spells = {
        0x012320: '250mm Strike Cannons',
    }

# Starport
class Viking(GameObject, Unit, Army, Terran):
    code = 0x3e01
    @Mode(0x013e00, 0x013f00)
    class Landed(Unit, Army):
        code = 0x3f01

# all, all(moving), unload unit, load unit
@Transport(0x013b12, 0x013b22, 0x013b33, 0x013b20)
class Medivac(GameObject, Unit, Army, Terran):
    code = 0x5201
    spells = {
        0x013700: 'Toggle Auto-Heal',
        0x020803: 'Heal'
    }

class Raven(GameObject, Unit, SpellCaster, Terran, Detector):
    code = 0x5401