Use Arbutils exception Macros, instead of own ones.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -27,7 +27,7 @@ namespace CreatureLib::Library {
|
||||
inline bool HasAttacksForLevel(uint8_t level) const noexcept { return _learnedByLevel.Has(level); }
|
||||
inline const ArbUt::List<ArbUt::BorrowedPtr<const AttackData>>& GetAttacksForLevel(uint8_t level) const {
|
||||
if (!_learnedByLevel.Has(level)) {
|
||||
THROW_CREATURE("No attacks found for level " << (uint32_t)level << ".");
|
||||
THROW("No attacks found for level " << (uint32_t)level << ".");
|
||||
}
|
||||
return _learnedByLevel.Get(level);
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@ CreatureLib::Library::SpeciesVariant::GetTalentIndex(const ArbUt::StringView& ta
|
||||
return TalentIndex(true, i);
|
||||
}
|
||||
}
|
||||
THROW_CREATURE("The given talent is not a valid talent for this creature.");
|
||||
THROW("The given talent is not a valid talent for this creature.");
|
||||
}
|
||||
Reference in New Issue
Block a user