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

Method mineralPriceFactor

bwapi/BWAPILIB/Source/UpgradeType.cpp:272–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 std::max(0, level-1) * this->mineralPriceFactor();
271 }
272 int UpgradeType::mineralPriceFactor() const
273 {
274 return defaultOreCostFactor[this->getID()];
275 }
276 int UpgradeType::gasPrice(int level) const
277 {
278 // Gas price is exactly the same as mineral price

Callers 2

mineralPriceMethod · 0.95
writeUpgradeInfoFunction · 0.80

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected