1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-11-06 09:09:26 +02:00

Merge pull request #323 from iltar/fix-oil-spawns

Fixed oil spawn in Diggy
This commit is contained in:
Lynn
2018-11-12 21:35:57 +01:00
committed by GitHub

View File

@@ -57,8 +57,8 @@ function ScatteredResources.register(config)
local min_max = resource_richness_values[get_name_by_random(resource_richness_probability)] local min_max = resource_richness_values[get_name_by_random(resource_richness_probability)]
local amount = ceil(random(min_max[1], min_max[2]) * (1 + ((distance / distance_richness_modifier) * 0.01))) local amount = ceil(random(min_max[1], min_max[2]) * (1 + ((distance / distance_richness_modifier) * 0.01)))
if liquid_value_modifiers[name] then if liquid_value_modifiers[resource_name] then
amount = amount * modifier amount = amount * liquid_value_modifiers[resource_name]
end end
if (cluster_mode) then if (cluster_mode) then