Tile Prototype decorative_removal_probability incorrect default value

This subforum contains all the issues which we already resolved.
Post Reply
ShadowGlass
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Sat Aug 27, 2016 1:50 pm
Contact:

Tile Prototype decorative_removal_probability incorrect default value

Post 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.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Tile Prototype decorative_removal_probability incorrect default value

Post by posila »

You are correct. I fixed the wiki.
The documentation is manually maintained by Bilka and this changed in 0.17.

Post Reply

Return to “Resolved Problems and Bugs”