mirror of
https://github.com/peter-tanner/017-science-transition-mod.git
synced 2024-12-02 20:10:19 +08:00
Merge pull request #2 from Dimava/patch-2
Add loader speed change support
This commit is contained in:
commit
571ef65a08
|
@ -312,6 +312,11 @@ for _, belt in pairs(data.raw["underground-belt"]) do
|
||||||
belt.speed = belt.speed * 45 / 40;
|
belt.speed = belt.speed * 45 / 40;
|
||||||
end
|
end
|
||||||
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
|
if settings.startup["017-drill"].value then
|
||||||
--simplify drill stats
|
--simplify drill stats
|
||||||
|
@ -354,4 +359,4 @@ if settings.startup["017-assem-lim"].value then
|
||||||
machine.ingredient_count = 10
|
machine.ingredient_count = 10
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user