game_data.py#
- class sc2.game_data.AbilityData(game_data, proto) None [source]#
- property button_name: str#
For Stimpack this returns ‘Stimpack’
- property friendly_name: str#
For Stimpack this returns ‘Research Stimpack’
- property link_name: str#
For Stimpack this returns ‘BarracksTechLabResearch’
- class sc2.game_data.UnitTypeData(game_data: GameData, proto) None [source]#
- Parameters:
game_data (
GameData
)
- property cargo_size: int#
How much cargo this unit uses up in cargo_space
- property cost_zerg_corrected: Cost#
This returns 25 for extractor and 200 for spawning pool instead of 75 and 250 respectively
- property footprint_radius: float | None#
See unit.py footprint_radius
- property tech_alias: list[UnitTypeId] | None#
Building tech equality, e.g. OrbitalCommand is the same as CommandCenter Building tech equality, e.g. Hive is the same as Lair and Hatchery For Hive, this returns [UnitTypeId.Hatchery, UnitTypeId.Lair] For SCV, this returns None
- property tech_requirement: UnitTypeId | None#
Tech-building requirement of buildings - may work for units but unreliably
- property unit_alias: UnitTypeId | None#
Building type equality, e.g. FlyingOrbitalCommand is the same as OrbitalCommand