mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-24 06:23:35 +00:00
function rename
This commit is contained in:
parent
775e4fee9e
commit
2a4cfe3447
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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<DestroyableComponent>();
|
||||
if (!destroyableComponent) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user