@@ -7,9 +7,9 @@ local function set_speed(type, name, speed)
77 end
88end
99
10- set_speed (" transport-belt" , " basic-transport-belt" , 7.5 )
11- set_speed (" underground-belt" , " basic-underground-belt" , 7.5 )
12- set_speed (" splitter" , " basic-splitter" , 7.5 )
10+ set_speed (" transport-belt" , " bob- basic-transport-belt" , 7.5 )
11+ set_speed (" underground-belt" , " bob- basic-underground-belt" , 7.5 )
12+ set_speed (" splitter" , " bob- basic-splitter" , 7.5 )
1313
1414set_speed (" transport-belt" , " transport-belt" , 15 )
1515set_speed (" underground-belt" , " underground-belt" , 15 )
@@ -23,31 +23,35 @@ set_speed("transport-belt", "express-transport-belt", 45)
2323set_speed (" underground-belt" , " express-underground-belt" , 45 )
2424set_speed (" splitter" , " express-splitter" , 45 )
2525
26- set_speed (" transport-belt" , " turbo-transport-belt" , 60 )
27- set_speed (" underground-belt" , " turbo-underground-belt" , 60 )
28- set_speed (" splitter" , " turbo-splitter" , 60 )
26+ set_speed (" transport-belt" , " bob- turbo-transport-belt" , 60 )
27+ set_speed (" underground-belt" , " bob- turbo-underground-belt" , 60 )
28+ set_speed (" splitter" , " bob- turbo-splitter" , 60 )
2929
30- set_speed (" transport-belt" , " ultimate-transport-belt" , 75 )
31- set_speed (" underground-belt" , " ultimate-underground-belt" , 75 )
32- set_speed (" splitter" , " ultimate-splitter" , 75 )
30+ set_speed (" transport-belt" , " bob- ultimate-transport-belt" , 75 )
31+ set_speed (" underground-belt" , " bob- ultimate-underground-belt" , 75 )
32+ set_speed (" splitter" , " bob- ultimate-splitter" , 75 )
3333
3434-- Increase energy consumption of bob's extra beacons
3535-- Also reduce module slots and effectivity
36- if data .raw .beacon [" beacon-2" ] then
37- data .raw .beacon [" beacon-2" ].energy_usage = " 960kW"
38- data .raw .beacon [" beacon-2" ].module_specification .module_slots = 2
39- data .raw .beacon [" beacon-2" ].distribution_effectivity = 0.5
36+ if data .raw .beacon [" bob-beacon-2" ] then
37+ data .raw .beacon [" bob-beacon-2" ].energy_usage = " 960kW"
38+ data .raw .beacon [" bob-beacon-2" ].module_slots = 2
39+ data .raw .beacon [" bob-beacon-2" ].distribution_effectivity = 1
40+
41+ -- TODO this got changed with bobs 2.0 - this replicates 1.1 behavior
42+ data .raw .beacon [" bob-beacon-2" ].supply_area_distance = 6
4043end
41- if data .raw .beacon [" beacon-3" ] then
42- data .raw .beacon [" beacon-3" ].energy_usage = " 1920kW"
43- data .raw .beacon [" beacon-3" ].module_specification .module_slots = 2
44- data .raw .beacon [" beacon-3" ].distribution_effectivity = 0.5
44+ if data .raw .beacon [" bob-beacon-3" ] then
45+ data .raw .beacon [" bob-beacon-3" ].energy_usage = " 1920kW"
46+ data .raw .beacon [" bob-beacon-3" ].module_slots = 2
47+ data .raw .beacon [" bob-beacon-3" ].distribution_effectivity = 1
48+ data .raw .beacon [" bob-beacon-3" ].supply_area_distance = 9
4549end
4650
4751-- Undo boblogistcs changes to logistic system research
4852bobmods .lib .tech .add_new_science_pack (" logistic-system" , " production-science-pack" , 1 )
49- if data .raw .tool [" advanced-logistic-science-pack" ] then
50- bobmods .lib .tech .add_new_science_pack (" logistic-system" , " advanced-logistic-science-pack" , 1 )
53+ if data .raw .tool [" bob- advanced-logistic-science-pack" ] then
54+ bobmods .lib .tech .add_new_science_pack (" logistic-system" , " bob- advanced-logistic-science-pack" , 1 )
5155else
5256 bobmods .lib .tech .add_new_science_pack (" logistic-system" , " utility-science-pack" , 1 )
5357end
@@ -58,40 +62,36 @@ local logisticstechs = {
5862 " logistic-system-2" ,
5963 " logistic-system-3" ,
6064 " angels-logistic-warehouses" ,
61- " logistic-silos" ,
65+ " angels- logistic-silos" ,
6266}
6367
6468for _ , v in pairs (logisticstechs ) do
6569 if data .raw .technology [v ] then
6670 bobmods .lib .tech .add_new_science_pack (v , " production-science-pack" , 1 )
6771 bobmods .lib .tech .add_new_science_pack (v , " utility-science-pack" , 1 )
6872
69- if data .raw .tool [" advanced-logistic-science-pack" ] then
70- bobmods .lib .tech .add_new_science_pack (v , " advanced-logistic-science-pack" , 1 )
73+ if data .raw .tool [" bob- advanced-logistic-science-pack" ] then
74+ bobmods .lib .tech .add_new_science_pack (v , " bob- advanced-logistic-science-pack" , 1 )
7175 end
7276 end
7377end
7478
7579if mods [" angelsaddons-storage" ] then
76- bobmods .lib .tech .replace_prerequisite (" logistic-silos" , " logistic-system" , " logistic-system-3" )
77- bobmods .lib .tech .replace_prerequisite (" angels-logistic-warehouses" , " logistic-system" , " logistic-silos" )
80+ bobmods .lib .tech .replace_prerequisite (" angels- logistic-silos" , " logistic-system" , " logistic-system-3" )
81+ bobmods .lib .tech .replace_prerequisite (" angels-logistic-warehouses" , " logistic-system" , " angels- logistic-silos" )
7882end
7983bobmods .lib .tech .add_prerequisite (" logistic-system-2" , " utility-science-pack" )
8084
8185-- No logistics chest at green science level.
8286local function revertchests (tech )
8387 local neweffects = {
84- { type = " unlock-recipe" , recipe = " logistic-chest- passive-provider" },
85- { type = " unlock-recipe" , recipe = " logistic -chest-storage " },
88+ { type = " unlock-recipe" , recipe = " passive-provider-chest " },
89+ { type = " unlock-recipe" , recipe = " storage -chest" },
8690 }
8791 for k , v in pairs (tech .effects ) do
8892 if
8993 v .type ~= " unlock-recipe"
90- or (
91- v .recipe ~= " logistic-chest-passive-provider"
92- and v .recipe ~= " logistic-chest-storage"
93- and v .recipe ~= " logistic-chest-requester"
94- )
94+ or (v .recipe ~= " passive-provider-chest" and v .recipe ~= " storage-chest" and v .recipe ~= " requester-chest" )
9595 then
9696 table.insert (neweffects , v )
9797 end
@@ -102,15 +102,12 @@ revertchests(data.raw.technology["logistic-robotics"])
102102revertchests (data .raw .technology [" construction-robotics" ])
103103local found = false
104104for k , v in pairs (data .raw .technology [" logistic-system" ].effects ) do
105- if v .type == " unlock-recipe" and v .recipe == " logistic -chest-requester " then
105+ if v .type == " unlock-recipe" and v .recipe == " requester -chest" then
106106 found = true
107107 end
108108end
109109if not found then
110- table.insert (
111- data .raw .technology [" logistic-system" ].effects ,
112- { type = " unlock-recipe" , recipe = " logistic-chest-requester" }
113- )
110+ table.insert (data .raw .technology [" logistic-system" ].effects , { type = " unlock-recipe" , recipe = " requester-chest" })
114111end
115112
116113if mods [" angelsindustries" ] then
0 commit comments