After investigation i have the following problem with this code:
Code: Select all
for i = 1, 100, 1 do
local levelbonus = i * 0.01
data:extend({
{
[...]
effect =
{
consumption = { bonus = levelbonus },
speed = { bonus = levelbonus },
productivity = { bonus = levelbonus }
},
},
})
end
Code: Select all
local levelbonus = i * 0.01001
I can even reproduce it in an online LUA console: https://repl.it/repls/ScornfulBeneficialChapter