| 289 | std::max(0, level-1) * this->upgradeTimeFactor(); |
| 290 | } |
| 291 | int UpgradeType::upgradeTimeFactor() const |
| 292 | { |
| 293 | return defaultTimeCostFactor[this->getID()]; |
| 294 | } |
| 295 | UnitType UpgradeType::whatUpgrades() const |
| 296 | { |
| 297 | return upgradeInternalWhat::whatUpgrades[this->getID()]; |