configmanager.h
search:
Code:
MAX_PACKETS_PER_SECOND = 30,
add after:
Code:
DECREASE_SPELL_EXHAUST = 31,
configmanager.cpp
search:
Code:
m_confInteger[MAX_PACKETS_PER_SECOND] = getGlobalNumber(L, "maxPacketsPerSecond", 25);
add after:
Code:
m_confInteger[DECREASE_SPELL_EXHAUST] = getGlobalNumber(L, "decreaseSpellExhaust", 0);
config.lua
change the 0 to 1000 for 1 second less exhaustion (don't put a - infront !)
spells.cpp
edit this only, if you want groupCooldown to be effected aswell.
search:
Code:
groupCooldown = pugi::cast<uint32_t>(attr.value());
replace with:
Code:
groupCooldown = (pugi::cast<uint32_t>(attr.value()) - g_config.getNumber(ConfigManager::DECREASE_SPELL_EXHAUST));
edit this only, if you want secondaryGroupCooldown to be effected aswell.
search:
Code:
secondaryGroupCooldown = pugi::cast<uint32_t>(attr.value());
replace with:
Code:
secondaryGroupCooldown = (pugi::cast<uint32_t>(attr.value()) - g_config.getNumber(ConfigManager::DECREASE_SPELL_EXHAUST));
this is for the main exhaustion / cooldown
search:
Code:
cooldown = pugi::cast<uint32_t>(attr.value());
replace with:
Code:
cooldown = (pugi::cast<uint32_t>(attr.value()) - g_config.getNumber(ConfigManager::DECREASE_SPELL_EXHAUST));