BurnySc2 / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
509 stars 157 forks source link

Ability names #185

Open vojtechBobcik opened 1 year ago

vojtechBobcik commented 1 year ago

AbilityID names does not correspond with ingame abbility names .. is there any way to connect those names together ? or give some key value table ?

BurnySc2 commented 11 months ago

You should be able to produce some kind of mapping (via identical enum values aka ability IDs) here: https://github.com/BurnySc2/python-sc2/blob/7b4a3d56070dca6cf08ea592d3c3b6363a5a1897/sc2/game_data.py#L30-L35 An instance of this class is accessible through the bot instance via self.game_data e.g. self.game_data.abilities.