Request: Add LuaEntityPrototype.ammo_category to turrets
Posted: Sat Dec 07, 2024 2:04 pm
Hello,
Currently ammo_category only works for landmines, for now I made a map from name of entity to turret type, however this is not scalable to other mods;
https://lua-api.factorio.com/latest/cla ... o_category
If there is another way to get it and have overlooked it please let me know as well.
Currently ammo_category only works for landmines, for now I made a map from name of entity to turret type, however this is not scalable to other mods;
- Rocket turret and Gun turret both have the type ammo-turret and therefore need to look at the name.
- You cannot split the "gun" part of gun-turret name because the ammo type is "bullet"; string.match(CopyFromName, "(%a+)%-turret")
https://lua-api.factorio.com/latest/cla ... o_category
If there is another way to get it and have overlooked it please let me know as well.