-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdata.lua
92 lines (85 loc) · 1.95 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
require "util"
require("prototypes.entities")
require("prototypes.items")
require("prototypes.items-groups")
require("prototypes.recipes")
require("prototypes.tech")
require("prototypes.tiles")
local smoke = table.deepcopy(data.raw["trivial-smoke"]["smoke-building"])
smoke.name = "subsurface-smoke"
smoke.duration = 120
smoke.render_layer = "smoke"
smoke.fade_away_duration = 120
smoke.color = {0.25, 0.25, 0.25, 0.375}
data:extend({
smoke,
{
type = "custom-input",
name = "subsurface-position",
key_sequence = "",
linked_game_control = "place-ping"
},
{
type = "custom-input",
name = "subsurface-rotate",
key_sequence = "",
linked_game_control = "rotate"
},
{
type = "custom-input",
name = "subsurface-driving",
key_sequence = "",
linked_game_control = "toggle-driving"
},
{
type = "resource-category",
name = "subsurface-hole"
},
{
type = "sprite",
name = "placement-indicator-1",
filename = "__Subsurface__/graphics/indicator-1.png",
width = 85, height = 85
},
{
type = "sprite",
name = "placement-indicator-2",
filename = "__Subsurface__/graphics/indicator-2.png",
width = 85, height = 85
},
{
type = "sprite",
name = "placement-indicator-3",
filename = "__Subsurface__/graphics/indicator-3.png",
width = 85, height = 85
},
{
type = "sprite",
name = "placement-indicator-4",
filename = "__Subsurface__/graphics/indicator-4.png",
width = 85, height = 85
},
{
type = "sprite",
name = "placement-indicator-5",
filename = "__Subsurface__/graphics/indicator-5.png",
width = 85, height = 85
},
{
type = "sprite",
name = "placement-indicator-6",
filename = "__Subsurface__/graphics/indicator-6.png",
width = 85, height = 85
},
{
type = "noise-expression",
name = "random-value-0-1",
expression = "random_penalty(x, y, 100, map_seed, 100) / 100",
},
{
type = "surface-property",
name = "subsurface-level",
default_value = 0,
localised_unit_key = "description.rocket-capacity-value-short"
},
})