This says the biter prototype doesn't have a "pollution_to_join_attack" key:
Code: Select all
local quantity = math.ceil(event.entity.prototype.pollution_to_join_attack / 1000)
Code: Select all
local quantity = math.ceil(data.raw["unit"][event.entity.prototype.name].pollution_to_join_attack / 1000)