Ludeon Forums

RimWorld => Mods => Help => Topic started by: TheFlameTouched on May 15, 2016, 03:10:09 PM

Title: Decrease rate at which rest diminishes?
Post by: TheFlameTouched on May 15, 2016, 03:10:09 PM
I'm struggling to find how to make rest slow down how long it takes reach the point where a pawn has to find a bed. Any help would be appreciated.
Title: Re: Decrease rate at which rest diminishes?
Post by: skullywag on May 15, 2016, 03:53:28 PM
RimWorld.Need_Rest has the info you require.
Title: Re: Decrease rate at which rest diminishes?
Post by: TheFlameTouched on May 15, 2016, 04:17:45 PM
Quote from: skullywag on May 15, 2016, 03:53:28 PM
RimWorld.Need_Rest has the info you require.

I'm not sure I understand what you mean, if you're referring to the section in the Needs.Def file I noticed that it doesn't have a modifiable drain rate like mood. If this is the right place, would I then need to add in the extra fields?
Title: Re: Decrease rate at which rest diminishes?
Post by: skullywag on May 15, 2016, 04:59:12 PM
this is not something you can change in xml, this would need c#, the RimWorld.Need_Rest is th class containing all the code to control this need including things like BaseRestFallPerTick.
Title: Re: Decrease rate at which rest diminishes?
Post by: TheFlameTouched on May 15, 2016, 05:07:31 PM
Quote from: skullywag on May 15, 2016, 04:59:12 PM
this is not something you can change in xml, this would need c#, the RimWorld.Need_Rest is th class containing all the code to control this need including things like BaseRestFallPerTick.

Ah I see now, thanks for pointing that out  :P sadly that's beyond my abilities at the moment.