-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdata-updates.lua
More file actions
139 lines (124 loc) · 3.72 KB
/
data-updates.lua
File metadata and controls
139 lines (124 loc) · 3.72 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
data.raw['item-with-entity-data']['locomotive'].subgroup = "electric-transport-loc"
data.raw['item-with-entity-data']['locomotive'].order = "a"
data.raw['item-with-entity-data']['cargo-wagon'].subgroup = "electric-transport-cargo"
data.raw['item-with-entity-data']['cargo-wagon'].order = "a"
data.raw['item-with-entity-data']['fluid-wagon'].subgroup = "electric-transport-fluid"
data.raw['item-with-entity-data']['fluid-wagon'].order = "a"
if settings.startup['mk-train'].value then
UnlockTrainRecipe()
UnlockTrainTechnology()
end
if not (mods['boblogistics'] or mods['FactorioExtended-Trains']) then
if settings.startup['mk-cargo'].value then
UnlockCargoRecipe()
UnlockCargoTechnology()
end
if settings.startup['mk-fluid'].value then
UnlockFluidRecipe()
UnlockFluidTechnology()
end
if settings.startup['mk-train'].value then
data.raw['artillery-wagon']['artillery-wagon'].max_speed = 2.4
if not settings.startup['mk-cargo'].value then
data.raw['cargo-wagon']['cargo-wagon'].max_speed = 2.4
end
if not settings.startup['mk-fluid'].value then
data.raw['fluid-wagon']['fluid-wagon'].max_speed = 2.4
end
end
end
if mods['Vehicle Wagon'] and settings.startup['mk-train'].value then
for _,wagon in pairs(data.raw['cargo-wagon']) do
if wagon.name:match("vehicle%-wagon") then
wagon.max_speed = 2.4
end
end
end
if mods['FactorioExtended-Trains'] and settings.startup['mk-train'].value then
data.raw['cargo-wagon']['cargo-wagon-2'].max_speed = 1.8
data.raw['cargo-wagon']['cargo-wagon-3'].max_speed = 2.4
data.raw['fluid-wagon']['fluid-wagon-2'].max_speed = 1.8
data.raw['fluid-wagon']['fluid-wagon-3'].max_speed = 2.4
end
if mods['EvenMoreLight'] then
for _,train in pairs(data.raw['locomotive']) do
if train.name:match("^et%-electric%-locomotive%-%d$") then
train.front_light =
{
{
minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
},
{
minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
}
}
train.stand_by_light =
{
{
minimum_darkness = 0.3,
color = {b=1},
shift = {-0.6, -3.5},
size = 2,
intensity = 0.5
},
{
minimum_darkness = 0.3,
color = {b=1},
shift = {0.6, -3.5},
size = 2,
intensity = 0.5
},
{
minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
},
{
minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
}
}
end
end
end
if mods['bobvehicleequipment'] then
if settings.startup['bobmods-vehicleequipment-enablevehiclegrids'].value then
data.raw['locomotive']['et-electric-locomotive-1'].equipment_grid = "bob-locomotive"
if settings.startup['mk-train'] then
data.raw['locomotive']['et-electric-locomotive-2'].equipment_grid = "bob-locomotive-2"
data.raw['locomotive']['et-electric-locomotive-3'].equipment_grid = "bob-locomotive-3"
end
if settings.startup['mk-cargo'].value then
data.raw['cargo-wagon']['et-cargo-wagon-2'].equipment_grid = "bob-cargo-wagon-2"
data.raw['cargo-wagon']['et-cargo-wagon-3'].equipment_grid = "bob-cargo-wagon-3"
end
end
end
--if mods['reverse-factory'] then
-- for _,item in pairs(data.raw['item-with-entity-data']) do
-- if item.type == "locomotive" or item.type == "cargo-wagon" or item.type == "fluid-wagon" then
-- local recipe = data.raw['recipe'][item.name]
-- if recipe then
-- data:extend
-- ({
-- {
-- type = "recipe",
-- name = "rf-" .. item.name,
-- category = "recycle",
-- hidden = true,
-- icon = item.icon,
-- subgroup = "rf-multiple-outputs",
-- energy_required = 30,
-- ingredients = {{item.name, 1}},
-- results = recipe.ingredients
-- }
-- })
-- end
-- end
-- end
--end