how can i change smooth stone floors?

Started by letsdance, October 31, 2015, 07:35:58 AM

Previous topic - Next topic

letsdance

currently just smoothing the stone is better than any floor. but i couldn't find the smooth floor stats in the defs. does anyone know where it is or how to mod it?

Latta

It is not possible to change those via XML as they are generated dynamically. Search within your decompiler with this keyword: ThingDefGenerator

1000101

What I ended up doing was changing most of the other floors (those with xml defs) in relation to the smooth floors (which has hard coded values in it's def generator).  It's a small and easy enough mod to do yourself.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

RawCode

They generated at runtime, but, you may modify any value after implied defs are resolved.

            TerrainDef tz = DefDatabase<TerrainDef>.GetNamed("Sandstone_Smooth");
            tz.fertility = 99999;


at ResolveReferences() stage or later