Modding the "work to build" value.

Started by ilikerimworld, February 14, 2019, 07:54:22 AM

Previous topic - Next topic

ilikerimworld

I want to increase the time it takes to build traps significantly.

The value on the wiki and in game are "work to build = 54 (base) and = 38 (wood)".

However when I look at the xml file RimWorld\64 Bit\Mods\Core\Defs\ThingDefs_Buildings\Buildings_Security.xml, the value is "<WorkToBuild>3200</WorkToBuild>". Other values like health match the wiki and in game.

Am I looking at the wrong file?

AileTheAlien

#1
The values in the XML are 60 times larger than the values displayed in-game. I believe it's ticks in XML (60 ticks per second), instead of the number of seconds that's shown to the player?

ilikerimworld

54 x 60 = 3240. Close. That's probably it. Thanks.

I only need to use the PatchOperationReplace command to change that value right?

AileTheAlien

Yup, that should be what you need if you're just changing a single value.