mirror of
https://github.com/Squareville/wonderland-server.git
synced 2026-01-06 04:40:11 -06: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