LuaSurface::find_decoratives_filtered radius parameter

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Galista
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon May 17, 2021 7:52 am
Contact:

LuaSurface::find_decoratives_filtered radius parameter

Post by Galista »

There is an inconsistency regarding LuaSurface::find_*_filtered functions:

- LuaSurface::find_entities_filtered accept a radius parameter.
- LuaSurface::find_tiles_filtered accept a radius parameter.
- LuaSurface::find_decoratives_filtered does not accept a radius parameter.

Also, with the recent addition of LuaEntityPrototype::spawn_decoration [R] (thank you Rseding91 btw ;)) which are expressed with CreateDecorativesTriggerEffectItem::spawn_min_radius and CreateDecorativesTriggerEffectItem::spawn_max_radius it doesn't make sense to not have a circular search with the LuaSurface::find_decoratives_filtered function.

Post Reply

Return to “Modding interface requests”