This commit is contained in:
@@ -34,8 +34,7 @@ int8_t CreatureLib::Library::SpeciesVariant::GetTalentIndex(std::string talent)
|
||||
if (i != _secretTalents.end()){
|
||||
return std::distance(_secretTalents.begin(), i);
|
||||
}
|
||||
//TODO: implement better exception.
|
||||
throw;
|
||||
throw CreatureException("The given talent is not a valid talent for this creature.");
|
||||
}
|
||||
|
||||
int8_t CreatureLib::Library::SpeciesVariant::GetRandomTalent(CreatureLib::Core::Random *rand) const {
|
||||
|
||||
Reference in New Issue
Block a user