-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdata.lua
111 lines (104 loc) · 2.63 KB
/
data.lua
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
local sounds = require("__base__.prototypes.entity.sounds")
function capsule_action(health)
return
{
type = "use-on-self",
attack_parameters =
{
type = "projectile",
activation_type = "consume",
ammo_category = "capsule",
cooldown = 30,
range = 0,
ammo_type =
{
target_type = "position",
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "damage",
damage = {type = "physical", amount = -health},
use_substitute = false
},
{
type = "play-sound",
sound = sounds.eat_fish
}
}
}
}
}
}
}
end
-- Build table of productivity modules
local baketorio_prod_mods = {}
for _, v in pairs(data.raw.module) do
if v.name:find("productivity%-module") and v.limitation then
table.insert(baketorio_prod_mods, v.limitation)
end
end
-- Get productivity module tables to add recipes
function baketorio_add_to_prod_mod(name)
for _, v in pairs(baketorio_prod_mods) do
table.insert(v,name)
end
end
nutrient_food_groups = {"basic", "bread", "milk", "chocolate", "fruit", "advanced"}
-- Tips and Tricks note
data:extend({
{
type="tips-and-tricks-item-category",
name="baketorio",
order="d"
},
{
type="tips-and-tricks-item",
name="baketorio-tips-category",
category="baketorio",
is_title=true,
icon="__baketorio__/graphics/advanced-cake-batter-cupcake-cooked.png",
icon_size=32,
order="baketorio",
skip_trigger={
type="build-entity",
entity="assembling-machine-1"
}
},
{
type="tips-and-tricks-item",
name="baketorio-nutrient-setting",
category="baketorio",
order="baketorio-a",
icon="__baketorio__/graphics/nutrient1.png",
icon_size=32,
indent=1,
image="__baketorio__/graphics/nutrient-assistant.png",
trigger={
type="build-entity",
entity="assembling-machine-1"
}
}
}
)
require("prototypes.fluids")
require("prototypes.fluid-recipes")
require("prototypes.items")
require("prototypes.item-recipes")
-- require("prototypes.modifications")
require("prototypes.entities")
require("prototypes.misc")
require("prototypes.assembler1")
require("prototypes.dough")
require("prototypes.ores")
require("prototypes.plants")
require("prototypes.batter")
require("prototypes.technologies")
require("prototypes.nutrients")
require("prototypes.ordering")