Skip to content

Commit 3d1ccf3

Browse files
committed
Science pack recipe changes #510
1 parent ffb0ac5 commit 3d1ccf3

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

bobtech/changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 2.0.4
3+
Date: ???
4+
Changes:
5+
- Science pack recipe changes #510
6+
- If Bob's Assembling machines mod is enabled, Production science pack will require Assembling machine 3 instead of Assembling machine 2
7+
- If Bob's Electronics mod is enabled, Automation science pack will require a Basic circuit board (brown) instead of Copper plate
8+
- If Bob's Electronics mod is enabled, Logistic science pack will require an Electronic circuit (green)
9+
---------------------------------------------------------------------------------------------------
210
Version: 2.0.3
311
Date: 02. 01. 2026
412
Changes:

bobtech/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bobtech",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"factorio_version": "2.0",
55
"title": "Bob's Technology mod",
66
"author": "Bobingabout",

bobtech/prototypes/recipe/recipe-updates.lua

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ data.raw.recipe["chemical-science-pack"].energy_required = 14
1212

1313
bobmods.lib.recipe.remove_ingredient("production-science-pack", "productivity-module")
1414
bobmods.lib.recipe.remove_ingredient("production-science-pack", "rail")
15-
bobmods.lib.recipe.add_ingredient(
16-
"production-science-pack",
17-
{ type = "item", name = "assembling-machine-2", amount = 1 }
18-
)
15+
if mods["bobassembly"] then
16+
bobmods.lib.recipe.add_ingredient(
17+
"production-science-pack",
18+
{ type = "item", name = "assembling-machine-3", amount = 1 }
19+
)
20+
else
21+
bobmods.lib.recipe.add_ingredient(
22+
"production-science-pack",
23+
{ type = "item", name = "assembling-machine-2", amount = 1 }
24+
)
25+
end
1926
if data.raw.item["bob-electrolyser-3"] then
2027
bobmods.lib.recipe.add_ingredient(
2128
"production-science-pack",

bobtech/prototypes/technology/technology-updates.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
if mods["bobelectronics"] then
2+
bobmods.lib.recipe.replace_ingredient("automation-science-pack", "copper-plate", "bob-basic-circuit-board")
3+
bobmods.lib.recipe.add_ingredient("logistic-science-pack", { type = "item", name = "electronic-circuit", amount = 1 })
4+
end
5+
16
bobmods.lib.tech.remove_science_pack("logistics-3", "production-science-pack")
27
bobmods.lib.tech.replace_prerequisite("logistics-3", "production-science-pack", "chemical-science-pack")
38
bobmods.lib.tech.add_prerequisite("logistics-3", "logistics-2")
@@ -233,7 +238,11 @@ end
233238
if data.raw.item["bob-bronze-alloy"] then
234239
bobmods.lib.tech.add_prerequisite("chemical-science-pack", "bob-alloy-processing")
235240
end
236-
bobmods.lib.tech.replace_prerequisite("production-science-pack", "productivity-module", "automation-2")
241+
if mods["bobassembly"] then
242+
bobmods.lib.tech.replace_prerequisite("production-science-pack", "productivity-module", "automation-3")
243+
else
244+
bobmods.lib.tech.replace_prerequisite("production-science-pack", "productivity-module", "automation-2")
245+
end
237246
bobmods.lib.tech.remove_prerequisite("production-science-pack", "railway")
238247
if data.raw.technology["bob-electrolyser-3"] then
239248
bobmods.lib.tech.add_prerequisite("production-science-pack", "bob-electrolyser-3")

0 commit comments

Comments
 (0)