But currently I cannot access it in control.lua.
For example:
Code: Select all
game.entity_prototypes[unit].localised_name ← Work
game.entity_prototypes[unit].pollution_to_join_attack ← Gives error
Want to show the unit (e.g., biters, spitters) pollution_to_join_attack values, due to the new pollution handling.
For modded spawners that have a lot of new alien unit types, the info panel of spawners simply cannot show later entries.
Would be nice if my mod can use these values in a custom GUI table.
Guess it should be under LuaEntityPrototype::pollution_to_join_attack