Decrease rate at which rest diminishes?

Started by TheFlameTouched, May 15, 2016, 03:10:09 PM

Previous topic - Next topic

TheFlameTouched

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.

skullywag

RimWorld.Need_Rest has the info you require.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

TheFlameTouched

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?

skullywag

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.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

TheFlameTouched

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.