Dentosal / python-sc2

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

Upgrade costs calculated incorrectly #188

Open ericbroda opened 5 years ago

ericbroda commented 5 years ago

The following are the calculated costs from the game data:

cost = bot._game_data.calculate_ability_cost(x.creation_ability)

    where returned / calculated cost is a tuple: (minerals, vespene)

A few of the costs are calculated incorrectly:

UpgradeId.PROTOSSAIRWEAPONSLEVEL1, cost: Cost(150, 100)
UpgradeId.PROTOSSAIRWEAPONSLEVEL2, cost: Cost(350, 250)   # INCORRECT
UpgradeId.PROTOSSAIRWEAPONSLEVEL3, cost: Cost(250, 150)    # INCORRECT

UpgradeId.PROTOSSAIRARMORSLEVEL1, cost: Cost(200, 0)
UpgradeId.PROTOSSAIRARMORSLEVEL2, cost: Cost(25, 75)    # INCORRECT
UpgradeId.PROTOSSAIRARMORSLEVEL3, cost: Cost(250, 100)

The following ids are provided for reference:

<UpgradeId.PROTOSSAIRWEAPONSLEVEL1: 78>
<UpgradeId.PROTOSSAIRWEAPONSLEVEL2: 79>
<UpgradeId.PROTOSSAIRWEAPONSLEVEL3: 80>
<UpgradeId.PROTOSSAIRARMORSLEVEL1: 81>
<UpgradeId.PROTOSSAIRARMORSLEVEL2: 82>
<UpgradeId.PROTOSSAIRARMORSLEVEL3: 83>