rocks tweak, alien biomes

This commit is contained in:
Brevven 2022-02-01 21:19:57 -08:00
parent a8147f4800
commit 53d5b19785
2 changed files with 12 additions and 6 deletions

View file

@ -9,14 +9,16 @@ local util = require("data-util");
-- Add zircon to rocks
local min = 15
local max = 23
if mods["space-exploration"] then
min = 6
max = 10
local min = 9
local max = 11
if mods["alien-biomes"] then
min = 5
max = 7
end
for _, e in pairs(data.raw["simple-entity"]) do
if (e.subgroup == "grass" or e.subgroup == "wrecks") and e.name:match("rock%-") then
util.add_minable_result("simple-entity", e.name, {name="zircon", amount_min = min, amount_max=max})
local adjusted_max = e.name:match("huge") and max * 2 or max
local adjusted_min = e.name:match("huge") and min * 2 or min
util.add_minable_result("simple-entity", e.name, {name="zircon", amount_min=adjusted_min, amount_max=adjusted_max})
end
end