diff --git a/CInterface/Battling/Creature.cpp b/CInterface/Battling/Creature.cpp index 3622d62..265c901 100644 --- a/CInterface/Battling/Creature.cpp +++ b/CInterface/Battling/Creature.cpp @@ -18,6 +18,7 @@ export uint8_t CreatureLib_Creature_Construct(Creature*& out, const BattleLibrar export void CreatureLib_Creature_Destruct(const Creature* p) { delete p; } +BORROWED_GET_FUNC(Creature, GetLibrary, const CreatureLib::Battling::BattleLibrary*); BORROWED_GET_FUNC(Creature, GetSpecies, const CreatureLib::Library::CreatureSpecies*); BORROWED_GET_FUNC(Creature, GetVariant, const CreatureLib::Library::SpeciesVariant*); diff --git a/src/Battling/Models/Creature.hpp b/src/Battling/Models/Creature.hpp index 2e24cdf..f6933c3 100644 --- a/src/Battling/Models/Creature.hpp +++ b/src/Battling/Models/Creature.hpp @@ -80,6 +80,7 @@ namespace CreatureLib::Battling { _currentHealth = GetBoostedStat(Library::Statistic::Health); } + inline const ArbUt::BorrowedPtr& GetLibrary() const noexcept { return _library; } inline const ArbUt::BorrowedPtr& GetSpecies() const noexcept { return _species; }