From 2e224cb15111bcbfcf5b1e6238f71699a8c7a049 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 18 Jun 2022 13:25:34 -0700 Subject: [PATCH] update name Pets will take imagination by default now --- dGame/dComponents/InventoryComponent.cpp | 2 +- dGame/dComponents/PetComponent.cpp | 2 +- resources/worldconfig.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dGame/dComponents/InventoryComponent.cpp b/dGame/dComponents/InventoryComponent.cpp index b7eae8bf..e47f5bb5 100644 --- a/dGame/dComponents/InventoryComponent.cpp +++ b/dGame/dComponents/InventoryComponent.cpp @@ -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(); - 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; } diff --git a/dGame/dComponents/PetComponent.cpp b/dGame/dComponents/PetComponent.cpp index 23dcf5e6..d54087aa 100644 --- a/dGame/dComponents/PetComponent.cpp +++ b/dGame/dComponents/PetComponent.cpp @@ -986,7 +986,7 @@ void PetComponent::Activate(Item* item, bool registerPet, bool fromTaming) } void PetComponent::AddDrainImaginationTimer(Item* item, bool fromTaming) { - if (Game::config->GetValue("pets_imagination") != "1") return; + if (Game::config->GetValue("pets_take_imagination") != "1") return; auto playerInventory = item->GetInventory(); if (!playerInventory) return; diff --git a/resources/worldconfig.ini b/resources/worldconfig.ini index bba17b38..a665f059 100644 --- a/resources/worldconfig.ini +++ b/resources/worldconfig.ini @@ -59,4 +59,4 @@ check_fdb=0 classic_survival_scoring=0 # If this value is 1, pets will consume imagination as they did in live. if 0 they will not consume imagination at all. -pets_imagination=0 +pets_take_imagination=1