python-sc2 icon indicating copy to clipboard operation
python-sc2 copied to clipboard

Ability names

Open vojtechBobcik opened this issue 1 year ago • 1 comments

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

vojtechBobcik avatar Nov 21 '23 00:11 vojtechBobcik

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.

BurnySc2 avatar Nov 30 '23 05:11 BurnySc2