forked from ReikaKalseki/Geothermal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbine.lua
128 lines (119 loc) · 3.13 KB
/
turbine.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
data:extend(
{
{
type = "item",
name = "geothermal-heat-exchanger",
icon = "__Geothermal__/graphics/icons/geothermal-turbine.png",
icon_size = 32,
flags = {},
subgroup = "energy",
order = "b[steam-power]-b[geothermal-heat-exchanger]",
place_result = "geothermal-heat-exchanger",
stack_size = 10,
}
}
)
data:extend(
{
{
type = "recipe",
name = "geothermal-heat-exchanger",
enabled = "false",
energy_required = 120,
ingredients =
{
{"stone-brick", 160},
{"pipe", 120},
{"copper-plate", 240},
{"advanced-circuit", 40},
{"steel-plate", 40}
},
result = "geothermal-heat-exchanger",
}
}
)
data:extend(
{
{
type = "assembling-machine",
name = "geothermal-heat-exchanger",
icon = "__Geothermal__/graphics/icons/geothermal-turbine.png",
icon_size = 32,
flags = {"placeable-neutral","placeable-player", "player-creation"},
minable = {mining_time = 1, result = "geothermal-heat-exchanger"},
max_health = 500,
corpse = "big-remnants",
dying_explosion = "massive-explosion",
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
animation =
{
filename = "__Geothermal__/graphics/entity/heat-exchanger/exchanger-horizontal.png",
priority = "high",
width = 128,
height = 128,
frame_count = 16,
line_length = 16,
shift = {0.35, -0.1},
animation_speed = 0.8
},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
working_sound =
{
sound =
{
{
filename = "__Geothermal__/sound/exchanger.ogg",
volume = 1.0
}
},
idle_sound = { filename = "__Geothermal__/sound/exchanger-idle.ogg", volume = 0.6 },
apparent_volume = 1.5,
},
crafting_speed = 4,
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
emissions_per_minute = 0,
drain = "30kW",
},
energy_usage = 60*Config.powerFactor*Config.powerFactor .. "kW",
ingredient_count = 2,
crafting_categories = {"geothermal"},
fluid_boxes =
{
{
production_type = "input",
pipe_covers = pipecoverspictures(),
pipe_picture = assembler2pipepictures(),
base_area = 10,
base_level = -1,
pipe_connections = {{ type="input", position = {0, -2} }}
},
{
production_type = "input",
pipe_covers = pipecoverspictures(),
pipe_picture = assembler2pipepictures(),
base_area = 10,
base_level = -1,
pipe_connections = {{ type="input", position = {-2, 0} }}
},
{
production_type = "output",
pipe_covers = pipecoverspictures(),
pipe_picture = assembler2pipepictures(),
base_level = 1,
pipe_connections = {{type="output", position = {0, 2} }}
},
{
production_type = "output",
pipe_covers = pipecoverspictures(),
pipe_picture = assembler2pipepictures(),
base_level = 1,
pipe_connections = {{ type="output", position = {2, 0} }}
}
}
}
}
)