This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig.lua
121 lines (107 loc) · 4.18 KB
/
config.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
-- Note: Any mods which define the collision box size of prototypes in data-final-fixes.lua will not be affected by this code.
-- Prototypes normally defined in data.lua - or data-updates.lua loaded before this - will be properly updated.
-- Table of prototype types to check and the minimum gap required to allow walking in between them. Tiles are 0.5 wide. Can be set to a large value (e.g 1000) create the smallest possible collision box {{0,0},{0,0}}.
prototype_type_gap_requirements =
{
["solar-panel"] = 0.25,
["simple-entity-with-owner"]= 0.25,
["simple-entity-with-force"]= 0.25,
["accumulator"] = 0.25,
["generator"] = 0.25,
["pipe"] = 0.42,
["pipe-to-ground"] = 0.42,
["heat-pipe"] = 0.25,
["reactor"] = 0.48,
["programmable-speaker"] = 0.25,
["container"] = 0.25,
["logistic-container"] = 0.25,
["assembling-machine"] = 0.25,
["arithmetic-combinator"] = 0.25,
["decider-combinator"] = 0.25,
["constant-combinator"] = 0.25,
["boiler"] = 0.42,
["electric-pole"] = 0.25,
["mining-drill"] = 0.25,
["pump"] = 0.42,
["radar"] = 0.25,
["storage-tank"] = 0.25,
["tree"] = 0.42,
["beacon"] = 0.25,
["furnace"] = 0.25,
["lamp"] = 0.25,
["lab"] = 0.25
}
-- All defined prototypes of the types listed above will be checked in adjust_collision_boxes() and have their collision boxes reduced to form the specified gap where needed.
--[[ Defines which prototypes squeak though should not alter for mod compatibility.
apply_when_object_exists (optional): Exclusions will only be applied when an object of the specified type and name is found ( in data.raw[type][name] ).
If omitted the exclusions will always be applied.
type Note: The type and name code can be copied directly from the prototype definition in the mod to here.
name
excluded_prototype_names (optional): (array) Individual prototypes which should not be altered e.g "small-pump" or "steam-engine".
excluded_prototype_types (optional): (array) Types of prototypes which should not be altered e.g "pump" or "generator".
All prototypes from all mods of the types specified will be excluded from alteration.
Meaning if you exclude "pump" no pumps will have their collision boxes changed.
--]]
exclusions =
{
{ -- General Exclusions (always applied)
excluded_prototype_names = {
-- List names of individual prototypes to always exclude here (if needed).
}
},
{ -- Industrial Revolution 2
apply_when_object_exists = {
type = "assembling-machine",
name = "steel-cleaner"
},
excluded_prototype_names = {
"steel-cleaner"
}
},
{ -- Industrial Revolution 3
apply_when_object_exists = {
type = "furnace",
name = "steel-vaporiser"
},
excluded_prototype_names = {
"steel-vaporiser"
}
},
{ -- UraniumPower mod (some test-entities display errors if altered so are excluded below)
apply_when_object_exists = {
type = "storage-tank",
name = "lube-port"
},
excluded_prototype_names = {
"lube-port",
"fluid-box-1",
"fluid-box-2"
}
},
{ -- RealisticReactors mod
apply_when_object_exists = {
type = "reactor",
name = "realistic-reactor",
},
excluded_prototype_names = {
"realistic-reactor",
"realistic-reactor-start",
"realistic-reactor-2",
"realistic-reactor-3",
"realistic-reactor-4",
"realistic-reactor-interface",
"realistic-reactor-eccs",
"heat-pipe",
}
},
-- { -- Reactors mod
-- apply_when_object_exists = {
-- type = "assembling-machine",
-- name = "nuclear-reactor",
-- },
-- excluded_prototype_names = {
-- "nuclear-reactor",
-- "reactor-interface",
-- }
-- },
}