Side Effect - Permanent duration stages causes nullification
Opened this issue ยท 0 comments
Describe the bug
If side effect duration is set to -1, gaining the effect any other way is nullified every time fatigue ticks/updates. This happens with the default slowness, or any other custom rule (whenever set to permanent).
Is this bug related to another mod?
No. Can be reproduced with Somnia alone, and default config.
Steps to reproduce
- Install Somnia
- Enter survival
- Use slowness potion while in low fatigue
- Wait a few seconds
- Slowness disappears
- Can be reproduced with any side effects when duration is set to -1 (permanent)
Expected Behavior
The fatigue, or lack of thereof, should not affect other sources of the effect.
The time should run off normally, and probably only be affected/reset when the fatigue side effects starts it and/or when you sleep.
I would expect the non fatigued state to simple not reapply the effect, rather than directly erasing it.
Additional context
This issue of nullification (as #32) resurfaced after the rework of the side effect config (update Somnia Awoken 2.1 Beta forward).