update name

Pets will take imagination by default now
This commit is contained in:
EmosewaMC
2022-06-18 13:25:34 -07:00
parent 2a0616d0e9
commit 2e224cb151
3 changed files with 3 additions and 3 deletions

View File

@@ -1355,7 +1355,7 @@ void InventoryComponent::SpawnPet(Item* item)
// First check if we can summon the pet. You need 1 imagination to do so.
auto destroyableComponent = m_Parent->GetComponent<DestroyableComponent>();
if (Game::config->GetValue("pets_imagination") == "1" && destroyableComponent && destroyableComponent->GetImagination() <= 0) {
if (Game::config->GetValue("pets_take_imagination") == "1" && destroyableComponent && destroyableComponent->GetImagination() <= 0) {
GameMessages::SendUseItemRequirementsResponse(m_Parent->GetObjectID(), m_Parent->GetSystemAddress(), UseItemResponse::NoImaginationForPet);
return;
}