forked from Bilka2/AbandonedRuins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.lua
42 lines (39 loc) · 1.24 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
local base_util = require("util")
data.raw["utility-constants"]["default"].default_other_force_color = base_util.copy(data.raw["utility-constants"]["default"].default_enemy_force_color)
data:extend
{
{
type = "selection-tool",
name = "AbandonedRuins-claim",
icon = "__AbandonedRuins__/graphics/AbandonedRuins-claim.png",
icon_size = 64,
stack_size = 1,
selection_color = {1, 1, 1},
alt_selection_color = {1, 1, 1},
selection_mode = {"buildable-type", "not-same-force", "friend"},
alt_selection_mode = {"any-entity", "not-same-force", "friend"},
selection_cursor_box_type = "train-visualization",
alt_selection_cursor_box_type = "train-visualization",
always_include_tiles = true,
flags = {"only-in-cursor", "spawnable"}
},
{
type = "shortcut",
name = "AbandonedRuins-claim",
action = "spawn-item",
icon =
{
filename = "__AbandonedRuins__/graphics/AbandonedRuins-claim-shortcut.png",
size = 32
},
item_to_spawn = "AbandonedRuins-claim",
associated_control_input = "AbandonedRuins-claim"
},
{
type = "custom-input",
name = "AbandonedRuins-claim",
key_sequence = "SHIFT + C",
action = "spawn-item",
item_to_spawn = "AbandonedRuins-claim"
}
}