mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Added config setting
Added a config setting to allow players to disable pets consuming imagination. This value defaults to zero as a feature of DLU.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "../dWorldServer/ObjectIDManager.h"
|
||||
|
||||
#include "Game.h"
|
||||
#include "dConfig.h"
|
||||
#include "dChatFilter.h"
|
||||
#include "Database.h"
|
||||
|
||||
@@ -985,6 +986,8 @@ void PetComponent::Activate(Item* item, bool registerPet)
|
||||
}
|
||||
|
||||
void PetComponent::AddDrainImaginationTimer(Item* item) {
|
||||
if (Game::config->GetValue("pets_imagination") == "0") return;
|
||||
|
||||
auto playerInventory = item->GetInventory();
|
||||
if (!playerInventory) return;
|
||||
|
||||
|
Reference in New Issue
Block a user