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

@ -5,6 +5,10 @@ Date: 2021-02-02
- Zircon/stone sorting is now behind a setting, default off. It is no longer necessary for
original balance purposes. If you use these recipes, update your mod startup settings before
saving your game.
- Huge rocks have a little more zircon, in general.
- Big rocks have a little less zircon, in general
Fixes:
- Rocks will have less zircon whenever alien biomes mod is used.
---------------------------------------------------------------------------------------------------
Version: 0.5.4
Date: 2021-01-31

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