Code: Select all
for k, unitSpawner in pairs(data.raw["unit-spawner"]) do
if unitSpawner.loot == nil then
unitSpawner.loot = {}
table.insert(unitSpawner.loot, { item = "alien-artifact", count_min = 5, count_max = 10, probability = 1 } )
end
end