Page 1 of 1

Tile Prototype decorative_removal_probability incorrect default value

Posted: Fri Aug 30, 2019 9:28 am
by ShadowGlass
This is admittedly a very small issue, but maybe it's also very easy to fix.
I don't know if this is a documentation bug, or game bug, but the documentation doesn't match the game behavior.

The documentation claims that the default value of decorative_removal_probability is 1.0. But if this property is not specified in a tile prototype added by a mod, it actually defaults to 0.0.

The example I've tested is from the "pyindustry" mod (version 1.3.3). I've searched the mod files, and decorative_removal_probability is not specified anywhere. But in the game

Code: Select all

/c game.player.print(game.tile_prototypes["py-asphalt"].decorative_removal_probability)
returns 0.
The actual behavior also matches the 0, as no decoratives are removed when placing these tiles.

Re: Tile Prototype decorative_removal_probability incorrect default value

Posted: Fri Aug 30, 2019 9:35 am
by posila
You are correct. I fixed the wiki.
The documentation is manually maintained by Bilka and this changed in 0.17.