Page 1 of 1

LuaSurface.find_tiles_filtered needs more detail

Posted: Thu Sep 23, 2021 12:21 am
by Honktown
LuaSurface.find_tiles_filtered

Code: Select all

has_hidden_tile :: boolean (optional)
Was looking at this and wasn't sure if it would mean: must vs can have a hidden tile (true), must not (false), and the default, tiles with and without hidden tiles ("doesn't matter") or does not have a hidden tile? (false) .

There are some other same/similar parameters in other functions:
count_entities_filtered
to_be_deconstructed :: boolean (optional)
to_be_upgraded :: boolean (optional)

count_tiles_filtered has another has_hidden_tile

Re: Documentation Improvement Requests

Posted: Sun Apr 23, 2023 5:56 pm
by Honktown
find_tiles_filtered
A small request for clarification on "force". Tiles don't have forces, and a tile ghost is a LuaEntity (as well as a decon proxy). Is force used in the context of returning tile ghosts, tiles with deconstruction proxies?

-- edit (boskid):
Note: `force` parameter is only used if `to_be_deconstructed` or `has_tile_ghost` is also used as those require a related entity searches.