void CreatureAttributes::increaseExpLevel(double increase) {
  double l = getExpLevel();
  for (int i : Range(100000)) {
    exerciseAttr(Random.choose<AttrType>(), 0.05);
    if (getExpLevel() >= l + increase)
      break;
  }
}
Beispiel #2
0
void
Player::printStats(){
	std::cout << "Player Stats:\n";
	std::cout << "- Health: " << getHealth() << "\n";
	std::cout << "- EXP Level: " << getExpLevel() << "\n";
	std::cout << "- RAGE Level: " << getRageLevel() << "\n\n";
}
bool CreatureAttributes::isTrainingMaxedOut(ExperienceType type) const {
  return getExpLevel(type) >= maxLevelIncrease[type];
}