forked from brevven/titanium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitanium-enriched.lua
164 lines (163 loc) · 4.89 KB
/
titanium-enriched.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
-- Enriched Titanium for Krastorio2
local util = require("__bztitanium__.data-util");
if mods["Krastorio2"] then
data:extend(
{
{
type = "item",
name = "enriched-titanium",
icon_size = 64, icon_mipmaps = 3,
icon = "__bztitanium__/graphics/icons/enriched-titanium.png",
pictures = {
{filename="__bztitanium__/graphics/icons/enriched-titanium.png", size=64, scale=0.25},
{filename="__bztitanium__/graphics/icons/enriched-titanium-2.png", size=64, scale=0.25},
{filename="__bztitanium__/graphics/icons/enriched-titanium-3.png", size=64, scale=0.25},
{filename="__bztitanium__/graphics/icons/enriched-titanium-4.png", size=64, scale=0.25},
},
subgroup = "raw-material",
order = "e05-a[enriched-ores]-a1[enriched-titanium]",
stack_size = util.get_stack_size(100),
},
{
type = "recipe",
name = "enriched-titanium",
icon = "__bztitanium__/graphics/icons/enriched-titanium.png",
icon_size = 64, icon_mipmaps = 3,
category = "chemistry",
energy_required = 3,
enabled = false,
always_show_made_in = true,
always_show_products = true,
allow_productivity = true,
ingredients =
{
{type = "fluid", name = "hydrogen-chloride", amount = 10},
{type = "fluid", name = "water", amount = 25, catalyst_amount = 25},
{type = "item", name = "titanium-ore", amount = 9}
},
results =
{
{type = "item", name = "enriched-titanium", amount = 6},
{type = "fluid", name = "dirty-water", amount = 25, catalyst_amount = 25}
},
crafting_machine_tint =
{
primary = {r = 0.721, g = 0.525, b = 0.043, a = 0.000},
secondary = {r = 0.200, g = 0.680, b = 0.300, a = 0.357},
tertiary = {r = 0.690, g = 0.768, b = 0.870, a = 0.000},
quaternary = {r = 0.0, g = 0.980, b = 0.603, a = 0.900}
},
subgroup = "raw-material",
order = "e03[enriched-titanium]"
},
{
type = "recipe",
name = "enriched-titanium-plate",
icons =
{
{ icon = "__bztitanium__/graphics/icons/titanium-plate.png", icon_size = 64, icon_mipmaps = 3, },
{ icon = "__bztitanium__/graphics/icons/enriched-titanium.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}},
},
category = "smelting",
energy_required = 16,
enabled = false,
always_show_made_in = true,
always_show_products = true,
allow_productivity = true,
ingredients =
{
{"enriched-titanium", 10}
},
result = "titanium-plate",
result_count = 5,
order = "b[titanium-plate]-b[enriched-titanium-plate]"
},
{
type = "technology",
name = "enriched-titanium",
icons =
{
{
icon = "__Krastorio2__/graphics/technologies/enriched-ores.png",
icon_size = 256,
tint = { a=1.0, b=0.75, r=0.75, g=0.75 }
},
{
icon = "__bztitanium__/graphics/icons/enriched-titanium.png",
icon_size = 64, icon_mipmaps = 3,
scale = 2,
shift = {48, 48}
}
},
effects =
{
{
type = "unlock-recipe",
recipe = "enriched-titanium"
},
{
type = "unlock-recipe",
recipe = "enriched-titanium-plate"
},
{
type = "unlock-recipe",
recipe = "dirty-water-filtration-titanium",
}
},
prerequisites = {"kr-enriched-ores", util.titanium_processing},
unit =
{
count = 150,
ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1}
},
time = 30
}
},
{
type = "recipe",
name = "dirty-water-filtration-titanium",
category = "fluid-filtration",
icons =
{
{
icon = data.raw.fluid["dirty-water"].icon,
icon_size = data.raw.fluid["dirty-water"].icon_size
},
{
icon = data.raw.item["titanium-ore"].icon,
icon_size = data.raw.item["titanium-ore"].icon_size,
scale = 0.20 * (data.raw.fluid["dirty-water"].icon_size/data.raw.item["titanium-ore"].icon_size),
shift = {0, 4}
}
},
icon_size = data.raw.fluid["dirty-water"].icon_size,
energy_required = 2,
enabled = false,
allow_as_intermediate = false,
always_show_made_in = true,
always_show_products = true,
ingredients =
{
{type = "fluid", name = "dirty-water", amount = 100, catalyst_amount = 100},
},
results =
{
{type = "fluid", name = "water", amount = 100, catalyst_amount = 100},
{type = "item", name = "stone", probability = 0.30, amount = 1},
{type = "item", name = "titanium-ore", probability = 0.05, amount = 1}
},
crafting_machine_tint =
{
primary = {r = 0.60, g = 0.20, b = 0, a = 0.6},
secondary = {r = 1.0, g = 0.843, b = 0.0, a = 0.9}
},
subgroup = "raw-material",
order = "w013[dirty-water-filtration-titanium]"
}
}
)
end