Skip to content

Commit 285cfe5

Browse files
committed
Missing Locales #313
Also fixed that these recipes were unlocked from the start of the game
1 parent 628c694 commit 285cfe5

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

bobplates/prototypes/recipe/chemistry-recipe.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if settings.startup["bobmods-plates-groundwater"].value == true then
88
subgroup = "bob-fluid-pump",
99
order = "b[fluid-chemistry]-b[bob-lithia-water]",
1010
category = "bob-water-pump",
11+
enabled = false,
1112
energy_required = 1,
1213
ingredients = {},
1314
results = {
@@ -19,11 +20,13 @@ if settings.startup["bobmods-plates-groundwater"].value == true then
1920
{
2021
type = "recipe",
2122
name = "bob-ground-water",
23+
localised_name = { "fluid-name.water" },
2224
icon = "__base__/graphics/icons/fluid/water.png",
2325
icon_size = 64,
2426
subgroup = "bob-fluid-pump",
2527
order = "b[fluid-chemistry]-b[water]",
2628
category = "bob-water-pump",
29+
enabled = false,
2730
energy_required = 1,
2831
ingredients = {},
2932
results = {
@@ -32,17 +35,21 @@ if settings.startup["bobmods-plates-groundwater"].value == true then
3235
allow_decomposition = false,
3336
},
3437
})
38+
bobmods.lib.tech.add_recipe_unlock("bob-water-bore-1", "bob-lithia-water")
39+
bobmods.lib.tech.add_recipe_unlock("bob-water-bore-1", "bob-ground-water")
3540

3641
if settings.startup["bobmods-plates-purewater"].value == true then
3742
data:extend({
3843
{
3944
type = "recipe",
40-
name = "pure-water-pump",
45+
name = "bob-pure-water-pump",
46+
localised_name = { "fluid-name.bob-pure-water" },
4147
icon = "__bobplates__/graphics/icons/pure-water.png",
4248
icon_size = 64,
4349
subgroup = "bob-fluid-pump",
4450
order = "b[fluid-chemistry]-b[bob-pure-water]",
4551
category = "bob-water-pump",
52+
enabled = false,
4653
energy_required = 1,
4754
ingredients = {},
4855
results = {
@@ -51,6 +58,7 @@ if settings.startup["bobmods-plates-groundwater"].value == true then
5158
allow_decomposition = false,
5259
},
5360
})
61+
bobmods.lib.tech.add_recipe_unlock("bob-water-bore-1", "bob-pure-water-pump")
5462
end
5563
end
5664

bobplates/prototypes/technology-updates.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ bobmods.lib.tech.remove_prerequisite("nuclear-fuel-reprocessing", "production-sc
145145

146146
bobmods.lib.tech.add_prerequisite("engine", "automation")
147147

148+
if settings.startup["bobmods-plates-groundwater"].value == true then
149+
bobmods.lib.tech.add_recipe_unlock("bob-water-bore-1", "bob-lithia-water")
150+
bobmods.lib.tech.add_recipe_unlock("bob-water-bore-1", "bob-ground-water")
151+
if settings.startup["bobmods-plates-purewater"].value == true then
152+
bobmods.lib.tech.add_recipe_unlock("bob-water-bore-1", "bob-pure-water-pump")
153+
end
154+
end
155+
148156
if mods["Nuclear Fuel"] then
149157
bobmods.lib.tech.replace_prerequisite(
150158
"bobingabout-enrichment-process",

0 commit comments

Comments
 (0)