diff --git a/src/Battling/Models/CreateCreature.cpp b/src/Battling/Models/CreateCreature.cpp index af3be84..2c5f59a 100644 --- a/src/Battling/Models/CreateCreature.cpp +++ b/src/Battling/Models/CreateCreature.cpp @@ -36,7 +36,7 @@ Creature* CreateCreature::Create() { auto species = this->_library->GetSpeciesLibrary()->Get(this->_species.GetHash()); auto variant = species->GetVariant(this->_variant); Library::TalentIndex talent; - if (this->_talent.Empty()) { + if (this->_talent.IsEmpty()) { talent = variant->GetRandomTalent(rand); } else { talent = variant->GetTalentIndex(this->_talent); @@ -50,7 +50,7 @@ Creature* CreateCreature::Create() { gender = species->GetRandomGender(rand); } ArbUt::BorrowedPtr heldItem; - if (!this->_heldItem.Empty()) { + if (!this->_heldItem.IsEmpty()) { if (!_library->GetItemLibrary()->TryGet(this->_heldItem.GetHash(), heldItem)) { THROW_CREATURE("Invalid held item '" << this->_heldItem.c_str() << "'."); } diff --git a/src/Library/Attacks/AttackData.hpp b/src/Library/Attacks/AttackData.hpp index 0e24973..e227794 100644 --- a/src/Library/Attacks/AttackData.hpp +++ b/src/Library/Attacks/AttackData.hpp @@ -38,7 +38,7 @@ namespace CreatureLib::Library { inline AttackTarget GetTarget() const noexcept { return _target; } inline int8_t GetPriority() const noexcept { return _priority; } inline bool HasSecondaryEffect() const noexcept { - return _effect != nullptr && !_effect->GetEffectName().Empty(); + return _effect != nullptr && !_effect->GetEffectName().IsEmpty(); } inline const std::unique_ptr& GetSecondaryEffect() const noexcept { return _effect; }