Interrupt Rest

Discuss modding questions and implementation details.
Post Reply
User avatar
Posts: 969
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Interrupt Rest

Post by Ralzar » Mon Mar 23, 2020 3:09 pm

I am currently working on a mod that will at times apply fatigue or damage to player while resting. This leads to some unelegant behaviour in the game as it pops out to textboxes several times while not allowing you to stop resting.

The same behaviour will sometimes happen when you are poisoned and diseased and try to rest.

So I am looking for some way to interrupt Resting in the same way as "There are enemies nearby". But obviously without that textbox.

From what I can see, everything even semi-relevant is private or protected. It would be really helpful for me, and future mods, if there was a simple public boolean that let you do InterruptRest = true;

Edit: relevant code in DFU: ... tWindow.cs
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."

User avatar
Posts: 150
Joined: Tue Nov 06, 2018 7:06 am

Re: Interrupt Rest

Post by Magicono43 » Mon Mar 23, 2020 7:14 pm

Interesting, I'd like to keep tabs on this topic as well. Nothing useful to add to it, but am interested.

Post Reply