mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 12:41:55 +00:00 
			
		
		
		
	function rename
This commit is contained in:
		| @@ -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; | ||||
| 		 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jadebenn
					jadebenn