Simple property request: unit pollution_to_join_attack

Post Reply
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

Simple property request: unit pollution_to_join_attack

Post 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

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Simple property request: unit pollution_to_join_attack

Post by Bilka »

Okay, added for the next version along with a bunch of other unit prototype properties.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”