Initial commit
This commit is contained in:
9
src/Library/GrowthRates/GrowthRateLibrary.cpp
Normal file
9
src/Library/GrowthRates/GrowthRateLibrary.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user