Page 1 of 1

Simple property request: unit pollution_to_join_attack

Posted: Tue Mar 19, 2019 8:15 pm
by Schallfalke
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:

Code: Select all

game.entity_prototypes[unit].localised_name ← Work
game.entity_prototypes[unit].pollution_to_join_attack ← Gives error
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

Re: Simple property request: unit pollution_to_join_attack

Posted: Mon Mar 25, 2019 8:12 pm
by Bilka
Okay, added for the next version along with a bunch of other unit prototype properties.