add missing rock file
This commit is contained in:
parent
97cb8d2af8
commit
f3f217b260
1 changed files with 27 additions and 0 deletions
27
zircon-rocks.lua
Normal file
27
zircon-rocks.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
local util = require("data-util");
|
||||||
|
|
||||||
|
-- Add zircon to rocks
|
||||||
|
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
|
||||||
|
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
|
||||||
|
|
||||||
|
-- Add zircon to poppable rock recipes
|
||||||
|
|
||||||
|
-- K2
|
||||||
|
util.add_ingredient("rock-big", "zircon", 15)
|
||||||
|
util.add_ingredient("rock-huge", "zircon", 30)
|
||||||
|
|
||||||
|
-- Dectorio
|
||||||
|
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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue