Skip to content

Commit

Permalink
Remove landfill from tutorial techs
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Dec 12, 2023
1 parent fe5da21 commit e2a316f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
12 changes: 11 additions & 1 deletion SeaBlock/data-updates/landfill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ end
local function BuffLandfill(recipe)
seablock.lib.substingredient(recipe, "solid-mud", nil, 5)
bobmods.lib.recipe.set_energy_required(recipe, 2)
bobmods.lib.tech.remove_recipe_unlock("water-washing-1", recipe)
bobmods.lib.tech.add_recipe_unlock("landfill", recipe)
end

BuffLandfill("solid-mud-landfill")
Expand All @@ -26,5 +28,13 @@ if mods["LandfillPainting"] then
BuffLandfill("landfill-sand-3")
else
bobmods.lib.tech.remove_recipe_unlock("water-washing-2", "solid-mud-landfill")
bobmods.lib.tech.add_recipe_unlock("water-washing-1", "solid-mud-landfill")
end

-- Make landfill a red science tech
data.raw.technology["landfill"].prerequisites = { "water-washing-1" }
data.raw.technology["landfill"].unit = {
count = 10,
ingredients = { { type = item, name = "automation-science-pack", amount = 1 }},
time = 15,
}
bobmods.lib.tech.remove_prerequisite("water-washing-2", "landfill")
12 changes: 0 additions & 12 deletions SeaBlock/data-updates/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,18 +214,6 @@ for k, v in pairs(seablock.startup_techs) do
end
end

-- Make landfill a startup tutorial tech
data.raw.technology["landfill"].prerequisites = { "sb-startup1" }
data.raw.technology["landfill"].unit = {
count = 1,
ingredients = {},
time = 1,
}
bobmods.lib.tech.remove_prerequisite("water-washing-2", "landfill")
if mods["Explosive Excavation"] then
bobmods.lib.tech.remove_prerequisite("blasting-charges", "landfill")
end

-- Make bio-wood-processing a startup tutorial tech
data.raw.technology["bio-wood-processing"].prerequisites = { "sb-startup1" }
data.raw.technology["bio-wood-processing"].unit = {
Expand Down
1 change: 0 additions & 1 deletion SeaBlock/data/tables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-- They will not have prerequisites added
seablock.scripted_techs = {
["sb-startup1"] = true,
["landfill"] = true,
["sb-startup2"] = true,
["bio-wood-processing"] = true,
["sb-startup3"] = true,
Expand Down

0 comments on commit e2a316f

Please sign in to comment.