MCPcopy Create free account
hub / github.com/bwapi/bwapi / mineralPrice

Method mineralPrice

bwapi/BWAPILIB/Source/UpgradeType.cpp:267–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 return upgradeInternalRace::upgradeRaces[this->getID()];
266 }
267 int UpgradeType::mineralPrice(int level) const
268 {
269 return defaultOreCostBase[this->getID()] +
270 std::max(0, level-1) * this->mineralPriceFactor();
271 }
272 int UpgradeType::mineralPriceFactor() const
273 {
274 return defaultOreCostFactor[this->getID()];

Callers

nothing calls this directly

Calls 2

mineralPriceFactorMethod · 0.95
getIDMethod · 0.45

Tested by

no test coverage detected