-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdata-updates.lua
More file actions
35 lines (33 loc) · 1.76 KB
/
Copy pathdata-updates.lua
File metadata and controls
35 lines (33 loc) · 1.76 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
if aai_vehicle_exclusions then
table.insert(aai_vehicle_exclusions, "RTPropCar")
end
if (data.raw.tree.lickmaw and data.raw.capsule.RTLickmawBalls) then
table.insert(data.raw.tree.lickmaw.minable.results, {type="item", name="RTLickmawBalls", amount=1})
end
-- allows the train ramps and such to actaully load since all "rail signals" need to collide with each other
data:extend({
{
type = "collision-layer",
name = "RTRampsAndPlacers"
},
})
for each, signal in pairs(data.raw["rail-signal"]) do
if (signal.collision_mask == nil) then
signal.collision_mask = {layers={floor=true, item=true, rail=true, water_tile=true, is_lower_object=true}} -- the defaults which for some reason aren't readable if it defaults to the defaults
end
if (signal.elevated_collision_mask == nil) then
signal.elevated_collision_mask = {layers={elevated_rail=true}} -- the defaults which for some reason aren't readable if it defaults to the defaults
end
signal.collision_mask.layers["RTRampsAndPlacers"] = true
signal.elevated_collision_mask.layers["RTRampsAndPlacers"] = true
end
for each, signal in pairs(data.raw["rail-chain-signal"]) do
if (signal.collision_mask == nil) then
signal.collision_mask = {layers={floor=true, item=true, rail=true, water_tile=true, is_lower_object=true}} -- the defaults which for some reason aren't readable if it defaults to the defaults
end
if (signal.elevated_collision_mask == nil) then
signal.elevated_collision_mask = {layers={elevated_rail=true}} -- the defaults which for some reason aren't readable if it defaults to the defaults
end
signal.collision_mask.layers["RTRampsAndPlacers"] = true
signal.elevated_collision_mask.layers["RTRampsAndPlacers"] = true
end