I'm getting an error on the "pairs" in below code:
This is in the data-updates.lua (Natural_Evolution_Enemies Mod)
Code: Select all
function Add_Poison_Resist(Raw,Percent)
local Resist = {type = "poison",percent = Percent}
for i,d in pairs(Raw) do
if d.resistances ==nil then d.resistances={} end
table.insert(d.resistances, Resist)
end
end
Does not like the "game.forces"
Code: Select all
for k,force in pairs(game.forces) do
force.reset_recipes()
force.reset_technologies()
end
Here is my MOD if anyone want's to take a stab at it: GITHUB
Thanks for any help!!