-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-bees.lua
More file actions
62 lines (54 loc) · 1.47 KB
/
make-bees.lua
File metadata and controls
62 lines (54 loc) · 1.47 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
-- find all ores
-- ignore some of them
local ignore_patterns = {}
ignore_patterns.name = {}
if mods["space-exploration"] then
ignore_patterns.name["se%-core%-fragment"] = true
ignore_patterns.name["se%-core%-fragment.*%-sealed$"] = true --only ignore sealed fragments
end
for name, resource in pairs(data.raw.resource) do
local ignore = false
for pattern in pairs(ignore_patterns.name) do
if string.find(name, pattern) then
ignore = true
break
end
end
if not ignore and resource.minable and (resource.minable.result or resource.minable.results) then
beekeeping.from_resource{resource}
end
end
-- add wood
for _, recipe in pairs(data.raw.recipe) do
if recipe.name ~= 'deadlock-stacks-unstack-wood' then
for _, result in ipairs(beekeeping.recipe_to_results(recipe)) do
if result.name == 'wood' then
goto nowood
end
end
end
end
beekeeping.from_item{
data.raw.item['wood'],
color = {153, 85, 61},
queen_durability = 20,
parents = {},
parents = {beekeeping.species.copper, beekeeping.species.iron},
level = 2
}
::nowood::
if mods.omnimatter then
beekeeping.from_item{data.raw.item['omnicium-plate'], color={188, 25, 210}}
end
if mods.SeaBlock then
beekeeping.from_item{data.raw.item['manganese-ore'], color={223, 75, 75}}
end
require 'prototypes.dynamic.item'
require 'prototypes.dynamic.recipe'
require 'prototypes.dynamic.technology'
if beekeeping.override == false then
local problem = beekeeping.extend()
if problem then
return problem
end
end