Skip to content

Commit

Permalink
Burner phase 2.0 (#263)
Browse files Browse the repository at this point in the history
* Remove steam science pack

* Update bobtech.cfg

Add locale for new tech, remove redundant or outdated locales.

* Remove steam science pack

* Add burner generator

* Add burner generator

* Remove steam science pack

* Update burner phase

Add new burner lab tech, adjust prereqs, remove redundant recipe disabling.

* Add burner generator

* Remove steam science pack, add burner generator

* Remove steam science pack, add burner generator

* Update burner phase

* Add burner generator

* Add burner generator

* Add burner generator

* Add burner generator

* Make t1 pipes unlock on steam power

* Make t1 pipes unlock on steam power

* Remove unneeded steel prereq from electrolysis-2

* Revise repair pack techs

Since repair pack 1 now has its own vanilla tech, this pushes the remaining repair packs down the tree by one science pack. Repair pack 2 was also previously one of only a handful of steel techs that did not require SP2, so this is also more consistent in that regard.

* Update areadrills.lua

Since electric mining drills now have their own vanilla tech, this pushes the remaining drills down the tree by one science pack. Area drill 1 was also previously one of only a handful of steel techs that did not require SP2, so this is also more consistent in that regard.

* Update drills.lua

Since electric mining drills now have their own vanilla tech, this pushes the remaining drills down the tree by one science pack. Bob drill 1 was also previously one of only a handful of steel techs that did not require SP2, so this is also more consistent in that regard.

* Push water pumpjack techs down tree by 1 science pack

* Revise area drill tech numbering

* Revise area drill tech numbering

* Revising mining drill tech numbering

* Revise area drill tech numbering

* Revise pumpjack tech numbering

* Update pumpjacks.lua

Revise pumpjack tech numbering. Change pumpjack 2 recipe to have red circuits so that there is any kind of separation between its recipe and pumpjack 1's recipe.

* Revising mining drill tech numbering

* Update burner phase

* Change SP2 back to using yellow belts

Makes SP2 recipe require tin.

* Update burner phase

* Update with perceived_performance

* Update with perceived_performance

* Remove unneeded direction_count

* Adjust burner phase

* Reverting change to fix softlock

Labs can't require yellow belts when yellow belts require science packs to unlock

* Reduce the number of tiers of Pumpjack and Water pumpjack

T1 and T2 pumpjack were both being unlocked at green science

* Fix log file errors with just bobrevamp

* Fixing prerequisites with plates / revamp

* Formatting

* Fixing log file warning

* Fixing prerequisites / recipe unlocks

* Add burner lab tech icon

* Burner stage fixes

- Removed tech Basic Automation
  - Burner Assembling Machine should be unlocked from the start
  - Steam Assembling Machine should be unlocked with Steam Power tech
- Move tech prototype creation from data-updates stage to data stage
  - bobtech mod was creating "bob-steam-engine-1" in technology-updates.lua
- Remove technology "steam-automation"
- Make Basic Logistics a trigger tech - 10 iron gear wheels
-

* Don't rename science packs

* Remove science pack colours update setting

This has caused a lot of confusion when discussing progression. It' much easier if people all mean the same thing when they are talking about red science!

* Remove warning about conflict with AAI. Burner phase is automatically disabled with AAI

* Update changelog.txt

---------

Co-authored-by: KiwiHawk <[email protected]>
  • Loading branch information
Qatavin and KiwiHawk authored Dec 24, 2024
1 parent 32dcd90 commit b69a951
Show file tree
Hide file tree
Showing 40 changed files with 475 additions and 718 deletions.
2 changes: 0 additions & 2 deletions bobassembly/locale/en/bobassembly.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ fluid-furnace=Fluid burning furnace
fluid-chemical-furnace=Fluid burning chemical furnace
fluid-mixing-furnace=Fluid burning metal mixing furnace

basic-automation=Basic automation


[mod-setting-name]
bobmods-assembly-oilrefineries=Oil refineries
Expand Down
2 changes: 0 additions & 2 deletions bobassembly/locale/ru/bobassembly.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ fluid-furnace=Жидкотопливная печь
fluid-chemical-furnace=Жидкотопливная химическая печь
fluid-mixing-furnace=Жидкотопливная печь для сплавов

basic-automation=Базовая автоматизация


[mod-setting-name]
bobmods-assembly-oilrefineries=Включить новые нефтеперерабатывающие заводы
Expand Down
31 changes: 1 addition & 30 deletions bobassembly/prototypes/assembly-burner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if not mods["aai-industry"] and settings.startup["bobmods-assembly-burner"].valu
{
type = "recipe",
name = "burner-assembling-machine",
enabled = false,
enabled = true,
ingredients = {
{ type = "item", name = "iron-gear-wheel", amount = 5 },
{ type = "item", name = "iron-plate", amount = 9 },
Expand Down Expand Up @@ -332,35 +332,6 @@ if not mods["aai-industry"] and settings.startup["bobmods-assembly-burner"].valu
},
allowed_effects = {},
},

{
type = "technology",
name = "basic-automation",
icon = "__base__/graphics/technology/automation-1.png",
icon_size = 256,
effects = {
{
type = "unlock-recipe",
recipe = "burner-assembling-machine",
},
{
type = "unlock-recipe",
recipe = "steam-assembling-machine",
},
},
prerequisites = {
"automation-science-pack",
},
unit = {
count = 5,
ingredients = {
{ "automation-science-pack", 1 },
},
time = 5,
},
ignore_tech_cost_multiplier = true,
order = "a-b-0",
},
})

bobmods.lib.tech.add_prerequisite("automation", "basic-automation")
Expand Down
4 changes: 4 additions & 0 deletions bobassembly/prototypes/assembly-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ if mods["aai-loaders"] and settings.startup["aai-loaders-fit-assemblers"].value
aailoaderssize = true
end

if settings.startup["bobmods-assembly-burner"].value == true then
bobmods.lib.tech.add_recipe_unlock("steam-power", "steam-assembling-machine")
end

data.raw.technology["automation-2"].prerequisites = { "automation", "electronics" }
bobmods.lib.tech.add_prerequisite("automation-2", "steel-processing")
bobmods.lib.tech.add_prerequisite("automation-2", "logistic-science-pack")
Expand Down
4 changes: 2 additions & 2 deletions bobelectronics/prototypes/technology-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if mods["bobassembly"] then
bobmods.lib.tech.add_prerequisite("electrolyser-2", "bob-electronics")
end
if mods["bobmining"] then
bobmods.lib.tech.add_prerequisite("bob-drills-1", "bob-electronics")
bobmods.lib.tech.add_prerequisite("bob-area-drills-1", "bob-electronics")
bobmods.lib.tech.add_prerequisite("bob-drills-2", "bob-electronics")
bobmods.lib.tech.add_prerequisite("bob-area-drills-2", "bob-electronics")
bobmods.lib.tech.add_prerequisite("water-miner-2", "bob-electronics")
end
if mods["bobrevamp"] then
Expand Down
4 changes: 4 additions & 0 deletions boblogistics/prototypes/recipe/pipes-recipe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ data:extend({
{
type = "recipe",
name = "stone-pipe",
enabled = false,
ingredients = {
{ type = "item", name = "stone-brick", amount = 1 },
},
Expand All @@ -11,6 +12,7 @@ data:extend({
{
type = "recipe",
name = "stone-pipe-to-ground",
enabled = false,
ingredients = {
{ type = "item", name = "stone-pipe", amount = 10 },
{ type = "item", name = "stone-brick", amount = 5 },
Expand All @@ -21,6 +23,7 @@ data:extend({
{
type = "recipe",
name = "copper-pipe",
enabled = false,
ingredients = {
{ type = "item", name = "copper-plate", amount = 1 },
},
Expand All @@ -30,6 +33,7 @@ data:extend({
{
type = "recipe",
name = "copper-pipe-to-ground",
enabled = false,
ingredients = {
{ type = "item", name = "copper-pipe", amount = 10 },
{ type = "item", name = "copper-plate", amount = 5 },
Expand Down
8 changes: 8 additions & 0 deletions boblogistics/prototypes/repair-pack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ data:extend({
prerequisites = {
"steel-processing",
"repair-pack",
"logistic-science-pack",
},
effects = {
{
Expand All @@ -137,6 +138,7 @@ data:extend({
count = 25,
ingredients = {
{ "automation-science-pack", 1 },
{ "logistic-science-pack", 1 },
},
time = 30,
},
Expand All @@ -149,6 +151,7 @@ data:extend({
prerequisites = {
"bob-repair-pack-2",
"advanced-circuit",
"chemical-science-pack",
},
effects = {
{
Expand All @@ -161,6 +164,7 @@ data:extend({
ingredients = {
{ "automation-science-pack", 1 },
{ "logistic-science-pack", 1 },
{ "chemical-science-pack", 1 },
},
time = 30,
},
Expand All @@ -173,6 +177,7 @@ data:extend({
prerequisites = {
"bob-repair-pack-3",
"processing-unit",
"production-science-pack",
},
effects = {
{
Expand All @@ -186,6 +191,7 @@ data:extend({
{ "automation-science-pack", 1 },
{ "logistic-science-pack", 1 },
{ "chemical-science-pack", 1 },
{ "production-science-pack", 1 },
},
time = 30,
},
Expand All @@ -198,6 +204,7 @@ data:extend({
prerequisites = {
"bob-repair-pack-4",
"production-science-pack",
"utility-science-pack",
},
effects = {
{
Expand All @@ -212,6 +219,7 @@ data:extend({
{ "logistic-science-pack", 1 },
{ "chemical-science-pack", 1 },
{ "production-science-pack", 1 },
{ "utility-science-pack", 1 },
},
time = 30,
},
Expand Down
6 changes: 6 additions & 0 deletions boblogistics/prototypes/technology-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ if settings.startup["bobmods-logistics-robotparts"].value == true then
bobmods.lib.tech.add_recipe_unlock("bob-robots-3", "bob-robot-tool-4")
end

bobmods.lib.tech.add_recipe_unlock("steam-power", "copper-pipe")
bobmods.lib.tech.add_recipe_unlock("steam-power", "copper-pipe-to-ground")

bobmods.lib.tech.add_recipe_unlock("steam-power", "stone-pipe")
bobmods.lib.tech.add_recipe_unlock("steam-power", "stone-pipe-to-ground")

bobmods.lib.tech.add_recipe_unlock("steel-processing", "steel-pipe")
bobmods.lib.tech.add_recipe_unlock("steel-processing", "steel-pipe-to-ground")

Expand Down
15 changes: 7 additions & 8 deletions boblogistics/prototypes/technology.lua
Original file line number Diff line number Diff line change
Expand Up @@ -806,20 +806,19 @@ if settings.startup["bobmods-logistics-beltoverhaul"].value == true then
type = "unlock-recipe",
recipe = "basic-underground-belt",
},
{
type = "unlock-recipe",
recipe = "copper-cable",
},
{
type = "unlock-recipe",
recipe = "basic-splitter",
},
},
prerequisites = {
"automation-science-pack",
},
unit = {
research_trigger = {
type = "craft-item",
item = "iron-gear-wheel",
count = 10,
ingredients = {
{ "automation-science-pack", 1 },
},
time = 10,
},
order = "a-f-0",
ignore_tech_cost_multiplier = true,
Expand Down
2 changes: 0 additions & 2 deletions bobmining/data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ if feature_flags["quality"] then
"bob-pumpjack-1",
"bob-pumpjack-2",
"bob-pumpjack-3",
"bob-pumpjack-4",
"water-miner-1",
"water-miner-2",
"water-miner-3",
"water-miner-4",
"water-miner-5",
})
end
17 changes: 17 additions & 0 deletions bobmining/migrations/bobmining_1.3.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"item":
[
["bob-pumpjack-4", "bob-pumpjack-3"],
["water-miner-5", "water-miner-4"]
],
"recipe":
[
["bob-pumpjack-4", "bob-pumpjack-3"],
["water-miner-5", "water-miner-4"]
],
"entity":
[
["bob-pumpjack-4", "bob-pumpjack-3"],
["water-miner-5", "water-miner-4"]
]
}
26 changes: 13 additions & 13 deletions bobmining/prototypes/areadrill-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ if settings.startup["bobmods-mining-areadrills"].value == true then

if data.raw.item["cobalt-steel-alloy"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-2", "steel-plate", "cobalt-steel-alloy")
bobmods.lib.tech.add_prerequisite("bob-area-drills-2", "cobalt-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "cobalt-processing")
else
if data.raw.item["invar-alloy"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-2", "steel-plate", "invar-alloy")
bobmods.lib.tech.add_prerequisite("bob-area-drills-2", "invar-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "invar-processing")
else
if data.raw.item["brass-alloy"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-2", "steel-plate", "brass-alloy")
bobmods.lib.tech.add_prerequisite("bob-area-drills-2", "zinc-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "zinc-processing")
end
end
end

if data.raw.item["brass-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-2", "iron-gear-wheel", "brass-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-2", "zinc-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "zinc-processing")
else
if data.raw.item["steel-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-2", "iron-gear-wheel", "steel-gear-wheel")
Expand All @@ -29,46 +29,46 @@ if settings.startup["bobmods-mining-areadrills"].value == true then

if data.raw.item["bob-titanium-plate"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-3", "steel-plate", "bob-titanium-plate")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "titanium-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "titanium-processing")
else
if data.raw.item["bob-tungsten-plate"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-3", "steel-plate", "bob-tungsten-plate")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "tungsten-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "tungsten-processing")
end
end

if data.raw.item["titanium-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-3", "iron-gear-wheel", "titanium-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "titanium-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "titanium-processing")
else
if data.raw.item["tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-3", "iron-gear-wheel", "tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-3", "tungsten-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "tungsten-processing")
end
end

if data.raw.item["advanced-processing-unit"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-4", "processing-unit", "advanced-processing-unit")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "advanced-processing-unit")
bobmods.lib.tech.add_prerequisite("bob-area-drills-5", "advanced-processing-unit")
end

if data.raw.item["tungsten-carbide"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-4", "steel-plate", "tungsten-carbide")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "tungsten-alloy-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-5", "tungsten-alloy-processing")
else
if data.raw.item["copper-tungsten-alloy"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-4", "steel-plate", "copper-tungsten-alloy")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "tungsten-alloy-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-5", "tungsten-alloy-processing")
end
end

if data.raw.item["nitinol-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-4", "iron-gear-wheel", "nitinol-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "nitinol-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-5", "nitinol-processing")
else
if data.raw.item["tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-4", "iron-gear-wheel", "tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "tungsten-processing")
bobmods.lib.tech.add_prerequisite("bob-area-drills-5", "tungsten-processing")
end
end
end
Loading

0 comments on commit b69a951

Please sign in to comment.