Stone Smoothing - How would one change how long this job takes?

Started by Neceros, September 09, 2018, 06:55:57 PM

Previous topic - Next topic

Neceros

Stone Smoothing - How would one change how long this job takes?

Appreciate any help!

I found the WorkGiver and the ThingDef for smoothed stone, but can't figure out where the job duration is.

jamaicancastle

Unfortunately this can't be done in XML. The duration is set explicitly in the C# classes JobDriver_SmoothFloor and JobDriver_SmoothWall, in their respective BaseWorkAmount attributes. If you're comfortable with C# modding, it should be possible to patch the attributes that hold these values fairly seamlessly.

Another, somewhat uglier option would be to modify the SmoothingSpeed statdef, which is used by these two jobs and (as far as I can tell) no others. You can increase or decrease this stat's factors to adjust how long the jobs will actually take, though the "work remaining" value won't be affected.