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

Upgrade costs calculated incorrectly

Open ericbroda opened this issue 6 years ago • 0 comments

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>

ericbroda avatar Dec 29 '18 21:12 ericbroda