mirror of
https://github.com/peter-tanner/017-science-transition-mod.git
synced 2024-11-30 11:00:19 +08:00
Merge pull request #1 from Dimava/patch-1
Add proposed features (belt, mining, smelting, ..)
This commit is contained in:
commit
3800c2971d
|
@ -16,3 +16,57 @@ for _, mod in pairs(data.raw.module) do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
--increase belt speed to 15x
|
||||
for _, belt in pairs(data.raw["splitter"]) do
|
||||
if (belt.speed * 32) % 1 == 0 and belt.speed * 32 < 8 then
|
||||
belt.speed = belt.speed * 45 / 40;
|
||||
end
|
||||
end
|
||||
for _, belt in pairs(data.raw["transport-belt"]) do
|
||||
if (belt.speed * 32) % 1 == 0 and belt.speed * 32 < 8 then
|
||||
belt.speed = belt.speed * 45 / 40;
|
||||
end
|
||||
end
|
||||
for _, belt in pairs(data.raw["underground-belt"]) do
|
||||
if (belt.speed * 32) % 1 == 0 and belt.speed * 32 < 8 then
|
||||
belt.speed = belt.speed * 45 / 40;
|
||||
end
|
||||
end
|
||||
|
||||
--simplify drill stats
|
||||
data.raw["mining-drill"]["burner-mining-drill"].mining_speed = 0.25
|
||||
data.raw["mining-drill"]["burner-mining-drill"].mining_power = 3
|
||||
|
||||
--simplify ore hardness
|
||||
for _, ore in pairs(data.raw.resource) do
|
||||
if ore.minable.hardness == 0.9 then
|
||||
ore.minable.hardness = 1
|
||||
end
|
||||
end
|
||||
data.raw.resource.stone.minable.hardness = 1
|
||||
|
||||
--decrease smelting times
|
||||
for _, recipe in pairs(data.raw.recipe) do
|
||||
if recipe.category=="smelting" then
|
||||
if recipe.energy_required then
|
||||
if (recipe.energy_required / 3.5) % 1 == 0 then
|
||||
recipe.energy_required = recipe.energy_required * 3.2 / 3.5
|
||||
end
|
||||
else
|
||||
if (recipe.normal.energy_required / 3.5) % 1 == 0 then
|
||||
recipe.normal.energy_required = recipe.normal.energy_required * 3.2 / 3.5
|
||||
end
|
||||
if (recipe.expensive.energy_required / 3.5) % 1 == 0 then
|
||||
recipe.expensive.energy_required = recipe.expensive.energy_required * 3.2 / 3.5
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--remove assembling-machine ingredient_count limits
|
||||
for _, machine in pairs(data.raw["assembling-machine"]) do
|
||||
if machine.ingredient_count < 10 then
|
||||
machine.ingredient_count = 10
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user