From 53d5b197859d84562e2bf682159de8c09f2eb981 Mon Sep 17 00:00:00 2001 From: Brevven Date: Tue, 1 Feb 2022 21:19:57 -0800 Subject: [PATCH] rocks tweak, alien biomes --- changelog.txt | 4 ++++ data-updates.lua | 14 ++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index 1171ec5..6ad131f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/data-updates.lua b/data-updates.lua index 42a1012..d19edab 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -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