PDA

View Full Version : 5E - Exhaustion on Long Rest



mattekure
January 10th, 2022, 16:05
In 5E, When issuing a long rest the EXHAUSTION effect auto deprecates for NPCs, but does not for PCs.

This code exists in the CombatManager2.resetHealth() for NPC resting, but similar code is not in the CharManager.resetHealth()



local nExhaustMod = EffectManager5E.getEffectsBonus(ActorManager.resol veActor(nodeCT), {"EXHAUSTION"}, true);
if nExhaustMod > 0 then
nExhaustMod = nExhaustMod - 1;
EffectManager5E.removeEffectByType(nodeCT, "EXHAUSTION");
if nExhaustMod > 0 then
EffectManager.addEffect("", "", nodeCT, { sName = "EXHAUSTION: " .. nExhaustMod, nDuration = 0 }, false);
end
end

Moon Wizard
January 10th, 2022, 19:13
Thanks, I'll add to the PC long rest code for the next ruleset update.

Regards,
JPG