Pretty simple effect, increases or decreases the endurance pool,
Spirit of Determination.
client mobs.cpp
Code:
Index: client_mods.cpp
===================================================================
--- client_mods.cpp (revision 1604)
+++ client_mods.cpp (working copy)
@@ -1773,9 +1773,26 @@
void Client::CalcMaxEndurance()
{
max_end = CalcBaseEndurance() + spellbonuses.Endurance + itembonuses.Endurance;
+
+ int slot = GetBuffSlotFromType(SE_EndurancePool);
+ if(slot >= 0)
+ {
+ for(int i = 0; i < EFFECT_COUNT; i++)
+ {
+ if (spells[buffs[slot].spellid].effectid[i] == SE_EndurancePool)
+ {
+ max_end += spells[buffs[slot].spellid].base[i];
+ }
+ }
+ }
+
if (cur_end > max_end) {
cur_end = max_end;
}
+ if (max_end < 0) {
+ max_end = 0;
+ }
+
}
sint32 Client::CalcBaseEndurance()