Add loader speed change support

This commit is contained in:
Dimava 2019-02-15 17:10:20 +03:00 committed by GitHub
parent ea08de1372
commit 2215f90616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,6 +312,11 @@ for _, belt in pairs(data.raw["underground-belt"]) do
belt.speed = belt.speed * 45 / 40;
end
end
for _, belt in pairs(data.raw["loader"]) do
if (belt.speed * 32) % 1 == 0 and belt.speed * 32 < 8 then
belt.speed = belt.speed * 45 / 40;
end
end
if settings.startup["017-drill"].value then
--simplify drill stats
@ -354,4 +359,4 @@ if settings.startup["017-assem-lim"].value then
machine.ingredient_count = 10
end
end
end
end