Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade costs calculated incorrectly #188

Open
ericbroda opened this issue Dec 29, 2018 · 0 comments
Open

Upgrade costs calculated incorrectly #188

ericbroda opened this issue Dec 29, 2018 · 0 comments
Labels

Comments

@ericbroda
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants