ggtracker / sc2reader

Extracts gameplay information from Starcraft II replay files
http://pypi.python.org/pypi/sc2reader
MIT License
145 stars 144 forks source link

Feature request: Make upgrade cost accessible #75

Open Alexander-Hjelm opened 5 years ago

Alexander-Hjelm commented 5 years ago

As of today there is no way to access the mineral/vespene cost of upgrades and research.

Initiating an upgrade is represented as a BasicCommandEvent, which exposes no details about the ability that was triggered (compare this to UnitInitEvent which exposes the related unit and it's cost).

Is there a way to access the resource cost of the upgrade, or is this feature to be implemeted?

If you would share how/where the cost is fetched for a unit, then I'd be more than happy to implement a similar feature for upgrades.