diff --git a/dGame/dComponents/PetComponent.cpp b/dGame/dComponents/PetComponent.cpp index d1ddc9a3..f3ba71d9 100644 --- a/dGame/dComponents/PetComponent.cpp +++ b/dGame/dComponents/PetComponent.cpp @@ -896,12 +896,12 @@ void PetComponent::OnInteract() { switch (GetInteractType()) { case PetInteractType::bouncer: - if (GetIsReadyToInteract()) LOG_DEBUG("Add the HandleInteractBouncer()!"); + if (IsReadyToInteract()) LOG_DEBUG("Add the HandleInteractBouncer()!"); else SetupInteractBouncer(); break; case PetInteractType::treasure: - if (GetIsReadyToInteract()) HandleInteractTreasureDig(); + if (IsReadyToInteract()) HandleInteractTreasureDig(); else SetupInteractTreasureDig(); break; diff --git a/dGame/dComponents/PetComponent.h b/dGame/dComponents/PetComponent.h index 1adc527d..dcad34c1 100644 --- a/dGame/dComponents/PetComponent.h +++ b/dGame/dComponents/PetComponent.h @@ -272,7 +272,7 @@ public: /** * @return is pet ready to interact with an object */ - bool GetIsReadyToInteract() { return m_ReadyToInteract; }; + bool IsReadyToInteract() { return m_ReadyToInteract; }; /** * Set up the pet bouncer interaction diff --git a/dScripts/02_server/Map/General/PetDigServer.cpp b/dScripts/02_server/Map/General/PetDigServer.cpp index e3c5bbe4..ffd23cdc 100644 --- a/dScripts/02_server/Map/General/PetDigServer.cpp +++ b/dScripts/02_server/Map/General/PetDigServer.cpp @@ -108,7 +108,7 @@ void PetDigServer::OnUse(Entity* self, Entity* user) { auto* petComponent = PetComponent::GetActivePet(user->GetObjectID()); if (!petComponent) return; - if(petComponent->GetIsReadyToInteract()) { // TODO: Add handling of the "first time" dig message + if(petComponent->IsReadyToInteract()) { // TODO: Add handling of the "first time" dig message auto* destroyableComponent = user->GetComponent(); if (!destroyableComponent) return;