diff --git a/changelog.txt b/changelog.txt index ced7479..c919ab4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,8 @@ Date: 2021-01-26 - K2: Dirty water filtration quantity - Cermet requires 2 zirconia (result quantity also increased by 1) - Minor compatibility tweaks + Fixes: + - Most rocks should now have Zircon in Space Exploration, too --------------------------------------------------------------------------------------------------- Version: 0.5.2 Date: 2021-01-20 diff --git a/data-updates.lua b/data-updates.lua index 755660e..42a1012 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -7,6 +7,16 @@ require("strange-matter") local util = require("data-util"); -util.add_minable_result("simple-entity", "rock-huge", {name="zircon", amount_min = 15, amount_max=25}) -util.add_minable_result("simple-entity", "sand-rock-big", {name="zircon", amount_min = 15, amount_max=25}) -util.add_minable_result("simple-entity", "rock-big", {name="zircon", amount_min = 15, amount_max=25}) + +-- Add zircon to rocks +local min = 15 +local max = 23 +if mods["space-exploration"] then + min = 6 + max = 10 +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}) + end +end