Document allowable equipment types

Place to report issues and suggest improvements to the API documentation.
robot256
Smart Inserter
Smart Inserter
Posts: 1380
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Document allowable equipment types

Post by robot256 »

I could be missing it, but it seems like the fastest way to tell what values LuaEquipment::type or LuaEquipmentPrototype::type can take is to go to [EquipmentPrototype](https://lua-api.factorio.com/latest/pro ... otype.html) and expand the list of children prototypes. I was trying to use LuaPrototypes::find_equipment_filtered() with the 'type' filter and it took me way too long to find that what I was looking for was "inventory-bonus-equipment".

It would be really nice to have a direct reference to that list in LuaPrototypes::find_equipment_filtered(), LuaEquipment::type and LuaEquipmentPrototype::type.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Post Reply

Return to “Documentation Improvement Requests”