]> git.somenet.org - factorio/some-big-mining-drill.git/blob - data-final-fixes.lua
RELEASE 2.0.3 - Allow changing settings of normal e-drills too
[factorio/some-big-mining-drill.git] / data-final-fixes.lua
1
2 if data.raw.item["electric-mining-drill"] then
3     data.raw["mining-drill"]["electric-mining-drill"].resource_searching_radius = 0.49 + settings.startup["some-electric-mining-drill-size"].value
4     data.raw["mining-drill"]["electric-mining-drill"].mining_speed = settings.startup["some-electric-mining-drill-speed"].value
5 end
6
7 -- if big-mining-drill exists, modify it.
8 if data.raw.item["big-mining-drill"] then
9     data.raw["mining-drill"]["big-mining-drill"].resource_searching_radius = 0.49 + settings.startup["some-big-mining-drill-size"].value
10     data.raw["mining-drill"]["big-mining-drill"].mining_speed = settings.startup["some-big-mining-drill-speed"].value
11 end