Simple property request: unit pollution_to_join_attack
Posted: Tue Mar 19, 2019 8:15 pm
For the units (specifically biter and spitters), I can access the property pollution_to_join_attack in data.lua.
But currently I cannot access it in control.lua.
For example:
Usage:
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
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