Tile Prototype decorative_removal_probability incorrect default value
Posted: Fri Aug 30, 2019 9:28 am
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
returns 0.
The actual behavior also matches the 0, as no decoratives are removed when placing these tiles.
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)
The actual behavior also matches the 0, as no decoratives are removed when placing these tiles.