-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.lua
105 lines (96 loc) · 2.58 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
require("style")
do
local item_sounds = require("__base__.prototypes.item_sounds")
local input = {
type = "custom-input",
name = "shuttle-lite-call-nearest",
key_sequence = "CONTROL + J",
consuming = "none",
}
local shortcut = {
type = "shortcut",
name = "shuttle-lite-call-nearest",
icon = "__folk-shuttle__/graphics/folk-shuttle-call.png",
small_icon = "__folk-shuttle__/graphics/folk-shuttle-call.png",
order = "c[custom-actions]-s[call-shuttle]",
action = "lua",
icon_size = 128,
small_icon_size = 128,
style = "green",
associated_control_input = "shuttle-lite-call-nearest",
technology_to_unlock = "shuttle-lite",
unavailable_until_unlocked = true,
}
local item = {
type = "item-with-entity-data",
name = "folk-shuttle",
icon = "__folk-shuttle__/graphics/folk-shuttle-locomotive.png",
subgroup = "train-transport",
order = "c[rolling-stock]-a[shuttle]",
inventory_move_sound = item_sounds.locomotive_inventory_move,
pick_sound = item_sounds.locomotive_inventory_pickup,
drop_sound = item_sounds.locomotive_inventory_move,
place_result = "folk-shuttle",
stack_size = 5,
}
local recipe = {
type = "recipe",
name = "folk-shuttle",
energy_required = 5,
enabled = false,
ingredients =
{
{ type = "item", name = "engine-unit", amount = 20, },
{ type = "item", name = "electronic-circuit", amount = 15, },
{ type = "item", name = "advanced-circuit", amount = 2, },
{ type = "item", name = "steel-plate", amount = 30, },
},
results = { { type = "item", name = "folk-shuttle", amount = 1, }, },
}
local tech = {
type = "technology",
name = "shuttle-lite",
icon = "__folk-shuttle__/graphics/tech.png",
icon_size = 256,
effects = {
{
type = "nothing",
use_icon_overlay_constant = false,
icon = "__folk-shuttle__/graphics/folk-call-shuttle.png",
icon_size = 128,
effect_description = { "shuttle-lite.button-tooltip", },
},
{
type = "unlock-recipe",
recipe = "folk-shuttle",
},
},
prerequisites = { "automated-rail-transportation", "radar", "advanced-circuit", },
unit =
{
count = 200,
ingredients =
{
{ "automation-science-pack", 1, },
{ "logistic-science-pack", 1, },
},
time = 30,
},
}
local honk = {
type = "sound",
name = "folk-shuttle-honk",
filename = "__folk-shuttle__/honk.ogg",
category = "environment",
audible_distance_modifier = 8,
volume = 1,
}
local font = {
type = "font",
name = "folk-shuttle",
from = "default",
spacing = -1,
size = 12,
}
data:extend({ tech, input, shortcut, honk, item, recipe, font, })
end