Somnia Awoken

Somnia Awoken

27.3k Downloads

Side Effect - Permanent duration stages causes nullification

Opened this issue ยท 0 comments

commented

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

  1. Install Somnia
  2. Enter survival
  3. Use slowness potion while in low fatigue
  4. Wait a few seconds
  5. Slowness disappears
  6. 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).