-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdata-updates.lua
More file actions
42 lines (32 loc) · 1.26 KB
/
data-updates.lua
File metadata and controls
42 lines (32 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require("prototypes.carbon-asteroid-updates")
require("carbon-recipe-updates")
require("carbon-fiber-recipe-updates")
require("map-gen-preset-updates")
require("carbon-matter")
require("strange-matter")
require("compatibility/248k")
require("compatibility/orewashing")
-- require("omni")
local util = require("data-util");
if util.me.use_flake_graphite() then
if util.k2() then
require("tech-triggers") -- For K2 this has to be in data updates as K2 unsafely access the tech research unit
end
end
util.add_gleba_rock("flake-graphite")
util.add_gleba_rock("rough-diamond", 2, 3)
if mods.Asteroid_Mining then
if util.me.use_flake_graphite() and not data.raw.item["asteroid-flake-graphite"] then
util.addtype("flake-graphite", {a = 0,r = 0.0,g = 0.2,b = 0.5})
end
if util.me.use_rough_diamond() and not data.raw.item["asteroid-rough-diamond"] then
util.addtype("rough-diamond", {a = 0,r = 0.0,g = 0.2,b = 0.8})
end
end
util.redo_recycling()
util.add_shiftite_recipe("graphite", {"alpha"}, 1)
util.add_shiftite_recipe("diamond", {"beta", "epsilon"}, 1)
-- Needed to avoid issues on Cerys
util.add_minable_result("simple-entity", "cerys-ruin-colossal", {type="item", name="electric-furnace", amount_min=1, amount_max=1})
-- Must be last
util.create_list()