forked from PiggyWhiskey/Chunky-Poles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data-updates.lua
130 lines (99 loc) · 6.57 KB
/
data-updates.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
122
123
124
125
126
127
128
129
130
--Small Pole = 100% Coverage of Wire
-- Coverage Area only
if settings.startup["piggy-small-pole"].value == true then
data.raw["electric-pole"]["small-electric-pole"].supply_area_distance = data.raw["electric-pole"]["small-electric-pole"].maximum_wire_distance / 2
if mods["LightedPolesPlus"] then
data.raw["electric-pole"]["lighted-small-electric-pole"].supply_area_distance = data.raw["electric-pole"]["lighted-small-electric-pole"].maximum_wire_distance / 2
end
end
--Medium Poles
-- Coverage Area only
if settings.startup["piggy-medium-pole"].value == true then
data.raw["electric-pole"]["medium-electric-pole"].supply_area_distance = data.raw["electric-pole"]["medium-electric-pole"].maximum_wire_distance / 2
if mods["bobpower"] then
if settings.startup["bobmods-power-poles"].value == true then
data.raw["electric-pole"]["medium-electric-pole-2"].supply_area_distance = data.raw["electric-pole"]["medium-electric-pole-2"].maximum_wire_distance / 2
data.raw["electric-pole"]["medium-electric-pole-3"].supply_area_distance = data.raw["electric-pole"]["medium-electric-pole-3"].maximum_wire_distance / 2
data.raw["electric-pole"]["medium-electric-pole-4"].supply_area_distance = data.raw["electric-pole"]["medium-electric-pole-4"].maximum_wire_distance / 2
if mods["LightedPolesPlus"] then
data.raw["electric-pole"]["lighted-medium-electric-pole-2"].supply_area_distance = data.raw["electric-pole"]["medium-electric-pole-2"].maximum_wire_distance / 2
data.raw["electric-pole"]["lighted-medium-electric-pole-3"].supply_area_distance = data.raw["electric-pole"]["medium-electric-pole-3"].maximum_wire_distance / 2
data.raw["electric-pole"]["lighted-medium-electric-pole-4"].supply_area_distance = data.raw["electric-pole"]["medium-electric-pole-4"].maximum_wire_distance / 2
end
end
end
if mods["LightedPolesPlus"] then
data.raw["electric-pole"]["lighted-medium-electric-pole"].supply_area_distance = data.raw["electric-pole"]["lighted-medium-electric-pole"].maximum_wire_distance / 2
end
end
--Big Pole to fit Chunks (Capped at 64)
--Wire Distance only
if settings.startup["piggy-big-pole"].value == true then
data.raw["electric-pole"]["big-electric-pole"].maximum_wire_distance = 32 --1 Chunk
if mods["bobpower"] then
if settings.startup["bobmods-power-poles"].value == true then
data.raw["electric-pole"]["big-electric-pole-2"].maximum_wire_distance = 40 --1.25 Chunk
data.raw["electric-pole"]["big-electric-pole-3"].maximum_wire_distance = 48 --1.5 Chunk
data.raw["electric-pole"]["big-electric-pole-4"].maximum_wire_distance = 64 --2 Chunk
if mods["LightedPolesPlus"] then
data.raw["electric-pole"]["lighted-big-electric-pole-2"].maximum_wire_distance = 40 --1.25 Chunk
data.raw["electric-pole"]["lighted-big-electric-pole-3"].maximum_wire_distance = 48 --1.5 Chunk
data.raw["electric-pole"]["lighted-big-electric-pole-4"].maximum_wire_distance = 64 --2 Chunk
end
end
end
if mods["LightedPolesPlus"] then
data.raw["electric-pole"]["lighted-big-electric-pole"].maximum_wire_distance = 32 --1 Chunk
end
end
--Substation to fit Chunks
--Coverage Area and Wire Distance
if settings.startup["piggy-substation"].value == true then
data.raw["electric-pole"]["substation"].maximum_wire_distance = 16 --0.5 Chunk
data.raw["electric-pole"]["substation"].supply_area_distance = data.raw["electric-pole"]["substation"].maximum_wire_distance / 2
if mods["bobpower"] then
if settings.startup["bobmods-power-poles"].value == true then
data.raw["electric-pole"]["substation-2"].maximum_wire_distance = 24 --0.75 Chunk
data.raw["electric-pole"]["substation-3"].maximum_wire_distance = 32 --1 Chunk
data.raw["electric-pole"]["substation-4"].maximum_wire_distance = 40 --1.25 Chunk
data.raw["electric-pole"]["substation-2"].supply_area_distance = data.raw["electric-pole"]["substation-2"].maximum_wire_distance / 2
data.raw["electric-pole"]["substation-3"].supply_area_distance = data.raw["electric-pole"]["substation-3"].maximum_wire_distance / 2
data.raw["electric-pole"]["substation-4"].supply_area_distance = data.raw["electric-pole"]["substation-4"].maximum_wire_distance / 2
if mods["LightedPolesPlus"] then
data.raw["electric-pole"]["lighted-substation-2"].maximum_wire_distance = 24 --0.75 Chunk
data.raw["electric-pole"]["lighted-substation-3"].maximum_wire_distance = 32 --1 Chunk
data.raw["electric-pole"]["lighted-substation-4"].maximum_wire_distance = 40 --1.25 Chunk
data.raw["electric-pole"]["lighted-substation-2"].supply_area_distance = data.raw["electric-pole"]["lighted-substation-2"].maximum_wire_distance / 2
data.raw["electric-pole"]["lighted-substation-3"].supply_area_distance = data.raw["electric-pole"]["lighted-substation-3"].maximum_wire_distance / 2
data.raw["electric-pole"]["lighted-substation-4"].supply_area_distance = data.raw["electric-pole"]["lighted-substation-4"].maximum_wire_distance / 2
end
end
end
if mods["LightedPolesPlus"] then
data.raw["electric-pole"]["lighted-substation"].maximum_wire_distance = 16 --0.5 Chunk
data.raw["electric-pole"]["lighted-substation"].supply_area_distance = data.raw["electric-pole"]["lighted-substation"].maximum_wire_distance / 2
end
end
--Roboports and Parts
data.raw["roboport"]["roboport"].logistics_radius = 32
data.raw["roboport"]["roboport"].construction_radius = 64
if mods["boblogistics"] then
--Bobs Logistic Zone Expanders
data.raw["roboport"]["bob-logistic-zone-expander"].logistics_radius = 16
data.raw["roboport"]["bob-logistic-zone-expander"].construction_radius = 32
data.raw["roboport"]["bob-logistic-zone-expander-2"].logistics_radius = 32
data.raw["roboport"]["bob-logistic-zone-expander-2"].construction_radius = 64
data.raw["roboport"]["bob-logistic-zone-expander-3"].logistics_radius = 48
data.raw["roboport"]["bob-logistic-zone-expander-3"].construction_radius = 96
data.raw["roboport"]["bob-logistic-zone-expander-4"].logistics_radius = 64
data.raw["roboport"]["bob-logistic-zone-expander-4"].construction_radius = 128
if settings.startup["bobmods-logistics-disableroboports"].value == false then
--Bobs Roboports
data.raw["roboport"]["bob-roboport-2"].logistics_radius = 48
data.raw["roboport"]["bob-roboport-2"].construction_radius = 98
data.raw["roboport"]["bob-roboport-3"].logistics_radius = 72
data.raw["roboport"]["bob-roboport-3"].construction_radius = 146
data.raw["roboport"]["bob-roboport-4"].logistics_radius = 96
data.raw["roboport"]["bob-roboport-4"].construction_radius = 194
end
end