CreatureLib/src/Library/GrowthRates/GrowthRateLibrary.cpp

10 lines
423 B
C++

#include "GrowthRateLibrary.hpp"
uint8_t CreatureLib::Library::GrowthRateLibrary::CalculateLevel(const std::string &growthRate, uint32_t experience) const {
return _growthRates.at(growthRate)->CalculateLevel(experience);
}
uint32_t CreatureLib::Library::GrowthRateLibrary::CalculateExperience(const std::string &growthRate, uint8_t level) const {
return _growthRates.at(growthRate)->CalculateExperience(level);
}