mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-07-07 04:00:02 +00:00
misc
This commit is contained in:
parent
d42351d1f3
commit
79c26d9330
@ -151,6 +151,14 @@ void PetComponent::OnUse(Entity* originator) {
|
||||
case ePetAbilityType::JumpOnObject: // Bouncer
|
||||
StartInteractBouncer();
|
||||
break;
|
||||
|
||||
default:
|
||||
LOG_DEBUG(
|
||||
"Unhandled pet interaction - Owner: %ld, ePetAbilityType %d",
|
||||
m_Owner,
|
||||
GeneralUtils::ToUnderlying(m_Interaction.ability)
|
||||
);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
StartTamingMinigame(originator);
|
||||
@ -323,7 +331,7 @@ void PetComponent::StartTamingMinigame(Entity* originator) {
|
||||
// Notify the start of a pet taming minigame
|
||||
m_Parent->GetScript()->OnNotifyPetTamingMinigame(m_Parent, originator, ePetTamingNotifyType::BEGIN);
|
||||
|
||||
auto* characterComponent = originator->GetComponent<CharacterComponent>();
|
||||
auto* const characterComponent = originator->GetComponent<CharacterComponent>();
|
||||
if (characterComponent != nullptr) {
|
||||
characterComponent->SetCurrentActivity(eGameActivity::PET_TAMING);
|
||||
Game::entityManager->SerializeEntity(originator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user