update to 2.0 and a bit more

This commit is contained in:
Brevven 2025-01-15 02:23:40 -08:00
parent e9ace04946
commit 972e1ab0c2
41 changed files with 871 additions and 201 deletions

View file

@ -1,21 +1,31 @@
local util = require("data-util");
-- Add zircon to rocks
local min = 9
local max = 11
if mods["alien-biomes"] then
min = 5
max = 7
local min = 1
local max = 5
if util.me.early() then
min = 7
max = 15
end
for _, e in pairs(data.raw["simple-entity"]) do
if (e.subgroup == "grass" or e.subgroup == "wrecks") and e.name:match("rock%-") then
if (e.subgroup == "grass" or e.subgroup == "wrecks") and e.name:match("rock") then
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})
util.add_minable_result("simple-entity", e.name, {type="item", name="zircon", amount_min=adjusted_min, amount_max=adjusted_max})
end
end
-- Add zircon to poppable rock recipes
-- Add zirconia to stomper shells
min = 1
max = 10
for _, e in pairs(data.raw["simple-entity"]) do
if (e.subgroup == "grass") and e.name:match("shell") then
util.add_minable_result("simple-entity", e.name, {type="item", name="zirconia", amount_min=min, amount_max=max})
end
end
-- Add zircon to ploppable rock recipes
-- K2
util.add_ingredient("rock-big", "zircon", 15)
@ -25,3 +35,6 @@ util.add_ingredient("rock-huge", "zircon", 30)
util.add_ingredient("dect-base-rock-big", "zircon", 15)
util.add_ingredient("dect-base-sand-rock-big", "zircon", 15)
util.add_ingredient("dect-base-rock-huge", "zircon", 30)
-- Do this last so we don't further modify it with the above
util.add_gleba_rock("zircon")