diff --git a/SeaBlock/control.lua b/SeaBlock/control.lua index 53a43e5..c8a4b2f 100644 --- a/SeaBlock/control.lua +++ b/SeaBlock/control.lua @@ -12,8 +12,8 @@ end function seablock.create_rock_chest(surface, pos) local has_items = false - if global.starting_items and (not game.is_multiplayer()) then - for item, quantity in pairs(global.starting_items) do + if storage.starting_items and (not game.is_multiplayer()) then + for item, quantity in pairs(storage.starting_items) do if quantity > 0 then has_items = true break @@ -23,7 +23,7 @@ function seablock.create_rock_chest(surface, pos) if has_items then local chest = surface.create_entity({ name = "rock-chest", position = pos, force = game.forces.neutral }) - for item, quantity in pairs(global.starting_items) do + for item, quantity in pairs(storage.starting_items) do if quantity > 0 then chest.insert({ name = item, count = quantity }) end @@ -32,9 +32,9 @@ function seablock.create_rock_chest(surface, pos) end function seablock.have_item(player, itemname, crafted) - local unlock = global.unlocks[itemname] + local unlock = storage.unlocks[itemname] -- Special case for basic-circuit because it is part of starting equipment - if unlock and (itemname ~= "basic-circuit-board" or crafted) then + if unlock and (itemname ~= "bob-basic-circuit-board" or crafted) then for _, v in ipairs(unlock) do if player.force.technologies[v] then player.force.technologies[v].researched = true @@ -51,20 +51,20 @@ end local function init() set_pvp() - global.starting_items = seablock.populate_starting_items(game.item_prototypes) + storage.starting_items = seablock.populate_starting_items(prototypes.item) if remote.interfaces.freeplay then if remote.interfaces.freeplay.set_disable_crashsite then remote.call("freeplay", "set_disable_crashsite", true) end end - global.unlocks = { + storage.unlocks = { ["angels-ore3-crushed"] = { "sb-startup1", "bio-wood-processing" }, - ["basic-circuit-board"] = { "sb-startup3", "sct-lab-t1" }, + ["bob-basic-circuit-board"] = { "sb-startup3", "sct-lab-t1" }, } - if game.technology_prototypes["sct-automation-science-pack"] then - global.unlocks["lab"] = { "sct-automation-science-pack" } + if prototypes.technology["sct-automation-science-pack"] then + storage.unlocks["lab"] = { "sct-automation-science-pack" } else - global.unlocks["lab"] = { "sb-startup4" } + storage.unlocks["lab"] = { "sb-startup4" } end if remote.interfaces["freeplay"] then @@ -130,7 +130,7 @@ script.on_event(defines.events.on_player_main_inventory_changed, function(e) if not inv then -- Compatibility with BlueprintLab_Bud17 return end - for k, v in pairs(global.unlocks) do + for k, v in pairs(storage.unlocks) do for _, v2 in ipairs(v) do if player.force.technologies[v2] @@ -153,13 +153,13 @@ script.on_configuration_changed(function(cfg) force.reset_recipes() for tech_name, tech in pairs(force.technologies) do if tech.researched then - for tech_name, effect in pairs(tech.effects) do + for tech_name, effect in pairs(tech.prototype.effects) do if effect.type == "unlock-recipe" then force.recipes[effect.recipe].enabled = true end end end - if game.technology_prototypes[tech_name].enabled then + if prototypes.technology[tech_name].enabled then force.technologies[tech_name].enabled = true end end @@ -183,9 +183,9 @@ script.on_load(function() end) script.on_event(defines.events.on_player_created, function(e) - if global.starting_items and game.is_multiplayer() then + if storage.starting_items and game.is_multiplayer() then local inv = game.players[e.player_index].get_main_inventory() - for item, quantity in pairs(global.starting_items) do + for item, quantity in pairs(storage.starting_items) do if quantity > 0 then inv.insert({ name = item, count = quantity }) end @@ -222,9 +222,9 @@ script.on_load(function() end) script.on_event(defines.events.on_player_created, function(e) - if global.starting_items and game.is_multiplayer() then + if storage.starting_items and game.is_multiplayer() then local inv = game.players[e.player_index].get_main_inventory() - for item, quantity in pairs(global.starting_items) do + for item, quantity in pairs(storage.starting_items) do if quantity > 0 then inv.insert({ name = item, count = quantity }) end diff --git a/SeaBlock/data-final-fixes.lua b/SeaBlock/data-final-fixes.lua index d82a294..598d555 100644 --- a/SeaBlock/data-final-fixes.lua +++ b/SeaBlock/data-final-fixes.lua @@ -18,9 +18,9 @@ for _, v in pairs(reactors) do end -- Refresh circuit board icon as it may have been overwritten -if data.raw.tool["sb-basic-circuit-board-tool"] and data.raw.item["basic-circuit-board"] then - seablock.lib.copy_icon(data.raw.tool["sb-basic-circuit-board-tool"], data.raw.item["basic-circuit-board"]) -end +-- if data.raw.tool["sb-basic-circuit-board-tool"] and data.raw.item["bob-basic-circuit-board"] then +-- seablock.lib.copy_icon(data.raw.tool["sb-basic-circuit-board-tool"], data.raw.item["bob-basic-circuit-board"]) +-- end require("data-final-fixes/logistics") require("data-final-fixes/icons") @@ -30,6 +30,7 @@ require("data-final-fixes/unobtainable_items") require("data-final-fixes/mapgen") require("data-final-fixes/SpaceMod") + data.raw.recipe["copper-cable"].allow_decomposition = true data.raw.recipe["paper-bleaching-1"].allow_decomposition = true @@ -39,4 +40,4 @@ for _, v in pairs(data.raw.character) do end end -bobmods.lib.tech.prerequisite_cleanup() +seablock.lib.removeingredient("automation-science-pack", "bob-glass") -- For some reason it isn't removed earlier diff --git a/SeaBlock/data-final-fixes/SpaceMod.lua b/SeaBlock/data-final-fixes/SpaceMod.lua index 1487164..d6e687f 100644 --- a/SeaBlock/data-final-fixes/SpaceMod.lua +++ b/SeaBlock/data-final-fixes/SpaceMod.lua @@ -81,10 +81,10 @@ local upgrades = { ["bob-construction-robot-4"] = "bob-construction-robot-5", -- CircuitProcessing replaces module-3 with module-4, so SpaceMod data-final-fixes -- doesn't find the modules it's expecting. - ["speed-module-4"] = "speed-module-8", - ["effectivity-module-4"] = "effectivity-module-8", - ["productivity-module-4"] = "productivity-module-8", - ["fusion-reactor-equipment-4"] = "fusion-reactor-equipment-4", -- for amount adjustment + ["bob-speed-module-4"] = "bob-speed-module-5", + ["bob-efficiency-module-4"] = "bob-efficiency-module-5", + ["bob-productivity-module-4"] = "bob-productivity-module-5", + ["bob-fission-reactor-equipment-4"] = "bob-fission-reactor-equipment-4", -- for amount adjustment } local function iterateingredients(recipe, func) @@ -112,7 +112,7 @@ local function doupgrade(ingredients) end if upgrade == "bob-construction-robot-5" then item[amountidx] = 1 - elseif upgrade == "fusion-reactor-equipment-4" then + elseif upgrade == "bob-fission-reactor-equipment-4" then item[amountidx] = item[amountidx] / 2 end end @@ -133,7 +133,7 @@ if data.raw.technology["ftl-theory-D"] then end if mods["bobtech"] then - bobmods.lib.tech.add_science_pack("ftl-theory-D2", "advanced-logistic-science-pack", 1) + bobmods.lib.tech.add_science_pack("ftl-theory-D2", "bob-advanced-logistic-science-pack", 1) bobmods.lib.tech.remove_prerequisite("ftl-theory-D1", "ftl-theory-D") bobmods.lib.tech.add_prerequisite("ftl-theory-D1", "ftl-theory-C") bobmods.lib.tech.add_prerequisite("ftl-theory-D2", "ftl-theory-D") diff --git a/SeaBlock/data-final-fixes/logistics.lua b/SeaBlock/data-final-fixes/logistics.lua index c8b5b5e..c396b58 100644 --- a/SeaBlock/data-final-fixes/logistics.lua +++ b/SeaBlock/data-final-fixes/logistics.lua @@ -7,9 +7,9 @@ local function set_speed(type, name, speed) end end -set_speed("transport-belt", "basic-transport-belt", 7.5) -set_speed("underground-belt", "basic-underground-belt", 7.5) -set_speed("splitter", "basic-splitter", 7.5) +set_speed("transport-belt", "bob-basic-transport-belt", 7.5) +set_speed("underground-belt", "bob-basic-underground-belt", 7.5) +set_speed("splitter", "bob-basic-splitter", 7.5) set_speed("transport-belt", "transport-belt", 15) set_speed("underground-belt", "underground-belt", 15) @@ -23,31 +23,31 @@ set_speed("transport-belt", "express-transport-belt", 45) set_speed("underground-belt", "express-underground-belt", 45) set_speed("splitter", "express-splitter", 45) -set_speed("transport-belt", "turbo-transport-belt", 60) -set_speed("underground-belt", "turbo-underground-belt", 60) -set_speed("splitter", "turbo-splitter", 60) +set_speed("transport-belt", "bob-turbo-transport-belt", 60) +set_speed("underground-belt", "bob-turbo-underground-belt", 60) +set_speed("splitter", "bob-turbo-splitter", 60) -set_speed("transport-belt", "ultimate-transport-belt", 75) -set_speed("underground-belt", "ultimate-underground-belt", 75) -set_speed("splitter", "ultimate-splitter", 75) +set_speed("transport-belt", "bob-ultimate-transport-belt", 75) +set_speed("underground-belt", "bob-ultimate-underground-belt", 75) +set_speed("splitter", "bob-ultimate-splitter", 75) -- Increase energy consumption of bob's extra beacons -- Also reduce module slots and effectivity -if data.raw.beacon["beacon-2"] then - data.raw.beacon["beacon-2"].energy_usage = "960kW" - data.raw.beacon["beacon-2"].module_specification.module_slots = 2 - data.raw.beacon["beacon-2"].distribution_effectivity = 0.5 +if data.raw.beacon["bob-beacon-2"] then + data.raw.beacon["bob-beacon-2"].energy_usage = "960kW" + data.raw.beacon["bob-beacon-2"].module_slots = 2 + data.raw.beacon["bob-beacon-2"].distribution_effectivity = 0.5 end -if data.raw.beacon["beacon-3"] then - data.raw.beacon["beacon-3"].energy_usage = "1920kW" - data.raw.beacon["beacon-3"].module_specification.module_slots = 2 - data.raw.beacon["beacon-3"].distribution_effectivity = 0.5 +if data.raw.beacon["bob-beacon-3"] then + data.raw.beacon["bob-beacon-3"].energy_usage = "1920kW" + data.raw.beacon["bob-beacon-3"].module_slots = 2 + data.raw.beacon["bob-beacon-3"].distribution_effectivity = 0.5 end -- Undo boblogistcs changes to logistic system research bobmods.lib.tech.add_new_science_pack("logistic-system", "production-science-pack", 1) -if data.raw.tool["advanced-logistic-science-pack"] then - bobmods.lib.tech.add_new_science_pack("logistic-system", "advanced-logistic-science-pack", 1) +if data.raw.tool["bob-advanced-logistic-science-pack"] then + bobmods.lib.tech.add_new_science_pack("logistic-system", "bob-advanced-logistic-science-pack", 1) else bobmods.lib.tech.add_new_science_pack("logistic-system", "utility-science-pack", 1) end @@ -66,8 +66,8 @@ for _, v in pairs(logisticstechs) do bobmods.lib.tech.add_new_science_pack(v, "production-science-pack", 1) bobmods.lib.tech.add_new_science_pack(v, "utility-science-pack", 1) - if data.raw.tool["advanced-logistic-science-pack"] then - bobmods.lib.tech.add_new_science_pack(v, "advanced-logistic-science-pack", 1) + if data.raw.tool["bob-advanced-logistic-science-pack"] then + bobmods.lib.tech.add_new_science_pack(v, "bob-advanced-logistic-science-pack", 1) end end end @@ -81,16 +81,16 @@ bobmods.lib.tech.add_prerequisite("logistic-system-2", "utility-science-pack") -- No logistics chest at green science level. local function revertchests(tech) local neweffects = { - { type = "unlock-recipe", recipe = "logistic-chest-passive-provider" }, - { type = "unlock-recipe", recipe = "logistic-chest-storage" }, + { type = "unlock-recipe", recipe = "passive-provider-chest" }, + { type = "unlock-recipe", recipe = "storage-chest" }, } for k, v in pairs(tech.effects) do if v.type ~= "unlock-recipe" or ( - v.recipe ~= "logistic-chest-passive-provider" - and v.recipe ~= "logistic-chest-storage" - and v.recipe ~= "logistic-chest-requester" + v.recipe ~= "passive-provider-chest" + and v.recipe ~= "storage-chest" + and v.recipe ~= "requester-chest" ) then table.insert(neweffects, v) @@ -102,14 +102,14 @@ revertchests(data.raw.technology["logistic-robotics"]) revertchests(data.raw.technology["construction-robotics"]) local found = false for k, v in pairs(data.raw.technology["logistic-system"].effects) do - if v.type == "unlock-recipe" and v.recipe == "logistic-chest-requester" then + if v.type == "unlock-recipe" and v.recipe == "requester-chest" then found = true end end if not found then table.insert( data.raw.technology["logistic-system"].effects, - { type = "unlock-recipe", recipe = "logistic-chest-requester" } + { type = "unlock-recipe", recipe = "requester-chest" } ) end diff --git a/SeaBlock/data-final-fixes/mapgen.lua b/SeaBlock/data-final-fixes/mapgen.lua index f7ad3c9..c47112d 100644 --- a/SeaBlock/data-final-fixes/mapgen.lua +++ b/SeaBlock/data-final-fixes/mapgen.lua @@ -1,12 +1,44 @@ -- No resource placement for k, v in pairs(data.raw.resource) do v.autoplace = nil + -- if v.autoplace then + -- data.raw.resource[k].autoplace.default_enabled = false + -- end end +-- log("HELLO") +-- log(serpent.block(data.raw["planet"]["nauvis"].map_gen_settings)) +data.raw["planet"]["nauvis"].map_gen_settings.autoplace_settings = { + tile = { + settings = { + deepwater = {}, + water = {}, + ["sand-4"] = {}, + -- ["sand-5"] = {}, + } + }, + entity = { + settings = { + ["desert-garden"] = {}, + ["temperate-garden"] = {}, + ["swamp-garden"] = {}, + + ["desert-tree"] = {}, + ["temperate-tree"] = {}, + ["swamp-tree"] = {}, + } + } +} +data.raw["planet"]["nauvis"].map_gen_settings.autoplace_controls = nil + + -- No spawners for k, v in pairs(data.raw["unit-spawner"]) do v.autoplace = nil - v.control = nil + -- v.control = nil + if v.autoplace then + v.autoplace.default_enabled = false + end end -- No trees @@ -22,15 +54,28 @@ for k, v in pairs(data.raw.tree) do then v.autoplace = nil seablock.lib.add_flag("tree", v.name, "not-deconstructable") + else + v.autoplace.control = nil end end -- No rocks for k, v in pairs(data.raw["simple-entity"]) do v.autoplace = nil + -- if v.autoplace then + -- v.autoplace.default_enabled = false + -- end seablock.lib.add_flag("simple-entity", v.name, "not-deconstructable") end +for k, v in pairs(data.raw["optimized-decorative"]) do + v.autoplace = nil + -- if v.autoplace then + -- v.autoplace.default_enabled = false + -- end + seablock.lib.add_flag("optimized-decorative", v.name, "not-deconstructable") +end + local keepcontrols = {} local turrets = data.raw["turret"] for turret_name, turret in pairs(turrets) do @@ -39,10 +84,13 @@ for turret_name, turret in pairs(turrets) do end end +--keepcontrols["angels-fissure"] = true + local controls = data.raw["autoplace-control"] for k, v in pairs(controls) do if k ~= "enemy-base" and not keepcontrols[k] then - controls[k] = nil + -- data.raw["autoplace-control"][k].hidden = true + data.raw["autoplace-control"][k] = nil end end diff --git a/SeaBlock/data-final-fixes/recipe.lua b/SeaBlock/data-final-fixes/recipe.lua index a083498..3b50ef9 100644 --- a/SeaBlock/data-final-fixes/recipe.lua +++ b/SeaBlock/data-final-fixes/recipe.lua @@ -1,8 +1,8 @@ -- Revert massive buff of insulated wire recipe -bobmods.lib.recipe.set_energy_required("insulated-cable", 2) -seablock.lib.substingredient("insulated-cable", "tinned-copper-cable", nil, 8) -seablock.lib.substingredient("insulated-cable", "rubber", nil, 8) -bobmods.lib.recipe.set_result("insulated-cable", { "insulated-cable", 8 }) +bobmods.lib.recipe.set_energy_required("bob-insulated-cable", 2) +seablock.lib.substingredient("bob-insulated-cable", "tinned-copper-cable", nil, 8) +seablock.lib.substingredient("bob-insulated-cable", "rubber", nil, 8) +bobmods.lib.recipe.set_result("bob-insulated-cable", { type = "item", name = "insulated-cable", amount = 8 }) -- Combine Stone and Crushed Stone local function replace_stone(recipe) diff --git a/SeaBlock/data-final-fixes/tech-tree.lua b/SeaBlock/data-final-fixes/tech-tree.lua index e9987f5..8bcbbd7 100644 --- a/SeaBlock/data-final-fixes/tech-tree.lua +++ b/SeaBlock/data-final-fixes/tech-tree.lua @@ -1,25 +1,25 @@ -- Remove empty bob's techs -bobmods.lib.tech.remove_prerequisite("cobalt-processing", "chemical-processing-1") -bobmods.lib.tech.remove_prerequisite("grinding", "chemical-processing-1") -bobmods.lib.tech.remove_prerequisite("lithium-processing", "chemical-processing-1") +bobmods.lib.tech.remove_prerequisite("bob-cobalt-processing", "bob-chemical-processing-1") +bobmods.lib.tech.remove_prerequisite("bob-grinding", "bob-chemical-processing-1") +bobmods.lib.tech.remove_prerequisite("bob-lithium-processing", "bob-chemical-processing-1") -bobmods.lib.tech.remove_prerequisite("cobalt-processing", "chemical-processing-2") -bobmods.lib.tech.remove_prerequisite("silicon-processing", "chemical-processing-2") -bobmods.lib.tech.remove_prerequisite("advanced-electronics", "chemical-processing-2") -bobmods.lib.tech.remove_prerequisite("titanium-processing", "chemical-processing-2") -bobmods.lib.tech.remove_prerequisite("tungsten-processing", "chemical-processing-2") +bobmods.lib.tech.remove_prerequisite("bob-cobalt-processing", "bob-chemical-processing-2") +bobmods.lib.tech.remove_prerequisite("bob-silicon-processing", "bob-chemical-processing-2") +bobmods.lib.tech.remove_prerequisite("advanced-circuit", "bob-chemical-processing-2") +bobmods.lib.tech.remove_prerequisite("bob-titanium-processing", "bob-chemical-processing-2") +bobmods.lib.tech.remove_prerequisite("bob-tungsten-processing", "bob-chemical-processing-2") -seablock.lib.hide_technology("electrolysis-1") -seablock.lib.hide_technology("electrolysis-2") -seablock.lib.hide_technology("chemical-processing-1") -seablock.lib.hide_technology("chemical-processing-2") +seablock.lib.hide_technology("bob-electrolysis-1") +seablock.lib.hide_technology("bob-electrolysis-2") +seablock.lib.hide_technology("bob-chemical-processing-1") +seablock.lib.hide_technology("bob-chemical-processing-2") bobmods.lib.tech.remove_prerequisite("circuit-network", "bio-wood-processing-2") bobmods.lib.tech.add_prerequisite("circuit-network", "bio-paper-1") bobmods.lib.tech.remove_prerequisite("rubbers", "circuit-network") -- Unhide solid fuel from hydrogen -seablock.lib.unhide_recipe("solid-fuel-from-hydrogen") -seablock.lib.add_recipe_unlock("flammables", "solid-fuel-from-hydrogen", 4) +seablock.lib.unhide_recipe("bob-solid-fuel-from-hydrogen") +seablock.lib.add_recipe_unlock("flammables", "bob-solid-fuel-from-hydrogen", 4) -bobmods.lib.tech.replace_prerequisite("lithium-processing", "chlorine-processing-4", "chlorine-processing-2") +bobmods.lib.tech.replace_prerequisite("bob-lithium-processing", "chlorine-processing-4", "chlorine-processing-2") diff --git a/SeaBlock/data-final-fixes/unobtainable_items.lua b/SeaBlock/data-final-fixes/unobtainable_items.lua index 41cee79..97edbd0 100644 --- a/SeaBlock/data-final-fixes/unobtainable_items.lua +++ b/SeaBlock/data-final-fixes/unobtainable_items.lua @@ -27,9 +27,9 @@ local function updaterecipe(recipe) for _, v in pairs(recipe.ingredients) do updateline(v) end - if recipe.result and itemrename[recipe.result] then - recipe.result = itemrename[recipe.result] - end + -- if recipe.result and itemrename[recipe.result] then + -- recipe.result = itemrename[recipe.result] + -- end for _, v in pairs(recipe.results or {}) do updateline(v) end @@ -41,21 +41,21 @@ end -- Recipes to unconditionally remove local removerecipes = {} for _, v in ipairs({ - "alien-artifact-blue-from-basic", - "alien-artifact-green-from-basic", - "alien-artifact-orange-from-basic", - "alien-artifact-purple-from-basic", - "alien-artifact-red-from-basic", - "alien-artifact-yellow-from-basic", + "bob-alien-artifact-blue", + "bob-alien-artifact-green", + "bob-alien-artifact-orange", + "bob-alien-artifact-purple", + "bob-alien-artifact-red", + "bob-alien-artifact-yellow", "angels-chemical-void-gas-natural-1", "angels-chemical-void-liquid-condensates", "angels-water-void-crystal-matrix", - "angels-water-void-lithia-water", + "angels-water-void-bob-lithia-water", "angelsore1-crushed-hand", "angelsore3-crushed-hand", "big-burner-generator", "bio-tile", - "bob-coal-from-wood", + "bob-carbon-from-wood", "bob-resin-wood", "burner-generator", "burner-mining-drill", @@ -72,18 +72,18 @@ for _, v in ipairs({ "empty-diesel-fuel-barrel", "empty-gas-natural-1-barrel", "empty-liquid-condensates-barrel", - "empty-lithia-water-barrel", - "fill-crystal-matrix-barrel", + "empty-bob-lithia-water-barrel", + "crystal-matrix-barrel", "fill-diesel-fuel-barrel", - "fill-gas-natural-1-barrel", - "fill-liquid-condensates-barrel", - "fill-lithia-water-barrel", + "gas-natural-1-barrel", + "liquid-condensates-barrel", + "bob-lithia-water-barrel", "gas-fractioning-condensates", "gas-phosgene", "gas-separation", "oil-steam-boiler", "petroleum-generator", - "protection-field-goopless", + "protection-field-goopless", --comes from spacemod "pumpjack", "slag-processing-7", "slag-processing-8", @@ -108,7 +108,7 @@ for _, v in ipairs({ "burner-mining-drill", "coal", "coal-crushed", - "diesel-fuel", + "diesel-fuel", --doesn't seem to exist anymore ?? "diesel-fuel-barrel", "electric-mining-drill", "gas-natural-1", @@ -117,8 +117,8 @@ for _, v in ipairs({ "gas-phosgene-barrel", "liquid-condensates", "liquid-condensates-barrel", - "lithia-water", - "lithia-water-barrel", + "bob-lithia-water", + "bob-lithia-water-barrel", "oil-steam-boiler", "petroleum-generator", "pumpjack", @@ -252,6 +252,16 @@ end -- Clear the list of science packs that alien lab can take -- This prevents YAFC warning -if data.raw.lab["lab-alien"] then - data.raw.lab["lab-alien"].inputs = {} +if data.raw.lab["bob-lab-alien"] then + -- data.raw.lab["bob-lab-alien"].inputs = {} -- disabled because of the following +end +-- TODO: We now need a dummy lab that can take all the science packs or else some techs can't load (even if hidden) +bobmods.lib.safe_insert(data.raw.lab["bob-lab-alien"].inputs, "space-science-pack") +if data.raw.tool["sct-bio-science-pack"] then + bobmods.lib.safe_insert(data.raw.lab["bob-lab-alien"].inputs, "sct-bio-science-pack") end +bobmods.lib.safe_insert(data.raw.lab["bob-lab-alien"].inputs, "automation-science-pack") +bobmods.lib.safe_insert(data.raw.lab["bob-lab-alien"].inputs, "logistic-science-pack") +bobmods.lib.safe_insert(data.raw.lab["bob-lab-alien"].inputs, "chemical-science-pack") +bobmods.lib.safe_insert(data.raw.lab["bob-lab-alien"].inputs, "production-science-pack") +bobmods.lib.safe_insert(data.raw.lab["bob-lab-alien"].inputs, "utility-science-pack") \ No newline at end of file diff --git a/SeaBlock/data-updates/Companion_Drones.lua b/SeaBlock/data-updates/Companion_Drones.lua index 5757b07..e302d2e 100644 --- a/SeaBlock/data-updates/Companion_Drones.lua +++ b/SeaBlock/data-updates/Companion_Drones.lua @@ -1,7 +1,7 @@ if mods["Companion_Drones"] then - bobmods.lib.tech.add_recipe_unlock("electronics", "companion") - bobmods.lib.tech.add_recipe_unlock("electronics", "companion-roboport-equipment") - bobmods.lib.tech.add_recipe_unlock("electronics", "companion-reactor-equipment") + bobmods.lib.tech.add_recipe_unlock("bob-electronics", "companion") + bobmods.lib.tech.add_recipe_unlock("bob-electronics", "companion-roboport-equipment") + bobmods.lib.tech.add_recipe_unlock("bob-electronics", "companion-reactor-equipment") bobmods.lib.tech.add_recipe_unlock("energy-shield-mk2-equipment", "companion-shield-equipment") bobmods.lib.recipe.set_ingredient("companion-shield-equipment", { "energy-shield-mk2-equipment", 1 }) diff --git a/SeaBlock/data-updates/SpaceMod.lua b/SeaBlock/data-updates/SpaceMod.lua index 5170fc3..77748b7 100644 --- a/SeaBlock/data-updates/SpaceMod.lua +++ b/SeaBlock/data-updates/SpaceMod.lua @@ -23,11 +23,11 @@ if mods["SpaceMod"] then if not mods["bobmodules"] then -- Do nothing elseif mods["CircuitProcessing"] then - bobmods.lib.tech.add_prerequisite("space-assembly", "effectivity-module-4") - bobmods.lib.tech.add_prerequisite("space-assembly", "productivity-module-4") - bobmods.lib.tech.add_prerequisite("space-assembly", "speed-module-4") + bobmods.lib.tech.add_prerequisite("space-assembly", "bob-efficiency-module-4") + bobmods.lib.tech.add_prerequisite("space-assembly", "bob-productivity-module-4") + bobmods.lib.tech.add_prerequisite("space-assembly", "bob-speed-module-4") else - bobmods.lib.tech.add_prerequisite("space-assembly", "productivity-module-8") + bobmods.lib.tech.add_prerequisite("space-assembly", "bob-productivity-module-5") end if mods["bobpower"] and settings.startup["bobmods-power-solar"].value == true then diff --git a/SeaBlock/data-updates/algae.lua b/SeaBlock/data-updates/algae.lua index d4b843c..6a8a0ad 100644 --- a/SeaBlock/data-updates/algae.lua +++ b/SeaBlock/data-updates/algae.lua @@ -12,7 +12,7 @@ data.raw.technology["bio-processing-green"].localised_name = { "technology-name. -- Move Lithia Salt to Thermal Water Extraction seablock.lib.moveeffect("algae-brown-burning", "bio-processing-green", "thermal-water-extraction", 2) -bobmods.lib.tech.add_prerequisite("lithium-processing", "thermal-water-extraction") +bobmods.lib.tech.add_prerequisite("bob-lithium-processing", "thermal-water-extraction") -- Change lithium crafting category bobmods.lib.recipe.set_category("lithium", "petrochem-electrolyser") @@ -58,36 +58,19 @@ data.raw.recipe["wood-pellets"].energy_required = 3 -- Reduce cost of Algae farm 2 -local buildingmulti = angelsmods.marathon.buildingmulti -local buildingtime = angelsmods.marathon.buildingtime - angelsmods.functions.RB.build({ { type = "recipe", name = "algae-farm-2", - normal = { - energy_required = 5, - enabled = false, - ingredients = { - { type = "item", name = "algaefarm-2", amount = 1 }, - { type = "item", name = "t0-plate", amount = 11 }, - { type = "item", name = "t0-circuit", amount = 4 }, - { type = "item", name = "t0-brick", amount = 11 }, - { type = "item", name = "t0-pipe", amount = 18 }, - }, - result = "algae-farm-2", - }, - expensive = { - energy_required = 5 * buildingtime, - enabled = false, - ingredients = { - { type = "item", name = "algaefarm-2", amount = 1 }, - { type = "item", name = "t0-plate", amount = 11 * buildingmulti }, - { type = "item", name = "t0-circuit", amount = 4 * buildingmulti }, - { type = "item", name = "t0-brick", amount = 11 * buildingmulti }, - { type = "item", name = "t0-pipe", amount = 18 * buildingmulti }, - }, - result = "algae-farm-2", + energy_required = 5, + enabled = false, + ingredients = { + { type = "item", name = "algaefarm-2", amount = 1 }, + { type = "item", name = "t0-plate", amount = 11 }, + { type = "item", name = "t0-circuit", amount = 4 }, + { type = "item", name = "t0-brick", amount = 11 }, + { type = "item", name = "t0-pipe", amount = 18 }, }, + results = {{type = "item", name = "algae-farm-2", amount = 1}} }, }) diff --git a/SeaBlock/data-updates/building-prerequisites.lua b/SeaBlock/data-updates/building-prerequisites.lua index 8f81650..16e7fa7 100644 --- a/SeaBlock/data-updates/building-prerequisites.lua +++ b/SeaBlock/data-updates/building-prerequisites.lua @@ -1,13 +1,13 @@ -- Bronze prerequisites -bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-1", "alloy-processing") -bobmods.lib.tech.add_prerequisite("angels-cooling", "alloy-processing") -bobmods.lib.tech.add_prerequisite("bio-nutrient-paste", "alloy-processing") -bobmods.lib.tech.add_prerequisite("ore-floatation", "alloy-processing") -bobmods.lib.tech.add_prerequisite("ore-processing-1", "alloy-processing") -bobmods.lib.tech.add_prerequisite("powder-metallurgy-2", "alloy-processing") -bobmods.lib.tech.add_prerequisite("strand-casting-1", "alloy-processing") -bobmods.lib.tech.add_prerequisite("thermal-water-extraction", "alloy-processing") -bobmods.lib.tech.add_prerequisite("water-washing-2", "alloy-processing") +bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-1", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("angels-cooling", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("bio-nutrient-paste", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("ore-floatation", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("ore-processing-1", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("powder-metallurgy-2", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("strand-casting-1", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("thermal-water-extraction", "bob-alloy-processing") +bobmods.lib.tech.add_prerequisite("water-washing-2", "bob-alloy-processing") -- Clay Brick prerequisites bobmods.lib.tech.add_prerequisite("advanced-ore-refining-1", "angels-stone-smelting-1") @@ -17,16 +17,16 @@ bobmods.lib.tech.add_prerequisite("fluid-handling", "angels-stone-smelting-1") bobmods.lib.tech.add_prerequisite("gardens", "angels-stone-smelting-1") -- Brass prerequisites -bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-2", "zinc-processing") -bobmods.lib.tech.add_prerequisite("angels-metallurgy-3", "zinc-processing") -bobmods.lib.tech.add_prerequisite("automation-3", "zinc-processing") -bobmods.lib.tech.add_prerequisite("bio-desert-farm", "zinc-processing") -bobmods.lib.tech.add_prerequisite("bio-refugium-puffer-1", "zinc-processing") -bobmods.lib.tech.add_prerequisite("bio-swamp-farm", "zinc-processing") -bobmods.lib.tech.add_prerequisite("bio-temperate-farm", "zinc-processing") -bobmods.lib.tech.add_prerequisite("electronics-machine-2", "zinc-processing") -bobmods.lib.tech.add_prerequisite("slag-processing-2", "zinc-processing") -bobmods.lib.tech.add_prerequisite("water-treatment-3", "zinc-processing") +bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-2", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("angels-metallurgy-3", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("automation-3", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("bio-desert-farm", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("bio-refugium-puffer-1", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("bio-swamp-farm", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("bio-temperate-farm", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("bob-electronics-machine-2", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("slag-processing-2", "bob-zinc-processing") +bobmods.lib.tech.add_prerequisite("water-treatment-3", "bob-zinc-processing") -- Concrete Brick prerequisites bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-2", "angels-stone-smelting-2") @@ -39,12 +39,12 @@ bobmods.lib.tech.add_prerequisite("slag-processing-2", "angels-stone-smelting-2" bobmods.lib.tech.add_prerequisite("water-treatment-3", "angels-stone-smelting-2") -- Titanium prerequisites -bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-3", "titanium-processing") -bobmods.lib.tech.add_prerequisite("angels-metallurgy-4", "titanium-processing") -bobmods.lib.tech.add_prerequisite("automation-4", "titanium-processing") -bobmods.lib.tech.add_prerequisite("bio-refugium-biter-1", "titanium-processing") -bobmods.lib.tech.add_prerequisite("slag-processing-3", "titanium-processing") -bobmods.lib.tech.add_prerequisite("water-treatment-4", "titanium-processing") +bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-3", "bob-titanium-processing") +bobmods.lib.tech.add_prerequisite("angels-metallurgy-4", "bob-titanium-processing") +bobmods.lib.tech.add_prerequisite("automation-4", "bob-titanium-processing") +bobmods.lib.tech.add_prerequisite("bio-refugium-biter-1", "bob-titanium-processing") +bobmods.lib.tech.add_prerequisite("slag-processing-3", "bob-titanium-processing") +bobmods.lib.tech.add_prerequisite("water-treatment-4", "bob-titanium-processing") -- Reinforced concrete brick bobmods.lib.tech.add_prerequisite("angels-advanced-chemistry-3", "angels-stone-smelting-3") @@ -54,13 +54,13 @@ bobmods.lib.tech.add_prerequisite("slag-processing-3", "angels-stone-smelting-3" bobmods.lib.tech.add_prerequisite("water-treatment-4", "angels-stone-smelting-3") -- Copper tungsten / tungsten carbide prerequisites -bobmods.lib.tech.add_prerequisite("ore-processing-5", "tungsten-alloy-processing") +bobmods.lib.tech.add_prerequisite("ore-processing-5", "bob-tungsten-alloy-processing") -- Nitinol prerequisites -bobmods.lib.tech.add_prerequisite("ore-processing-5", "nitinol-processing") +bobmods.lib.tech.add_prerequisite("ore-processing-5", "bob-nitinol-processing") -- Advanced circuit -bobmods.lib.tech.add_prerequisite("tank", "advanced-electronics") +bobmods.lib.tech.add_prerequisite("tank", "advanced-circuit") -- Processing unit -bobmods.lib.tech.add_prerequisite("bio-refugium-biter-1", "advanced-electronics-2") +bobmods.lib.tech.add_prerequisite("bio-refugium-biter-1", "processing-unit") diff --git a/SeaBlock/data-updates/catalyst-recipes.lua b/SeaBlock/data-updates/catalyst-recipes.lua index 931ec39..97d039e 100644 --- a/SeaBlock/data-updates/catalyst-recipes.lua +++ b/SeaBlock/data-updates/catalyst-recipes.lua @@ -10,8 +10,8 @@ bobmods.lib.recipe.set_ingredients("catalyst-metal-green", { }) bobmods.lib.recipe.set_ingredients("catalyst-metal-blue", { { type = "item", name = "catalyst-metal-carrier", amount = 10 }, - { type = "item", name = "bauxite-ore", amount = 1 }, - { type = "item", name = "silver-ore", amount = 1 }, + { type = "item", name = "bob-bauxite-ore", amount = 1 }, + { type = "item", name = "bob-silver-ore", amount = 1 }, }) bobmods.lib.tech.add_recipe_unlock("angels-advanced-chemistry-4", "catalyst-metal-purple") diff --git a/SeaBlock/data-updates/clowns.lua b/SeaBlock/data-updates/clowns.lua index 541c30e..09dc391 100644 --- a/SeaBlock/data-updates/clowns.lua +++ b/SeaBlock/data-updates/clowns.lua @@ -23,23 +23,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore1", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore1", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore1", amount = 1 }, }, icon_size = 32, order = "a", @@ -55,23 +44,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore2", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore2", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore2", amount = 1 }, }, icon_size = 32, order = "b", @@ -87,23 +65,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore3", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore3", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore3", amount = 1 }, }, icon_size = 32, order = "c", @@ -119,23 +86,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore4", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore4", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore4", amount = 1 }, }, icon_size = 32, order = "d", @@ -151,23 +107,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore5", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore5", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore5", amount = 1 }, }, icon_size = 32, order = "e", @@ -183,24 +128,14 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore6", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore6", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore6", amount = 1 }, }, + icon_size = 32, order = "f", }, @@ -215,23 +150,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore7", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore7", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore7", amount = 1 }, }, icon_size = 32, order = "g", @@ -247,23 +171,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore8", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore8", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore8", amount = 1 }, }, icon_size = 32, order = "h", @@ -279,23 +192,12 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "slag-processing-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 25 }, - }, - results = { - { type = "item", name = "clowns-ore9", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "fluid", name = "mineral-sludge", amount = 25 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "fluid", name = "mineral-sludge", amount = 50 }, - }, - results = { - { type = "item", name = "clowns-ore9", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-ore9", amount = 1 }, }, icon_size = 32, order = "i", @@ -307,25 +209,13 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "resource-refining-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "item", name = "solid-sand", amount = 1 }, - { type = "item", name = "stone-crushed", amount = 6 }, - }, - results = { - { type = "item", name = "clowns-resource1", amount = 1 }, - }, + energy_required = 4, + ingredients = { + { type = "item", name = "solid-sand", amount = 1 }, + { type = "item", name = "stone", amount = 6 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "item", name = "solid-sand", amount = 1 }, - { type = "item", name = "stone-crushed", amount = 12 }, - }, - results = { - { type = "item", name = "clowns-resource1", amount = 1 }, - }, + results = { + { type = "item", name = "clowns-resource1", amount = 1 }, }, icon_size = 32, order = "j", @@ -337,25 +227,13 @@ if mods["Clowns-Extended-Minerals"] then subgroup = "resource-refining-2", enabled = false, allow_decomposition = false, - normal = { - energy_required = 4, - ingredients = { - { type = "item", name = "solid-sand", amount = 5 }, - { type = "item", name = "blue-cellulose-fiber", amount = 1 }, - }, - results = { - { type = "item", name = "clowns-resource2", amount = 5 }, - }, + energy_required = 4, + ingredients = { + { type = "item", name = "solid-sand", amount = 5 }, + { type = "item", name = "blue-cellulose-fiber", amount = 1 }, }, - expensive = { - energy_required = 8, - ingredients = { - { type = "item", name = "solid-sand", amount = 5 }, - { type = "item", name = "blue-cellulose-fiber", amount = 2 }, - }, - results = { - { type = "item", name = "clowns-resource2", amount = 5 }, - }, + results = { + { type = "item", name = "clowns-resource2", amount = 5 }, }, icon_size = 32, order = "k", diff --git a/SeaBlock/data-updates/coal.lua b/SeaBlock/data-updates/coal.lua index 3b32082..ebddc46 100644 --- a/SeaBlock/data-updates/coal.lua +++ b/SeaBlock/data-updates/coal.lua @@ -1,13 +1,13 @@ -- Coal removal seablock.lib.substingredient("grenade", "coal", "wood-charcoal") seablock.lib.substingredient("explosives", "coal", "wood-charcoal") -seablock.lib.substingredient("solid-fuel-from-hydrogen", "coal", "wood-charcoal") +seablock.lib.substingredient("bob-solid-fuel-from-hydrogen", "coal", "wood-charcoal") if mods["bobenemies"] then - seablock.lib.substingredient("alien-poison", "coal", "wood-charcoal") - seablock.lib.substingredient("alien-explosive", "coal", "wood-charcoal") + seablock.lib.substingredient("bob-alien-poison", "coal", "wood-charcoal") + seablock.lib.substingredient("bob-alien-explosive", "coal", "wood-charcoal") end seablock.lib.substingredient("filter-coal", "coal", "wood-charcoal") -seablock.lib.substingredient("carbon", "coal", "wood-charcoal") +seablock.lib.substingredient("bob-carbon", "coal", "wood-charcoal") if mods["Transport_Drones"] then seablock.lib.substingredient("road", "coal", "wood-charcoal") end @@ -23,9 +23,9 @@ angelsmods.functions.move_item("pellet-coke", "bio-processing-wood", "f[pellet-c angelsmods.functions.move_item("pellet-coke", "bio-processing-wood", "f[pellet-coke]", "recipe") -- Clear fuel value so these don't appear in Helmod's fuel picker -data.raw.item["carbon"].fuel_emissions_multiplier = nil -data.raw.item["carbon"].fuel_value = nil -data.raw.item["carbon"].fuel_category = nil +data.raw.item["bob-carbon"].fuel_emissions_multiplier = nil +data.raw.item["bob-carbon"].fuel_value = nil +data.raw.item["bob-carbon"].fuel_category = nil data.raw.item["coal"].fuel_emissions_multiplier = nil data.raw.item["coal"].fuel_value = nil data.raw.item["coal"].fuel_category = nil diff --git a/SeaBlock/data-updates/concrete.lua b/SeaBlock/data-updates/concrete.lua index 7a8ae6f..e4436d8 100644 --- a/SeaBlock/data-updates/concrete.lua +++ b/SeaBlock/data-updates/concrete.lua @@ -1,9 +1,9 @@ -- Swap out concrete for bricks -if data.raw.recipe["burner-reactor-2"] then - seablock.lib.substingredient("burner-reactor-2", "concrete", "concrete-brick", nil) - bobmods.lib.tech.remove_prerequisite("burner-reactor-2", "concrete") - bobmods.lib.tech.add_prerequisite("burner-reactor-2", "angels-stone-smelting-2") +if data.raw.recipe["bob-burner-reactor-2"] then + seablock.lib.substingredient("bob-burner-reactor-2", "concrete", "concrete-brick", nil) + bobmods.lib.tech.remove_prerequisite("bob-burner-reactor-2", "concrete") + bobmods.lib.tech.add_prerequisite("bob-burner-reactor-2", "angels-stone-smelting-2") end seablock.lib.substingredient("centrifuge", "concrete", "concrete-brick", nil) if data.raw.recipe["fluid-reactor-2"] then @@ -33,43 +33,43 @@ if item and item.place_as_tile then item.place_as_tile["result"] = "tile-reinforced-concrete-brick" end -item = data.raw.tile["concrete"] -if item then - item.minable["result"] = "concrete-brick" - item.placeable_by = { item = "concrete-brick", count = 1 } - item.walking_speed_modifier = 1.4 +local tile = data.raw.tile["concrete"] +if tile then + tile.minable["result"] = "concrete-brick" + tile.placeable_by = { item = "concrete-brick", count = 1 } + tile.walking_speed_modifier = 1.4 end -item = data.raw.tile["refined-concrete"] -if item then - item.minable["result"] = "reinforced-concrete-brick" - item.placeable_by = { item = "reinforced-concrete-brick", count = 1 } - item.walking_speed_modifier = 1.55 +tile = data.raw.tile["refined-concrete"] +if tile then + tile.minable["result"] = "reinforced-concrete-brick" + tile.placeable_by = { item = "reinforced-concrete-brick", count = 1 } + tile.walking_speed_modifier = 1.55 end -item = data.raw.tile["tile-concrete-brick"] -if item then - item.minable["result"] = "concrete" - item.placeable_by = { item = "concrete", count = 1 } - item.walking_speed_modifier = 1.4 +tile = data.raw.tile["tile-concrete-brick"] +if tile then + tile.minable["result"] = "concrete" + tile.placeable_by = { item = "concrete", count = 1 } + tile.walking_speed_modifier = 1.4 end -item = data.raw.tile["tile-reinforced-concrete-brick"] -if item then - item.minable["result"] = "refined-concrete" - item.placeable_by = { item = "refined-concrete", count = 1 } - item.walking_speed_modifier = 1.55 +tile = data.raw.tile["tile-reinforced-concrete-brick"] +if tile then + tile.minable["result"] = "refined-concrete" + tile.placeable_by = { item = "refined-concrete", count = 1 } + tile.walking_speed_modifier = 1.55 end -item = data.raw.tile["hazard-concrete-left"] -if item then - item.walking_speed_modifier = 1.4 +tile = data.raw.tile["hazard-concrete-left"] +if tile then + tile.walking_speed_modifier = 1.4 end -item = data.raw.tile["hazard-concrete-right"] -if item then - item.walking_speed_modifier = 1.4 +tile = data.raw.tile["hazard-concrete-right"] +if tile then + tile.walking_speed_modifier = 1.4 end -item = data.raw.tile["refined-hazard-concrete-left"] -if item then - item.walking_speed_modifier = 1.55 +tile = data.raw.tile["refined-hazard-concrete-left"] +if tile then + tile.walking_speed_modifier = 1.55 end -item = data.raw.tile["refined-hazard-concrete-right"] -if item then - item.walking_speed_modifier = 1.55 +tile = data.raw.tile["refined-hazard-concrete-right"] +if tile then + tile.walking_speed_modifier = 1.55 end diff --git a/SeaBlock/data-updates/fuel.lua b/SeaBlock/data-updates/fuel.lua index 11f7ff9..d363936 100644 --- a/SeaBlock/data-updates/fuel.lua +++ b/SeaBlock/data-updates/fuel.lua @@ -4,8 +4,8 @@ data.raw.item["wood-charcoal"].fuel_value = "4MJ" data.raw.item["pellet-coke"].fuel_value = "24MJ" -- Make hydrazine solid fuel match fuel_value -if data.raw.fluid["hydrazine"] then - local hydrazinevalue = data.raw.fluid["hydrazine"].fuel_value +if data.raw.fluid["gas-hydrazine"] then + local hydrazinevalue = data.raw.fluid["gas-hydrazine"].fuel_value data.raw.fluid["gas-hydrazine"].fuel_value = hydrazinevalue if hydrazinevalue:sub(-2) == "kJ" then local hydrazinevaluekj = tonumber(hydrazinevalue:sub(1, -3)) @@ -18,8 +18,8 @@ data.raw.fluid["liquid-fuel-oil"].fuel_value = "1MJ" data.raw.fluid["liquid-naphtha"].fuel_value = "0.5MJ" data.raw.fluid["gas-methane"].fuel_value = "0.5MJ" data.raw.fluid["crude-oil"].fuel_value = "0.5MJ" -data.raw.item["enriched-fuel"].fuel_value = "50MJ" -data.raw.item["enriched-fuel"].stack_size = 50 +data.raw.item["bob-enriched-fuel"].fuel_value = "50MJ" +data.raw.item["bob-enriched-fuel"].stack_size = 50 data.raw.item["solid-carbon"].fuel_value = "2.5MJ" seablock.lib.substingredient("solid-fuel-methane", "gas-methane", nil, 40) @@ -27,7 +27,7 @@ seablock.lib.substingredient("solid-fuel-naphtha", "liquid-naphtha", nil, 40) seablock.lib.substingredient("solid-fuel-fuel-oil", "liquid-fuel-oil", nil, 20) for _, v in pairs({ - "hydrogen", + "bob-hydrogen", "gas-hydrogen", "gas-ethane", "gas-butane", @@ -39,9 +39,10 @@ for _, v in pairs({ "heavy-oil", "light-oil", "petroleum-gas", - "sour-gas", - "deuterium", - "hydrazine", + "bob-sour-gas", + "bob-deuterium", + "gas-deuterium", -- TODO: not sure which one it's supposed to be + "gas-hydrazine", "alien-fire", "glycerol", "diesel-fuel", diff --git a/SeaBlock/data-updates/furnaces.lua b/SeaBlock/data-updates/furnaces.lua index 1b31c98..e8a168e 100644 --- a/SeaBlock/data-updates/furnaces.lua +++ b/SeaBlock/data-updates/furnaces.lua @@ -1,16 +1,16 @@ -- Fix up furnace tech icons if not mods["reskins-bobs"] then for _, v in pairs({ - "fluid-mixing-furnace", - "steel-mixing-furnace", + "bob-fluid-mixing-furnace", + "bob-steel-mixing-furnace", }) do seablock.lib.copy_icon(data.raw.technology[v], data.raw.technology["advanced-material-processing"]) end for _, v in pairs({ - "electric-mixing-furnace", - "multi-purpose-furnace-1", - "multi-purpose-furnace-2", + "bob-electric-mixing-furnace", + "bob-multi-purpose-furnace-1", + "bob-multi-purpose-furnace-2", "advanced-material-processing-3", "advanced-material-processing-4", }) do @@ -18,4 +18,4 @@ if not mods["reskins-bobs"] then end end -bobmods.lib.tech.remove_prerequisite("steel-mixing-furnace", "angels-steel-smelting-1") +bobmods.lib.tech.remove_prerequisite("bob-steel-mixing-furnace", "angels-steel-smelting-1") diff --git a/SeaBlock/data-updates/groups.lua b/SeaBlock/data-updates/groups.lua index 5967173..14d8e2d 100644 --- a/SeaBlock/data-updates/groups.lua +++ b/SeaBlock/data-updates/groups.lua @@ -6,15 +6,15 @@ if not mods["angelsindustries"] then if v.group == "bob-resource-products" or v.group == "bob-fluid-products" - or v.group == "bob-intermediate-products" + -- or v.group == "bob-intermediate-products" --should not exist anymore then v.group = "intermediate-products" end end - move_item("battery", "bob-intermediates", "f-cba[battery]") + --move_item("battery", "intermediate-products", "f-cba[battery]") -- already correctly set in bob2.0 move_item("iron-gear-wheel", "bob-gears", "aa[iron-gear-wheel]") - move_item("thorium-processing", "bob-nuclear", "l[thorium-processing]", "recipe") + move_item("bob-thorium-processing", "bob-nuclear", "l[thorium-processing]", "recipe") end if mods["SpaceMod"] then @@ -46,4 +46,4 @@ if mods["Explosive Excavation"] then move_item("blasting-charge", "petrochem-solids-2", "a[explosives]-g", "recipe") end -move_item("solid-fuel-from-hydrogen", "petrochem-fuel", "e[bob]-d", "recipe") +move_item("bob-solid-fuel-from-hydrogen", "petrochem-fuel", "e[bob]-d", "recipe") diff --git a/SeaBlock/data-updates/landfill.lua b/SeaBlock/data-updates/landfill.lua index 16bc055..c6b11df 100644 --- a/SeaBlock/data-updates/landfill.lua +++ b/SeaBlock/data-updates/landfill.lua @@ -8,7 +8,7 @@ end -- Set prefered type for basic landfill crafting if settings.startup["sb-default-landfill"] and data.raw.item[settings.startup["sb-default-landfill"].value] then - data.raw.recipe["landfill"].result = settings.startup["sb-default-landfill"].value + data.raw.recipe["landfill"].results[1].name = settings.startup["sb-default-landfill"].value end local function BuffLandfill(recipe) @@ -34,8 +34,9 @@ end data.raw.technology["landfill"].prerequisites = { "water-washing-1" } data.raw.technology["landfill"].unit = { count = 10, - ingredients = { { type = "item", name = "automation-science-pack", amount = 1 } }, + ingredients = { { "automation-science-pack", 1 } }, time = 15, } + bobmods.lib.tech.remove_prerequisite("water-washing-2", "landfill") bobmods.lib.tech.ignore_tech_cost_multiplier("landfill", true) diff --git a/SeaBlock/data-updates/military.lua b/SeaBlock/data-updates/military.lua index d8da8a4..66231ff 100644 --- a/SeaBlock/data-updates/military.lua +++ b/SeaBlock/data-updates/military.lua @@ -4,8 +4,8 @@ local mil_items = { { type = "ammo-turret", name = "bob-gun-turret-4" }, { type = "ammo-turret", name = "bob-gun-turret-5" }, { type = "ammo-turret", name = "bob-sniper-turret-3" }, - { type = "armor", name = "heavy-armor-2" }, - { type = "armor", name = "heavy-armor-3" }, + --{ type = "armor", name = "modular-armor" }, + --{ type = "armor", name = "heavy-armor-3" }, { type = "artillery-turret", name = "bob-artillery-turret-3" }, { type = "artillery-wagon", name = "bob-artillery-wagon-3" }, { type = "car", name = "bob-tank-2" }, @@ -26,16 +26,16 @@ local mil_items = { { type = "fluid-wagon", name = "bob-armoured-fluid-wagon-2" }, { type = "fluid-wagon", name = "bob-armoured-fluid-wagon" }, { type = "fluid", name = "alien-acid" }, - { type = "fluid", name = "alien-explosive" }, - { type = "fluid", name = "alien-fire" }, - { type = "fluid", name = "alien-poison" }, + { type = "fluid", name = "bob-alien-explosive" }, + { type = "fluid", name = "bob-alien-fire" }, + { type = "fluid", name = "bob-alien-poison" }, { type = "fluid", name = "liquid-glycerol" }, { type = "fluid", name = "liquid-toluene" }, - { type = "fluid", name = "nitroglycerin" }, + { type = "fluid", name = "bob-nitroglycerin" }, { type = "gun", name = "combat-shotgun" }, { type = "gun", name = "flamethrower" }, - { type = "gun", name = "laser-rifle" }, - { type = "gun", name = "rifle" }, + { type = "gun", name = "bob-laser-rifle" }, + { type = "gun", name = "bob-rifle" }, { type = "gun", name = "shotgun" }, { type = "item-with-entity-data", name = "bob-armoured-cargo-wagon-2" }, { type = "item-with-entity-data", name = "bob-armoured-cargo-wagon" }, @@ -46,17 +46,17 @@ local mil_items = { { type = "item-with-entity-data", name = "bob-artillery-wagon-3" }, { type = "item-with-entity-data", name = "bob-tank-2" }, { type = "item-with-entity-data", name = "bob-tank-3" }, - { type = "item", name = "acid-bullet-projectile" }, - { type = "item", name = "acid-bullet" }, - { type = "item", name = "acid-rocket-warhead" }, - { type = "item", name = "alien-acid-barrel" }, - { type = "item", name = "alien-blue-alloy" }, - { type = "item", name = "alien-explosive-barrel" }, - { type = "item", name = "alien-fire-barrel" }, - { type = "item", name = "alien-orange-alloy" }, - { type = "item", name = "alien-poison-barrel" }, - { type = "item", name = "ap-bullet-projectile" }, - { type = "item", name = "ap-bullet" }, + { type = "item", name = "bob-acid-bullet-projectile" }, + { type = "item", name = "bob-acid-bullet" }, + { type = "item", name = "bob-acid-rocket-warhead" }, + { type = "item", name = "bob-alien-acid-barrel" }, + { type = "item", name = "bob-alien-blue-alloy" }, + { type = "item", name = "bob-alien-explosive-barrel" }, + { type = "item", name = "bob-alien-fire-barrel" }, + { type = "item", name = "bob-alien-orange-alloy" }, + { type = "item", name = "bob-alien-poison-barrel" }, + { type = "item", name = "bob-ap-bullet-projectile" }, + { type = "item", name = "bob-ap-bullet" }, { type = "item", name = "bob-artillery-turret-3" }, { type = "item", name = "bob-gun-turret-3" }, { type = "item", name = "bob-gun-turret-4" }, @@ -73,65 +73,65 @@ local mil_items = { { type = "item", name = "bob-robot-laser-drone" }, { type = "item", name = "bob-robot-plasma-drone" }, { type = "item", name = "bob-sniper-turret-3" }, - { type = "item", name = "bullet-casing" }, - { type = "item", name = "bullet-projectile" }, - { type = "item", name = "bullet" }, + { type = "item", name = "bob-bullet-casing" }, + { type = "item", name = "bob-bullet-projectile" }, + { type = "item", name = "bob-bullet" }, { type = "item", name = "combat-robot-dispenser-equipment" }, - { type = "item", name = "cordite" }, + { type = "item", name = "bob-cordite" }, { type = "item", name = "discharge-defense-equipment" }, - { type = "item", name = "distractor-mine" }, - { type = "item", name = "electric-bullet-projectile" }, - { type = "item", name = "electric-bullet" }, - { type = "item", name = "electric-rocket-warhead" }, + { type = "item", name = "bob-distractor-mine" }, + { type = "item", name = "bob-electric-bullet-projectile" }, + { type = "item", name = "bob-electric-bullet" }, + { type = "item", name = "bob-electric-rocket-warhead" }, { type = "item", name = "explosive-rocket-warhead" }, - { type = "item", name = "flame-bullet-projectile" }, - { type = "item", name = "flame-bullet" }, + { type = "item", name = "bob-flame-bullet-projectile" }, + { type = "item", name = "bob-flame-bullet" }, { type = "item", name = "flame-rocket-warhead" }, { type = "item", name = "flamethrower-turret" }, - { type = "item", name = "gun-cotton" }, - { type = "item", name = "gunmetal-alloy" }, - { type = "item", name = "he-bullet-projectile" }, - { type = "item", name = "he-bullet" }, - { type = "item", name = "lab-alien" }, + { type = "item", name = "bob-gun-cotton" }, + { type = "item", name = "bob-gunmetal-alloy" }, + { type = "item", name = "bob-he-bullet-projectile" }, + { type = "item", name = "bob-he-bullet" }, + { type = "item", name = "bob-lab-alien" }, { type = "item", name = "land-mine" }, - { type = "item", name = "laser-rifle-battery-case" }, + { type = "item", name = "bob-laser-rifle-battery-case" }, { type = "item", name = "liquid-glycerol-barrel" }, { type = "item", name = "liquid-toluene-barrel" }, - { type = "item", name = "magazine" }, - { type = "item", name = "nitroglycerin-barrel" }, - { type = "item", name = "petroleum-jelly" }, - { type = "item", name = "piercing-rocket-warhead" }, - { type = "item", name = "plasma-bullet-projectile" }, - { type = "item", name = "plasma-bullet" }, - { type = "item", name = "plasma-rocket-warhead" }, - { type = "item", name = "poison-bullet-projectile" }, - { type = "item", name = "poison-bullet" }, - { type = "item", name = "poison-mine" }, - { type = "item", name = "poison-rocket-warhead" }, - { type = "item", name = "robot-drone-frame-large" }, - { type = "item", name = "robot-drone-frame" }, - { type = "item", name = "rocket-body" }, - { type = "item", name = "rocket-warhead" }, - { type = "item", name = "shot" }, - { type = "item", name = "shotgun-shell-casing" }, - { type = "item", name = "slowdown-mine" }, - { type = "item", name = "uranium-bullet-projectile" }, - { type = "item", name = "uranium-bullet" }, - { type = "lab", name = "lab-alien" }, - { type = "land-mine", name = "distractor-mine" }, - { type = "land-mine", name = "land-mine" }, - { type = "land-mine", name = "poison-mine" }, - { type = "land-mine", name = "slowdown-mine" }, + { type = "item", name = "bob-magazine" }, + { type = "item", name = "bob-nitroglycerin-barrel" }, + { type = "item", name = "bob-petroleum-jelly" }, + { type = "item", name = "bob-piercing-rocket-warhead" }, + { type = "item", name = "bob-plasma-bullet-projectile" }, + { type = "item", name = "bob-plasma-bullet" }, + { type = "item", name = "bob-plasma-rocket-warhead" }, + { type = "item", name = "bob-poison-bullet-projectile" }, + { type = "item", name = "bob-poison-bullet" }, + { type = "item", name = "bob-poison-mine" }, + { type = "item", name = "bob-poison-rocket-warhead" }, + { type = "item", name = "bob-robot-drone-frame-large" }, + { type = "item", name = "bob-robot-drone-frame" }, + { type = "item", name = "bob-rocket-body" }, + { type = "item", name = "bob-rocket-warhead" }, + { type = "item", name = "bob-shot" }, + { type = "item", name = "bob-shotgun-shell-casing" }, + { type = "item", name = "bob-slowdown-mine" }, + { type = "item", name = "bob-uranium-bullet-projectile" }, + { type = "item", name = "bob-uranium-bullet" }, + { type = "lab", name = "bob-lab-alien" }, + { type = "land-mine", name = "bob-distractor-mine" }, + { type = "land-mine", name = "bob-land-mine" }, + { type = "land-mine", name = "bob-poison-mine" }, + { type = "land-mine", name = "bob-slowdown-mine" }, { type = "locomotive", name = "bob-armoured-locomotive-2" }, { type = "locomotive", name = "bob-armoured-locomotive" }, - { type = "tool", name = "alien-science-pack-blue" }, - { type = "tool", name = "alien-science-pack-green" }, - { type = "tool", name = "alien-science-pack-orange" }, - { type = "tool", name = "alien-science-pack-purple" }, - { type = "tool", name = "alien-science-pack-red" }, - { type = "tool", name = "alien-science-pack-yellow" }, - { type = "tool", name = "alien-science-pack" }, - { type = "tool", name = "science-pack-gold" }, + { type = "tool", name = "bob-alien-science-pack-blue" }, + { type = "tool", name = "bob-alien-science-pack-green" }, + { type = "tool", name = "bob-alien-science-pack-orange" }, + { type = "tool", name = "bob-alien-science-pack-purple" }, + { type = "tool", name = "bob-alien-science-pack-red" }, + { type = "tool", name = "bob-alien-science-pack-yellow" }, + { type = "tool", name = "bob-alien-science-pack" }, + { type = "tool", name = "bob-science-pack-gold" }, { type = "unit", name = "bob-robot-flamethrower-drone" }, { type = "unit", name = "bob-robot-gun-drone" }, { type = "unit", name = "bob-robot-laser-drone" }, @@ -139,13 +139,13 @@ local mil_items = { } local mil_tech = { - "alien-blue-research", - "alien-green-research", - "alien-orange-research", - "alien-purple-research", - "alien-red-research", - "alien-research", - "alien-yellow-research", + "bob-alien-blue-research", + "bob-alien-green-research", + "bob-alien-orange-research", + "bob-alien-purple-research", + "bob-alien-red-research", + "bob-alien-research", + "bob-alien-yellow-research", "angels-explosives-1", "angels-explosives-2", "bob-acid-bullets", @@ -209,12 +209,12 @@ local mil_tech = { "bob-turrets-3", "bob-turrets-4", "bob-turrets-5", - "cordite-processing", + "bob-cordite-processing", "defender", "destroyer", "discharge-defense-equipment", "distractor", - "distractor-mine", + "bob-distractor-mine", "energy-weapons-damage-7", -- Infinite "explosive-rocketry", "flamethrower", @@ -227,9 +227,9 @@ local mil_tech = { "follower-robot-count-7", -- Infinite "land-mine", "laser-shooting-speed-7", - "nitroglycerin-processing", + "bob-nitroglycerin-processing", "physical-projectile-damage-7", -- Infinite - "poison-mine", + "bob-poison-mine", "refined-flammables-1", "refined-flammables-2", "refined-flammables-3", @@ -240,15 +240,15 @@ local mil_tech = { "sct-alien-science-pack", "sct-lab-alien", "sct-science-pack-gold", - "slowdown-mine", + "bob-slowdown-mine", "stronger-explosives-7", -- Infinite "uranium-ammo", } local mil_ammo = { - { type = "ammo", name = "acid-bullet-magazine" }, - { type = "ammo", name = "ap-bullet-magazine" }, - { type = "ammo", name = "better-shotgun-shell" }, + { type = "ammo", name = "bob-acid-bullet-magazine" }, + { type = "ammo", name = "bob-ap-bullet-magazine" }, + { type = "ammo", name = "bob-better-shotgun-shell" }, { type = "ammo", name = "bob-acid-rocket" }, { type = "ammo", name = "bob-electric-rocket" }, { type = "ammo", name = "bob-explosive-rocket" }, @@ -257,73 +257,73 @@ local mil_ammo = { { type = "ammo", name = "bob-plasma-rocket" }, { type = "ammo", name = "bob-poison-rocket" }, { type = "ammo", name = "bob-rocket" }, - { type = "ammo", name = "bullet-magazine" }, - { type = "ammo", name = "distractor-artillery-shell" }, - { type = "ammo", name = "electric-bullet-magazine" }, + { type = "ammo", name = "bob-bullet-magazine" }, + { type = "ammo", name = "bob-distractor-artillery-shell" }, + { type = "ammo", name = "bob-electric-bullet-magazine" }, { type = "ammo", name = "explosive-artillery-shell" }, { type = "ammo", name = "explosive-rocket" }, - { type = "ammo", name = "explosive-uranium-cannon-shell" }, - { type = "ammo", name = "fire-artillery-shell" }, - { type = "ammo", name = "flame-bullet-magazine" }, + { type = "ammo", name = "bob-explosive-uranium-cannon-shell" }, + { type = "ammo", name = "bob-fire-artillery-shell" }, + { type = "ammo", name = "bob-flame-bullet-magazine" }, { type = "ammo", name = "flamethrower-ammo" }, - { type = "ammo", name = "he-bullet-magazine" }, - { type = "ammo", name = "laser-rifle-battery-amethyst" }, - { type = "ammo", name = "laser-rifle-battery-diamond" }, - { type = "ammo", name = "laser-rifle-battery-emerald" }, - { type = "ammo", name = "laser-rifle-battery-ruby" }, - { type = "ammo", name = "laser-rifle-battery-sapphire" }, - { type = "ammo", name = "laser-rifle-battery-topaz" }, - { type = "ammo", name = "laser-rifle-battery" }, + { type = "ammo", name = "bob-he-bullet-magazine" }, + { type = "ammo", name = "bob-laser-rifle-battery-amethyst" }, + { type = "ammo", name = "bob-laser-rifle-battery-diamond" }, + { type = "ammo", name = "bob-laser-rifle-battery-emerald" }, + { type = "ammo", name = "bob-laser-rifle-battery-ruby" }, + { type = "ammo", name = "bob-laser-rifle-battery-sapphire" }, + { type = "ammo", name = "bob-laser-rifle-battery-topaz" }, + { type = "ammo", name = "bob-laser-rifle-battery" }, { type = "ammo", name = "piercing-shotgun-shell" }, - { type = "ammo", name = "plasma-bullet-magazine" }, - { type = "ammo", name = "poison-artillery-shell" }, - { type = "ammo", name = "poison-bullet-magazine" }, - { type = "ammo", name = "scatter-cannon-shell" }, - { type = "ammo", name = "shotgun-acid-shell" }, - { type = "ammo", name = "shotgun-ap-shell" }, - { type = "ammo", name = "shotgun-electric-shell" }, - { type = "ammo", name = "shotgun-explosive-shell" }, - { type = "ammo", name = "shotgun-flame-shell" }, - { type = "ammo", name = "shotgun-plasma-shell" }, - { type = "ammo", name = "shotgun-poison-shell" }, + { type = "ammo", name = "bob-plasma-bullet-magazine" }, + { type = "ammo", name = "bob-poison-artillery-shell" }, + { type = "ammo", name = "bob-poison-bullet-magazine" }, + { type = "ammo", name = "bob-scatter-cannon-shell" }, + { type = "ammo", name = "bob-shotgun-acid-shell" }, + { type = "ammo", name = "bob-shotgun-ap-shell" }, + { type = "ammo", name = "bob-shotgun-electric-shell" }, + { type = "ammo", name = "bob-shotgun-explosive-shell" }, + { type = "ammo", name = "bob-shotgun-flame-shell" }, + { type = "ammo", name = "bob-shotgun-plasma-shell" }, + { type = "ammo", name = "bob-shotgun-poison-shell" }, { type = "ammo", name = "shotgun-shell" }, - { type = "ammo", name = "shotgun-uranium-shell" }, - { type = "ammo", name = "uranium-cannon-shell" }, + { type = "ammo", name = "bob-shotgun-uranium-shell" }, + { type = "ammo", name = "bob-uranium-cannon-shell" }, { type = "ammo", name = "uranium-rounds-magazine" }, { type = "capsule", name = "cluster-grenade" }, { type = "capsule", name = "defender-capsule" }, { type = "capsule", name = "destroyer-capsule" }, { type = "capsule", name = "discharge-defense-remote" }, { type = "capsule", name = "distractor-capsule" }, - { type = "capsule", name = "fire-capsule" }, + { type = "capsule", name = "bob-fire-capsule" }, { type = "capsule", name = "poison-capsule" }, { type = "capsule", name = "slowdown-capsule" }, } local mil_recipes = { - "acid-bullet", - "acid-bullet-magazine", - "acid-bullet-projectile", - "acid-rocket-warhead", - "alien-acid", - "alien-blue-alloy", - "alien-explosive", - "alien-fire", - "alien-orange-alloy", - "alien-poison", - "alien-science-pack", - "alien-science-pack-blue", - "alien-science-pack-green", - "alien-science-pack-orange", - "alien-science-pack-purple", - "alien-science-pack-red", - "alien-science-pack-yellow", + "bob-acid-bullet", + "bob-acid-bullet-magazine", + "bob-acid-bullet-projectile", + "bob-acid-rocket-warhead", + "bob-alien-acid", + "bob-alien-blue-alloy", + "bob-alien-explosive", + "bob-alien-fire", + "bob-alien-orange-alloy", + "bob-alien-poison", + "bob-alien-science-pack", + "bob-alien-science-pack-blue", + "bob-alien-science-pack-green", + "bob-alien-science-pack-orange", + "bob-alien-science-pack-purple", + "bob-alien-science-pack-red", + "bob-alien-science-pack-yellow", "angels-chemical-void-liquid-glycerol", "angels-chemical-void-liquid-toluene", - "ap-bullet", - "ap-bullet-magazine", - "ap-bullet-projectile", - "better-shotgun-shell", + "bob-ap-bullet", + "bob-ap-bullet-magazine", + "bob-ap-bullet-projectile", + "bob-better-shotgun-shell", "bob-acid-rocket", "bob-armoured-cargo-wagon", "bob-armoured-cargo-wagon-2", @@ -347,7 +347,6 @@ local mil_recipes = { "bob-plasma-rocket", "bob-plasma-turret-3", "bob-plasma-turret-4", - "bob-plasma-turret-5", "bob-poison-rocket", "bob-robot-flamethrower-drone", "bob-robot-gun-drone", @@ -357,115 +356,114 @@ local mil_recipes = { "bob-sniper-turret-3", "bob-tank-2", "bob-tank-3", - "bullet", - "bullet-casing", - "bullet-magazine", - "bullet-projectile", + "bob-bullet", + "bob-bullet-casing", + "bob-bullet-magazine", + "bob-bullet-projectile", "cluster-grenade", "combat-shotgun", - "cordite", + "bob-cordite", "defender-capsule", "destroyer-capsule", "discharge-defense-equipment", - "discharge-defense-remote", - "distractor-artillery-shell", + "bob-distractor-artillery-shell", "distractor-capsule", - "distractor-mine", - "electric-bullet", - "electric-bullet-magazine", - "electric-bullet-projectile", + "bob-distractor-mine", + "bob-electric-bullet", + "bob-electric-bullet-magazine", + "bob-electric-bullet-projectile", "electric-energy-interface", - "electric-rocket-warhead", - "empty-alien-acid-barrel", - "empty-alien-explosive-barrel", - "empty-alien-fire-barrel", - "empty-alien-poison-barrel", + "bob-electric-rocket-warhead", + "empty-bob-alien-acid-barrel", + "empty-bob-alien-explosive-barrel", + "empty-bob-alien-fire-barrel", + "empty-bob-alien-poison-barrel", "empty-liquid-glycerol-barrel", "empty-liquid-toluene-barrel", - "empty-nitroglycerin-barrel", - "explosive-artillery-shell", + "empty-bob-nitroglycerin-barrel", + "bob-explosive-artillery-shell", "explosive-rocket", - "explosive-rocket-warhead", + "bob-explosive-rocket-warhead", "explosive-uranium-cannon-shell", - "fill-alien-acid-barrel", - "fill-alien-explosive-barrel", - "fill-alien-fire-barrel", - "fill-alien-poison-barrel", - "fill-liquid-glycerol-barrel", - "fill-liquid-toluene-barrel", - "fill-nitroglycerin-barrel", - "fire-artillery-shell", - "fire-capsule", - "flame-bullet", - "flame-bullet-magazine", - "flame-bullet-projectile", - "flame-rocket-warhead", + "bob-alien-acid-barrel", + "bob-alien-explosive-barrel", + "bob-alien-fire-barrel", + "bob-alien-poison-barrel", + "liquid-glycerol-barrel", + "liquid-toluene-barrel", + "bob-nitroglycerin-barrel", + "bob-fire-artillery-shell", + "bob-fire-capsule", + "bob-flame-bullet", + "bob-flame-bullet-magazine", + "bob-flame-bullet-projectile", + "bob-flame-rocket-warhead", "flamethrower", "flamethrower-ammo", "flamethrower-turret", "gas-fractioning-residual", - "gun-cotton", - "gunmetal-alloy", - "he-bullet", - "he-bullet-magazine", - "he-bullet-projectile", - "heavy-armor-2", - "heavy-armor-3", - "lab-alien", + "bob-gun-cotton", + "bob-gunmetal-alloy", + "bob-he-bullet", + "bob-he-bullet-magazine", + "bob-he-bullet-projectile", + --"modular-armor", + --"heavy-armor-3", + "bob-lab-alien", "land-mine", - "laser-rifle", - "laser-rifle-battery", - "laser-rifle-battery-amethyst", - "laser-rifle-battery-case", - "laser-rifle-battery-diamond", - "laser-rifle-battery-emerald", - "laser-rifle-battery-ruby", - "laser-rifle-battery-sapphire", - "laser-rifle-battery-topaz", + "bob-laser-rifle", + "bob-laser-rifle-battery", + "bob-laser-rifle-battery-amethyst", + "bob-laser-rifle-battery-case", + "bob-laser-rifle-battery-diamond", + "bob-laser-rifle-battery-emerald", + "bob-laser-rifle-battery-ruby", + "bob-laser-rifle-battery-sapphire", + "bob-laser-rifle-battery-topaz", "liquid-glycerol", "liquid-toluene-from-benzene", "liquid-toluene-from-naphtha", - "magazine", - "nitroglycerin", - "petroleum-jelly", - "piercing-rocket-warhead", + "bob-magazine", + "bob-nitroglycerin", + "bob-petroleum-jelly", + "bob-piercing-rocket-warhead", "piercing-shotgun-shell", - "plasma-bullet", - "plasma-bullet-magazine", - "plasma-bullet-projectile", - "plasma-rocket-warhead", - "poison-artillery-shell", - "poison-bullet", - "poison-bullet-magazine", - "poison-bullet-projectile", + "bob-plasma-bullet", + "bob-plasma-bullet-magazine", + "bob-plasma-bullet-projectile", + "bob-plasma-rocket-warhead", + "bob-poison-artillery-shell", + "bob-poison-bullet", + "bob-poison-bullet-magazine", + "bob-poison-bullet-projectile", "poison-capsule", - "poison-mine", - "poison-rocket-warhead", - "rifle", - "robot-drone-frame", - "robot-drone-frame-large", - "rocket-body", - "rocket-warhead", - "scatter-cannon-shell", - "science-pack-gold", - "shot", + "bob-poison-mine", + "bob-poison-rocket-warhead", + "bob-rifle", + "bob-robot-drone-frame", + "bob-robot-drone-frame-large", + "bob-rocket-body", + "bob-rocket-warhead", + "bob-scatter-cannon-shell", + "bob-science-pack-gold", + "bob-shot", "shotgun", - "shotgun-acid-shell", - "shotgun-ap-shell", - "shotgun-electric-shell", - "shotgun-explosive-shell", - "shotgun-flame-shell", - "shotgun-plasma-shell", - "shotgun-poison-shell", + "bob-shotgun-acid-shell", + "bob-shotgun-ap-shell", + "bob-shotgun-electric-shell", + "bob-shotgun-explosive-shell", + "bob-shotgun-flame-shell", + "bob-shotgun-plasma-shell", + "bob-shotgun-poison-shell", "shotgun-shell", - "shotgun-shell-casing", - "shotgun-uranium-shell", + "bob-shotgun-shell-casing", + "bob-shotgun-uranium-shell", "slowdown-capsule", - "slowdown-mine", + "bob-slowdown-mine", "solid-nitroglycerin", "solid-trinitrotoluene", - "uranium-bullet", - "uranium-bullet-projectile", + "bob-uranium-bullet", + "bob-uranium-bullet-projectile", "uranium-cannon-shell", "uranium-rounds-magazine", } @@ -483,9 +481,32 @@ for _, v in pairs(mil_ammo) do end end +-- except = { +-- ["follower-robot-count-1"] = true, +-- ["follower-robot-count-2"] = true, +-- ["follower-robot-count-3"] = true, +-- ["follower-robot-count-4"] = true, +-- ["follower-robot-count-5"] = true, +-- ["follower-robot-count-6"] = true, +-- ["follower-robot-count-7"] = true, +-- ["energy-weapons-damage-7"] = true, +-- ["physical-projectile-damage-7"] = true, +-- ["refined-flammables-1"] = true, +-- ["refined-flammables-2"] = true, +-- ["refined-flammables-3"] = true, +-- ["refined-flammables-4"] = true, +-- ["refined-flammables-5"] = true, +-- ["refined-flammables-6"] = true, +-- ["refined-flammables-7"] = true, +-- ["stronger-explosives-7"] = true, +-- ["laser-shooting-speed-7"] = true, +-- } for _, v in pairs(mil_tech) do if data.raw.technology[v] then seablock.lib.hide_technology(v) + -- if not except[v] then + -- data.raw.technology[v].unit.ingredients = {} --remove + -- end end end @@ -493,40 +514,49 @@ for _, v in pairs(mil_recipes) do bobmods.lib.recipe.hide(v) end +-- Remove hidden upgrade +data.raw["ammo-turret"]["bob-gun-turret-2"].next_upgrade = nil +data.raw["ammo-turret"]["bob-sniper-turret-2"].next_upgrade = nil +data.raw["electric-turret"]["laser-turret"].next_upgrade = nil +data.raw["electric-turret"]["bob-plasma-turret-2"].next_upgrade = nil +data.raw["artillery-turret"]["bob-artillery-turret-2"].next_upgrade = nil +data.raw["artillery-wagon"]["bob-artillery-wagon-2"].next_upgrade = nil + + bobmods.lib.tech.remove_recipe_unlock("angels-advanced-gas-processing", "gas-fractioning-residual") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "empty-liquid-glycerol-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "empty-liquid-toluene-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "empty-nitroglycerin-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "fill-liquid-glycerol-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "fill-liquid-toluene-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "fill-nitroglycerin-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "empty-alien-acid-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "empty-alien-explosive-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "empty-alien-fire-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "empty-alien-poison-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "fill-alien-acid-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "fill-alien-explosive-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "fill-alien-fire-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "fill-alien-poison-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "empty-liquid-glycerol-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "empty-liquid-toluene-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "empty-bob-nitroglycerin-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "liquid-glycerol-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "liquid-toluene-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "bob--nitroglycerin-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "empty-bob-alien-acid-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "empty-bob-alien-explosive-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "empty-bob-alien-fire-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "empty-bob-alien-poison-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "bob-alien-acid-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "bob-alien-explosive-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "bob-alien-fire-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "bob-alien-poison-barrel") bobmods.lib.tech.remove_recipe_unlock("military", "shotgun") bobmods.lib.tech.remove_recipe_unlock("military", "shotgun-shell") bobmods.lib.tech.remove_recipe_unlock("military-3", "combat-shotgun") -bobmods.lib.tech.remove_recipe_unlock("military-3", "fire-capsule") +bobmods.lib.tech.remove_recipe_unlock("military-3", "bob-fire-capsule") bobmods.lib.tech.remove_recipe_unlock("military-3", "poison-capsule") -bobmods.lib.tech.remove_recipe_unlock("military-3", "rifle") +bobmods.lib.tech.remove_recipe_unlock("military-3", "bob-rifle") bobmods.lib.tech.remove_recipe_unlock("military-3", "slowdown-capsule") -bobmods.lib.tech.remove_recipe_unlock("military-3", "sniper-rifle") -- Unlocked by it's own earlier tech +bobmods.lib.tech.remove_recipe_unlock("military-3", "bob-sniper-rifle") -- Unlocked by it's own earlier tech bobmods.lib.tech.remove_recipe_unlock("military-4", "cluster-grenade") bobmods.lib.tech.remove_recipe_unlock("military-4", "piercing-shotgun-shell") -bobmods.lib.tech.remove_recipe_unlock("robotics", "robot-drone-frame") -bobmods.lib.tech.remove_recipe_unlock("robotics", "robot-drone-frame-large") +bobmods.lib.tech.remove_recipe_unlock("robotics", "bob-robot-drone-frame") +bobmods.lib.tech.remove_recipe_unlock("robotics", "bob-robot-drone-frame-large") bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "explosive-uranium-cannon-shell") -bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "shotgun-uranium-shell") -bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "uranium-bullet") -bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "uranium-bullet-projectile") +bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "bob-shotgun-uranium-shell") +bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "bob-uranium-bullet") +bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "bob-uranium-bullet-projectile") bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "uranium-cannon-shell") bobmods.lib.tech.remove_recipe_unlock("uranium-ammo", "uranium-rounds-magazine") -bobmods.lib.tech.remove_recipe_unlock("zinc-processing", "gunmetal-alloy") +bobmods.lib.tech.remove_recipe_unlock("bob-zinc-processing", "bob-gunmetal-alloy") seablock.lib.substresult("nutrients-refining-2", "liquid-glycerol", "water", nil) if data.raw.recipe["nutrients-refining-2"] then @@ -542,10 +572,10 @@ for i = 1, 6 do seablock.lib.remove_effect("physical-projectile-damage-" .. i, "turret-attack", "turret_id", "bob-gun-turret-5") seablock.lib.remove_effect("physical-projectile-damage-" .. i, "turret-attack", "turret_id", "bob-sniper-turret-3") seablock.lib.remove_effect("physical-projectile-damage-" .. i, "ammo-damage", "ammo_category", "shotgun-shell") - seablock.lib.remove_effect("energy-weapons-damage-" .. i, "ammo-damage", "ammo_category", "laser-rifle") - seablock.lib.remove_effect("energy-weapons-damage-" .. i, "ammo-damage", "ammo_category", "beam") + seablock.lib.remove_effect("laser-weapons-damage-" .. i, "ammo-damage", "ammo_category", "bob-laser-rifle") + seablock.lib.remove_effect("laser-weapons-damage-" .. i, "ammo-damage", "ammo_category", "beam") seablock.lib.remove_effect("weapon-shooting-speed-" .. i, "gun-speed", "ammo_category", "shotgun-shell") - seablock.lib.remove_effect("laser-shooting-speed-" .. i, "gun-speed", "ammo_category", "laser-rifle") + seablock.lib.remove_effect("laser-shooting-speed-" .. i, "gun-speed", "ammo_category", "bob-laser-rifle") seablock.lib.remove_effect("stronger-explosives-" .. i, "ammo-damage", "ammo_category", "landmine") end @@ -569,7 +599,7 @@ local mil_techswap = { { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, }, }, -- 250 Red, Green, Blue, Purple, Pink, Yellow @@ -580,7 +610,7 @@ local mil_techswap = { { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, @@ -593,7 +623,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, }, }, -- 250 Red, Green, Military, Blue, Purple, Pink, Yellow @@ -605,7 +635,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, @@ -618,7 +648,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, { "space-science-pack", 1 }, }, @@ -631,7 +661,7 @@ local mil_techswap = { { "logistic-science-pack", 1 }, { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, - { mods["bobtech"] and "advanced-logistic-science-pack" or "production-science-pack", 1 }, + { mods["bobtech"] and "bob-advanced-logistic-science-pack" or "production-science-pack", 1 }, }, }, -- 250 Red, Green, Military, Blue, Purple, Pink, Yellow @@ -643,7 +673,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, @@ -656,46 +686,46 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, { "space-science-pack", 1 }, }, }, -- 250 Red, Green, Military, Blue, Purple, Pink { - tech_name = "fusion-reactor-equipment-2", + tech_name = "bob-fission-reactor-equipment-2", science_packs = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 }, { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, }, }, -- 300 Red, Green, Military, Blue, Purple, Pink, Yellow { - tech_name = "fusion-reactor-equipment-3", + tech_name = "bob-fission-reactor-equipment-3", science_packs = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 }, { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, -- 350 Red, Green, Military, Blue, Purple, Pink, Yellow, White { - tech_name = "fusion-reactor-equipment-4", + tech_name = "bob-fission-reactor-equipment-4", science_packs = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 }, { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, { "space-science-pack", 1 }, }, @@ -718,7 +748,7 @@ local mil_techswap = { { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, }, }, -- 250 Red, Green, Blue, Purple, Pink, Yellow @@ -729,7 +759,7 @@ local mil_techswap = { { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, @@ -742,7 +772,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, }, }, -- 250 Red, Green, Military, Blue, Purple, Pink, Yellow @@ -754,7 +784,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, @@ -767,7 +797,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, { "space-science-pack", 1 }, }, @@ -791,7 +821,7 @@ local mil_techswap = { { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, @@ -803,7 +833,7 @@ local mil_techswap = { { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, { "space-science-pack", 1 }, }, @@ -839,7 +869,7 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, }, }, -- 400 Red, Green, Military, Blue, Purple, Pink, Yellow @@ -851,13 +881,13 @@ local mil_techswap = { { "military-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, -- 350 Red, Green, Blue, Purple, Yellow { - tech_name = "vehicle-fusion-reactor-equipment-4", + tech_name = "bob-vehicle-fission-reactor-equipment-4", science_packs = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 }, @@ -868,25 +898,25 @@ local mil_techswap = { }, -- 400 Red, Green, Blue, Purple, Pink, Yellow { - tech_name = "vehicle-fusion-reactor-equipment-5", + tech_name = "bob-vehicle-fission-reactor-equipment-5", science_packs = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, }, }, -- 450 Red, Green, Blue, Purple, Pink, Yellow, White { - tech_name = "vehicle-fusion-reactor-equipment-6", + tech_name = "bob-vehicle-fission-reactor-equipment-6", science_packs = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 }, { "production-science-pack", 1 }, - { "advanced-logistic-science-pack", 1 }, + { "bob-advanced-logistic-science-pack", 1 }, { "utility-science-pack", 1 }, { "space-science-pack", 1 }, }, @@ -949,16 +979,16 @@ if mods["bobwarfare"] then bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-1", "military-3") bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-1", "angels-cobalt-steel-smelting-1") seablock.lib.substingredient("bob-plasma-turret-1", "electronic-circuit", "advanced-circuit", 40) - seablock.lib.substingredient("bob-plasma-turret-1", "steel-plate", "cobalt-steel-alloy", nil) + seablock.lib.substingredient("bob-plasma-turret-1", "steel-plate", "bob-cobalt-steel-alloy", nil) bobmods.lib.tech.add_new_science_pack("bob-plasma-turrets-2", "chemical-science-pack", 1) bobmods.lib.tech.add_new_science_pack("bob-plasma-turrets-2", "production-science-pack", 1) bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-2", "military-4") - bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-2", "battery-2") + bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-2", "bob-battery-2") bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-2", "angels-titanium-smelting-1") - seablock.lib.substingredient("bob-plasma-turret-2", "battery", "lithium-ion-battery", nil) + seablock.lib.substingredient("bob-plasma-turret-2", "battery", "bob-lithium-ion-battery", nil) seablock.lib.substingredient("bob-plasma-turret-2", "advanced-circuit", "processing-unit", 40) - seablock.lib.substingredient("bob-plasma-turret-2", "steel-plate", "titanium-plate", nil) + seablock.lib.substingredient("bob-plasma-turret-2", "steel-plate", "bob-titanium-plate", nil) -- Make Military 4 take Purple science rather than Yellow science bobmods.lib.tech.remove_science_pack("military-4", "utility-science-pack") @@ -966,7 +996,7 @@ if mods["bobwarfare"] then bobmods.lib.tech.replace_prerequisite("military-4", "utility-science-pack", "production-science-pack") -- Walking Vehicle (Antron) can now depend on Military 4 - bobmods.lib.tech.replace_prerequisite("walking-vehicle", "military-3", "military-4") + bobmods.lib.tech.replace_prerequisite("bob-walking-vehicle", "military-3", "military-4") -- Move Artillery later bobmods.lib.tech.remove_science_pack("bob-artillery-turret-2", "utility-science-pack", 1) @@ -974,26 +1004,21 @@ if mods["bobwarfare"] then bobmods.lib.tech.add_new_science_pack("bob-artillery-turret-2", "production-science-pack", 1) bobmods.lib.tech.add_new_science_pack("bob-artillery-wagon-2", "production-science-pack", 1) bobmods.lib.tech.add_prerequisite("artillery", "military-3") - bobmods.lib.tech.add_prerequisite("artillery", "cobalt-processing") + bobmods.lib.tech.add_prerequisite("artillery", "bob-cobalt-processing") bobmods.lib.tech.add_prerequisite("artillery", "angels-stone-smelting-2") - seablock.lib.substingredient("artillery-turret", "iron-gear-wheel", "cobalt-steel-gear-wheel", nil) + seablock.lib.substingredient("artillery-turret", "iron-gear-wheel", "bob-cobalt-steel-gear-wheel", nil) seablock.lib.substingredient("artillery-turret", "concrete", "concrete-brick", nil) - seablock.lib.substingredient("artillery-turret", "steel-plate", "cobalt-steel-alloy", nil) - seablock.lib.substingredient("artillery-wagon", "iron-gear-wheel", "cobalt-steel-gear-wheel", nil) - seablock.lib.substingredient("artillery-wagon", "pipe", "brass-pipe", nil) - seablock.lib.substingredient("artillery-wagon", "steel-plate", "cobalt-steel-alloy", nil) - - bobmods.lib.tech.add_prerequisite("artillery", "radars-3") - seablock.lib.substingredient("artillery-targeting-remote", "radar", "radar-3") + seablock.lib.substingredient("artillery-turret", "steel-plate", "bob-cobalt-steel-alloy", nil) + seablock.lib.substingredient("artillery-wagon", "iron-gear-wheel", "bob-cobalt-steel-gear-wheel", nil) + seablock.lib.substingredient("artillery-wagon", "pipe", "bob-brass-pipe", nil) + seablock.lib.substingredient("artillery-wagon", "steel-plate", "bob-cobalt-steel-alloy", nil) - bobmods.lib.tech.add_prerequisite("spidertron", "radars-5") - seablock.lib.substingredient("spidertron-remote", "radar", "radar-5") + bobmods.lib.tech.add_prerequisite("artillery", "bob-radar-3") - -- Remove prerequisite as gunmetal smelting tech won't exist as we have disabled the trigger - bobmods.lib.tech.remove_prerequisite("bob-armor-making-3", "angels-gunmetal-smelting-1") + bobmods.lib.tech.add_prerequisite("spidertron", "bob-radar-5") -- Remove dependencies on Alien Research - bobmods.lib.tech.remove_prerequisite("bob-power-armor-3", "alien-research") + --bobmods.lib.tech.remove_prerequisite("bob-power-armor-3", "alien-research") -- Adjust Power Armor bobmods.lib.tech.remove_science_pack("power-armor", "chemical-science-pack") @@ -1001,18 +1026,18 @@ if mods["bobwarfare"] then bobmods.lib.tech.add_prerequisite("power-armor", "military-science-pack") bobmods.lib.tech.set_science_pack_count("power-armor", 150) bobmods.lib.recipe.replace_ingredient("power-armor", "processing-unit", "advanced-circuit") - bobmods.lib.tech.remove_prerequisite("power-armor", "advanced-electronics-2") + bobmods.lib.tech.remove_prerequisite("power-armor", "processing-unit") bobmods.lib.tech.remove_science_pack("power-armor-mk2", "utility-science-pack") bobmods.lib.tech.remove_prerequisite("power-armor-mk2", "utility-science-pack") bobmods.lib.tech.add_prerequisite("power-armor-mk2", "low-density-structure") - bobmods.lib.tech.add_prerequisite("power-armor-mk2", "advanced-electronics-2") + bobmods.lib.tech.add_prerequisite("power-armor-mk2", "processing-unit") bobmods.lib.tech.set_science_pack_count("power-armor-mk2", 200) bobmods.lib.tech.replace_prerequisite("power-armor-mk2", "military-4", "military-3") if mods["bobtech"] then bobmods.lib.tech.remove_prerequisite("bob-power-armor-3", "production-science-pack") - bobmods.lib.tech.add_prerequisite("bob-power-armor-3", "advanced-logistic-science-pack") + bobmods.lib.tech.add_prerequisite("bob-power-armor-3", "bob-advanced-logistic-science-pack") else bobmods.lib.tech.add_prerequisite("bob-power-armor-3", "military-4") end @@ -1022,51 +1047,51 @@ end if mods["bobequipment"] then -- Batteries bobmods.lib.tech.remove_prerequisite("battery-mk2-equipment", "power-armor") - bobmods.lib.tech.add_prerequisite("battery-mk2-equipment", "advanced-electronics-2") + bobmods.lib.tech.add_prerequisite("battery-mk2-equipment", "processing-unit") if mods["bobtech"] then - bobmods.lib.tech.add_prerequisite("bob-battery-equipment-5", "advanced-logistic-science-pack") + bobmods.lib.tech.add_prerequisite("bob-battery-equipment-5", "bob-advanced-logistic-science-pack") end -- Personal Laser Defense - bobmods.lib.tech.add_prerequisite("personal-laser-defense-equipment-5", "utility-science-pack") - bobmods.lib.tech.add_prerequisite("personal-laser-defense-equipment-6", "space-science-pack") + bobmods.lib.tech.add_prerequisite("bob-personal-laser-defense-equipment-5", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-personal-laser-defense-equipment-6", "space-science-pack") -- Energy Shield - bobmods.lib.tech.add_prerequisite("energy-shield-mk2-equipment", "advanced-electronics-2") + bobmods.lib.tech.add_prerequisite("energy-shield-mk2-equipment", "processing-unit") -- Remove dependencies on Alien Research - bobmods.lib.tech.remove_prerequisite("bob-energy-shield-equipment-4", "alien-research") - bobmods.lib.tech.remove_prerequisite("bob-battery-equipment-4", "alien-research") - bobmods.lib.tech.remove_prerequisite("fusion-reactor-equipment-2", "alien-research") - bobmods.lib.tech.remove_prerequisite("personal-laser-defense-equipment-6", "alien-research") + bobmods.lib.tech.remove_prerequisite("bob-energy-shield-equipment-4", "bob-alien-research") + bobmods.lib.tech.remove_prerequisite("bob-battery-equipment-4", "bob-alien-research") + bobmods.lib.tech.remove_prerequisite("bob-fission-reactor-equipment-2", "bob-alien-research") + bobmods.lib.tech.remove_prerequisite("bob-personal-laser-defense-equipment-6", "bob-alien-research") end if mods["bobvehicleequipment"] then -- Remove dependencies on Alien Research - bobmods.lib.tech.remove_prerequisite("vehicle-battery-equipment-4", "alien-research") - bobmods.lib.tech.remove_prerequisite("vehicle-big-turret-equipment-4", "alien-research") - bobmods.lib.tech.remove_prerequisite("vehicle-energy-shield-equipment-4", "alien-research") - bobmods.lib.tech.remove_prerequisite("vehicle-fusion-cell-equipment-4", "alien-research") - bobmods.lib.tech.remove_prerequisite("vehicle-fusion-reactor-equipment-4", "alien-research") + bobmods.lib.tech.remove_prerequisite("bob-vehicle-battery-equipment-4", "bob-alien-research") + bobmods.lib.tech.remove_prerequisite("bob-vehicle-big-turret-equipment-4", "bob-alien-research") + bobmods.lib.tech.remove_prerequisite("bob-vehicle-shield-equipment-4", "bob-alien-research") + bobmods.lib.tech.remove_prerequisite("bob-vehicle-fission-cell-equipment-4", "bob-alien-research") + bobmods.lib.tech.remove_prerequisite("bob-vehicle-fission-reactor-equipment-4", "bob-alien-research") - bobmods.lib.tech.add_prerequisite("vehicle-big-turret-equipment-4", "military-4") - bobmods.lib.tech.add_prerequisite("vehicle-laser-defense-equipment-5", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-big-turret-equipment-4", "military-4") + bobmods.lib.tech.add_prerequisite("bob-vehicle-laser-defense-equipment-5", "utility-science-pack") if mods["bobtech"] then - bobmods.lib.tech.add_prerequisite("vehicle-battery-equipment-5", "advanced-logistic-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-big-turret-equipment-5", "advanced-logistic-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-energy-shield-equipment-4", "advanced-logistic-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-fusion-cell-equipment-4", "advanced-logistic-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-fusion-reactor-equipment-4", "advanced-logistic-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-battery-equipment-5", "bob-advanced-logistic-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-big-turret-equipment-5", "bob-advanced-logistic-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-shield-equipment-4", "bob-advanced-logistic-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-fission-cell-equipment-4", "bob-advanced-logistic-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-fission-reactor-equipment-4", "bob-advanced-logistic-science-pack") end - bobmods.lib.tech.add_prerequisite("vehicle-battery-equipment-6", "utility-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-big-turret-equipment-6", "utility-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-energy-shield-equipment-5", "utility-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-fusion-cell-equipment-5", "utility-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-fusion-reactor-equipment-5", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-battery-equipment-6", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-big-turret-equipment-6", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-shield-equipment-5", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-fission-cell-equipment-5", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-fission-reactor-equipment-5", "utility-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-energy-shield-equipment-6", "space-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-fusion-cell-equipment-6", "space-science-pack") - bobmods.lib.tech.add_prerequisite("vehicle-fusion-reactor-equipment-6", "space-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-shield-equipment-6", "space-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-fission-cell-equipment-6", "space-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-fission-reactor-equipment-6", "space-science-pack") end diff --git a/SeaBlock/data-updates/misc.lua b/SeaBlock/data-updates/misc.lua index c9e77ab..a6eb393 100644 --- a/SeaBlock/data-updates/misc.lua +++ b/SeaBlock/data-updates/misc.lua @@ -10,7 +10,7 @@ bobmods.lib.tech.remove_prerequisite("angels-manganese-smelting-3", "oil-gas-ext bobmods.lib.tech.add_prerequisite("angels-manganese-smelting-3", "angels-advanced-gas-processing") -- Remove steel's prerequiste on Chemical processing 1 -bobmods.lib.tech.remove_prerequisite("steel-processing", "chemical-processing-1") +bobmods.lib.tech.remove_prerequisite("steel-processing", "bob-chemical-processing-1") -- Move Water Treatment from Electronics to Slag Processing 1. Hydro Plant no longer requires Green Circuits -- Slag Processing 1 is first source of Sulfuric Waste Water @@ -22,10 +22,10 @@ bobmods.lib.tech.remove_prerequisite("water-washing-1", "water-treatment") bobmods.lib.tech.add_prerequisite("water-washing-1", "automation") seablock.lib.moveeffect("yellow-waste-water-purification", "water-treatment-2", "water-treatment") -bobmods.lib.tech.remove_prerequisite("electronics", "chemical-processing-1") +bobmods.lib.tech.remove_prerequisite("bob-electronics", "bob-chemical-processing-1") bobmods.lib.recipe.set_category("liquid-fish-atmosphere", "chemistry") -seablock.lib.hide_technology("pumpjack") +seablock.lib.hide_technology("oil-gathering") if not seablock.trigger.mining_productivity then for i = 1, 4, 1 do @@ -38,14 +38,16 @@ end -- Remove resources so mining recipes don't show in FNEI -- Have to leave at least one resource or game will not load -for k, v in pairs(data.raw["resource"]) do + +--TODO: handle this : ressource removal creates bugs +--[[for k, v in pairs(data.raw["resource"]) do -- Sea-pump-resource is a virtual resource. -- When the offshore pump is placed, it is supposed to be replaced by the resource and a mining-drill. -- Removing the resource causes placement of heavy pumps to crash new maps. if k ~= "sea-pump-resource" then data.raw["resource"][k] = nil end -end +end]] -- Add prerequisite for Tin and Lead if settings.startup["bobmods-logistics-beltoverhaul"].value then @@ -53,25 +55,25 @@ if settings.startup["bobmods-logistics-beltoverhaul"].value then end -- Tidy prerequisite for Brass -bobmods.lib.tech.remove_prerequisite("zinc-processing", "electrolysis-1") -bobmods.lib.tech.replace_prerequisite("battery-3", "zinc-processing", "angels-zinc-smelting-1") +bobmods.lib.tech.remove_prerequisite("bob-zinc-processing", "bob-electrolysis-1") +bobmods.lib.tech.replace_prerequisite("bob-battery-3", "bob-zinc-processing", "angels-zinc-smelting-1") if mods["bobpower"] then - bobmods.lib.tech.replace_prerequisite("electric-pole-2", "zinc-processing", "angels-brass-smelting-1") - bobmods.lib.tech.replace_prerequisite("electric-substation-2", "zinc-processing", "angels-brass-smelting-1") + bobmods.lib.tech.replace_prerequisite("bob-electric-pole-2", "bob-zinc-processing", "angels-brass-smelting-1") + bobmods.lib.tech.replace_prerequisite("bob-electric-substation-2", "bob-zinc-processing", "angels-brass-smelting-1") end -- Move recipes that shouldn't be unlocked at startup if mods["bobenemies"] then - seablock.lib.add_recipe_unlock("bio-processing-alien-3", "alien-artifact-red-from-small") - seablock.lib.add_recipe_unlock("bio-processing-alien-3", "alien-artifact-yellow-from-small") - seablock.lib.add_recipe_unlock("bio-processing-alien-3", "alien-artifact-orange-from-small") - seablock.lib.add_recipe_unlock("bio-processing-alien-3", "alien-artifact-blue-from-small") - seablock.lib.add_recipe_unlock("bio-processing-alien-3", "alien-artifact-purple-from-small") - seablock.lib.add_recipe_unlock("bio-processing-alien-3", "alien-artifact-green-from-small") - seablock.lib.add_recipe_unlock("bio-processing-alien-3", "alien-artifact-from-small") + seablock.lib.add_recipe_unlock("bio-processing-alien-3", "bob-alien-artifact-red-from-small") + seablock.lib.add_recipe_unlock("bio-processing-alien-3", "bob-alien-artifact-yellow-from-small") + seablock.lib.add_recipe_unlock("bio-processing-alien-3", "bob-alien-artifact-orange-from-small") + seablock.lib.add_recipe_unlock("bio-processing-alien-3", "bob-alien-artifact-blue-from-small") + seablock.lib.add_recipe_unlock("bio-processing-alien-3", "bob-alien-artifact-purple-from-small") + seablock.lib.add_recipe_unlock("bio-processing-alien-3", "bob-alien-artifact-green-from-small") + seablock.lib.add_recipe_unlock("bio-processing-alien-3", "bob-alien-artifact") end -bobmods.lib.tech.remove_prerequisite("tungsten-processing", "angels-nickel-smelting-1") +bobmods.lib.tech.remove_prerequisite("bob-tungsten-processing", "angels-nickel-smelting-1") bobmods.lib.tech.remove_recipe_unlock("bio-arboretum-swamp-1", "solid-plastic") @@ -82,7 +84,7 @@ data.raw.recipe["angels-sulfur-scrubber"].energy_required = 6 -- Make Long Inserters a startup tech if data.raw.technology["logistics-0"] then - bobmods.lib.tech.replace_prerequisite("long-inserters-1", "logistics", "logistics-0") + bobmods.lib.tech.replace_prerequisite("bob-long-inserters-1", "logistics", "logistics-0") end -- Adjust for handcrafting boards @@ -105,7 +107,7 @@ if mods["angelsaddons-storage"] then end -- Logistic System prerequisite of Pink Science -if not data.raw.tool["advanced-logistic-science-pack"] then +if not data.raw.tool["bob-advanced-logistic-science-pack"] then bobmods.lib.tech.add_prerequisite("logistic-system", "utility-science-pack") end @@ -119,34 +121,34 @@ data.raw.recipe["solid-salt-dissolving"].energy_required = 5 for _, v in pairs({ "bio-processing-alien-3", - "gem-processing-1", - "gem-processing-2", - "gem-processing-3", + "bob-gem-processing-1", + "bob-gem-processing-2", + "bob-gem-processing-3", "geode-crystallization-1", - "polishing", + "bob-polishing", }) do if data.raw.technology[v] then bobmods.lib.tech.add_new_science_pack(v, "chemical-science-pack", 1) end end -bobmods.lib.tech.add_prerequisite("polishing", "chemical-science-pack") +bobmods.lib.tech.add_prerequisite("bob-polishing", "chemical-science-pack") bobmods.lib.tech.add_prerequisite("geode-crystallization-1", "chemical-science-pack") if mods["bobrevamp"] and not mods["bobclasses"] then - bobmods.lib.tech.add_new_science_pack("rtg", "production-science-pack", 1) - bobmods.lib.tech.add_new_science_pack("rtg", "utility-science-pack", 1) - bobmods.lib.tech.add_prerequisite("rtg", "utility-science-pack") - bobmods.lib.tech.remove_prerequisite("rtg", "angels-coal-processing-3") - bobmods.lib.tech.add_prerequisite("rtg", "sodium-processing-2") + bobmods.lib.tech.add_new_science_pack("bob-rtg", "production-science-pack", 1) + bobmods.lib.tech.add_new_science_pack("bob-rtg", "utility-science-pack", 1) + bobmods.lib.tech.add_prerequisite("bob-rtg", "utility-science-pack") + bobmods.lib.tech.remove_prerequisite("bob-rtg", "angels-coal-processing-3") + bobmods.lib.tech.add_prerequisite("bob-rtg", "sodium-processing-2") end -- Swap gold for platinum -seablock.lib.substingredient("processing-electronics", "angels-wire-platinum", nil, 20) +seablock.lib.substingredient("bob-processing-electronics", "angels-wire-platinum", nil, 20) if mods["bobmodules"] then - seablock.lib.substingredient("module-processor-board-3", "angels-wire-platinum", "angels-plate-platinum", nil) + seablock.lib.substingredient("bob-module-processor-board-3", "angels-wire-platinum", "angels-plate-platinum", nil) end -bobmods.lib.tech.add_prerequisite("advanced-electronics-3", "angels-platinum-smelting-1") +bobmods.lib.tech.add_prerequisite("bob-advanced-processing-unit", "angels-platinum-smelting-1") seablock.lib.substresult("angelsore-pure-mix2-processing", "platinum-ore", nil, 2) seablock.lib.substresult("angelsore9-crystal-processing", "platinum-ore", nil, 2) -- Swap stiratite for crotinnium so all pure ores are used @@ -154,7 +156,8 @@ seablock.lib.substingredient("angelsore-pure-mix2-processing", "angels-ore3-pure -- Unhide rocket part to make it easier to view recipes if data.raw.recipe["rocket-part"] then - angelsmods.functions.remove_flag("rocket-part", "hidden") + -- angelsmods.functions.remove_flag("rocket-part", "hidden") + -- angelsmods.functions.unhide("rocket-part") local r = data.raw.recipe["rocket-part"] if r.normal then @@ -172,33 +175,33 @@ if data.raw.recipe["rocket-part"] then end -- Buff bob's silicon and tungsten recipes -seablock.lib.substingredient("silicon-carbide", "silicon-powder", nil, 10) -seablock.lib.substingredient("silicon-carbide", "carbon", nil, 10) -data.raw.recipe["silicon-carbide"].result_count = 20 - -seablock.lib.substingredient("silicon-nitride", "silicon-powder", nil, 10) -seablock.lib.substingredient("silicon-nitride", "gas-nitrogen", nil, 130) -data.raw.recipe["silicon-nitride"].result_count = 10 - -seablock.lib.substingredient("tungsten-carbide", "tungsten-oxide", nil, 10) -seablock.lib.substingredient("tungsten-carbide", "carbon", nil, 10) -seablock.lib.substresult("tungsten-carbide", "tungsten-carbide", nil, 20) -bobmods.lib.recipe.set_energy_required("tungsten-carbide", 6) - -seablock.lib.substingredient("tungsten-carbide-2", "powdered-tungsten", nil, 10) -seablock.lib.substingredient("tungsten-carbide-2", "carbon", nil, 10) -seablock.lib.substresult("tungsten-carbide-2", "tungsten-carbide", nil, 20) -bobmods.lib.recipe.set_energy_required("tungsten-carbide-2", 6) - -seablock.lib.substingredient("copper-tungsten-alloy", "powdered-tungsten", nil, 15) -seablock.lib.substingredient("copper-tungsten-alloy", "copper-plate", "powder-copper", 10) -seablock.lib.substresult("copper-tungsten-alloy", "copper-tungsten-alloy", nil, 25) -bobmods.lib.recipe.set_energy_required("copper-tungsten-alloy", 8) -bobmods.lib.tech.add_prerequisite("tungsten-alloy-processing", "angels-copper-smelting-2") +seablock.lib.substingredient("bob-silicon-carbide", "bob-silicon-powder", nil, 10) +seablock.lib.substingredient("bob-silicon-carbide", "bob-carbon", nil, 10) +data.raw.recipe["bob-silicon-carbide"].results[1].amount = 20 + +seablock.lib.substingredient("bob-silicon-nitride", "bob-silicon-powder", nil, 10) +seablock.lib.substingredient("bob-silicon-nitride", "gas-nitrogen", nil, 130) +data.raw.recipe["bob-silicon-nitride"].results[1].amount = 10 + +seablock.lib.substingredient("bob-tungsten-carbide", "bob-tungsten-oxide", nil, 10) +seablock.lib.substingredient("bob-tungsten-carbide", "bob-carbon", nil, 10) +seablock.lib.substresult("bob-tungsten-carbide", "bob-tungsten-carbide", nil, 20) +bobmods.lib.recipe.set_energy_required("bob-tungsten-carbide", 6) + +seablock.lib.substingredient("bob-tungsten-carbide-2", "bob-powdered-tungsten", nil, 10) +seablock.lib.substingredient("bob-tungsten-carbide-2", "bob-carbon", nil, 10) +seablock.lib.substresult("bob-tungsten-carbide-2", "bob-tungsten-carbide", nil, 20) +bobmods.lib.recipe.set_energy_required("bob-tungsten-carbide-2", 6) + +seablock.lib.substingredient("bob-copper-tungsten-alloy", "bob-powdered-tungsten", nil, 15) +seablock.lib.substingredient("bob-copper-tungsten-alloy", "copper-plate", "powder-copper", 10) +seablock.lib.substresult("bob-copper-tungsten-alloy", "bob-copper-tungsten-alloy", nil, 25) +bobmods.lib.recipe.set_energy_required("bob-copper-tungsten-alloy", 8) +bobmods.lib.tech.add_prerequisite("bob-tungsten-alloy-processing", "angels-copper-smelting-2") -- Other prerequisites -if data.raw.technology["electronics-machine-1"] then - bobmods.lib.tech.add_prerequisite("electronics-machine-1", "electronics") +if data.raw.technology["bob-electronics-machine-1"] then + bobmods.lib.tech.add_prerequisite("bob-electronics-machine-1", "bob-electronics") end bobmods.lib.tech.add_prerequisite("bio-pressing-1", "bio-nutrient-paste") @@ -212,35 +215,35 @@ bobmods.lib.tech.add_prerequisite("water-treatment-2", "fluid-handling") bobmods.lib.tech.add_prerequisite("water-washing-2", "fluid-handling") -- Nerf early game glass. Just need a little bit for arboretums -seablock.lib.substingredient("quartz-glass", "quartz", nil, 10) -seablock.lib.substresult("quartz-glass", "glass", nil, 1) +seablock.lib.substingredient("bob-glass", "bob-quartz", nil, 10) +seablock.lib.substresult("bob-glass", "bob-glass", nil, 1) -- Biologically active tile has been hidden so no need for the prerequisites bobmods.lib.tech.remove_prerequisite("bio-farm-2", "angels-glass-smelting-1") bobmods.lib.tech.remove_prerequisite("bio-farm-2", "angels-stone-smelting-2") -- Rebalance glass mixture recipes -bobmods.lib.recipe.remove_ingredient("glass-mixture-1", "quartz") -bobmods.lib.recipe.set_ingredient("glass-mixture-1", { "silicon-powder", 1 }) +bobmods.lib.recipe.remove_ingredient("glass-mixture-1", "bob-quartz") +bobmods.lib.recipe.set_ingredient("glass-mixture-1", { type = "item", name = "bob-silicon-powder", amount = 1 }) -bobmods.lib.recipe.remove_ingredient("glass-mixture-2", "quartz") -bobmods.lib.recipe.set_ingredient("glass-mixture-2", { "silicon-powder", 2 }) -bobmods.lib.recipe.set_result("glass-mixture-2", { "solid-glass-mixture", 3 }) +bobmods.lib.recipe.remove_ingredient("glass-mixture-2", "bob-quartz") +bobmods.lib.recipe.set_ingredient("glass-mixture-2", { type = "item", name = "bob-silicon-powder", amount = 2 }) +bobmods.lib.recipe.set_result("glass-mixture-2", { type = "item", name = "solid-glass-mixture", amount = 3 }) bobmods.lib.recipe.set_energy_required("glass-mixture-2", 6) -bobmods.lib.recipe.remove_ingredient("glass-mixture-3", "quartz") -bobmods.lib.recipe.set_ingredient("glass-mixture-3", { "silicon-powder", 1 }) -bobmods.lib.recipe.set_ingredient("glass-mixture-3", { "solid-lime", 2 }) -bobmods.lib.recipe.set_result("glass-mixture-3", { "solid-glass-mixture", 4 }) +bobmods.lib.recipe.remove_ingredient("glass-mixture-3", "bob-quartz") +bobmods.lib.recipe.set_ingredient("glass-mixture-3", { type = "item", name = "bob-silicon-powder", amount = 1 }) +bobmods.lib.recipe.set_ingredient("glass-mixture-3", { type = "item", name = "solid-lime", amount = 2 }) +bobmods.lib.recipe.set_result("glass-mixture-3", { type = "item", name = "solid-glass-mixture", amount = 4 }) bobmods.lib.recipe.set_energy_required("glass-mixture-3", 8) bobmods.lib.recipe.set_energy_required("glass-mixture-4", 8) -- Rebalance cement recipes -bobmods.lib.recipe.replace_ingredient("cement-mixture-1", "quartz", "silicon-powder") +bobmods.lib.recipe.replace_ingredient("cement-mixture-1", "bob-quartz", "bob-silicon-powder") bobmods.lib.recipe.remove_ingredient("cement-mixture-2", "iron-ore") -bobmods.lib.recipe.replace_ingredient("cement-mixture-2", "quartz", "silicon-powder") -bobmods.lib.recipe.set_ingredient("cement-mixture-2", { "solid-lime", 4 }) -bobmods.lib.recipe.set_result("cement-mixture-2", { "solid-cement", 4 }) +bobmods.lib.recipe.replace_ingredient("cement-mixture-2", "bob-quartz", "bob-silicon-powder") +bobmods.lib.recipe.set_ingredient("cement-mixture-2", { type = "item", name = "solid-lime", amount = 4 }) +bobmods.lib.recipe.set_result("cement-mixture-2", { type = "item", name = "solid-cement", amount = 4 }) bobmods.lib.recipe.set_energy_required("cement-mixture-2", 16) diff --git a/SeaBlock/data-updates/other-mods.lua b/SeaBlock/data-updates/other-mods.lua index 6da50f8..9240ddd 100644 --- a/SeaBlock/data-updates/other-mods.lua +++ b/SeaBlock/data-updates/other-mods.lua @@ -19,7 +19,7 @@ if mods["jetpack"] then bobmods.lib.tech.add_prerequisite("jetpack-1", "zinc-processing") bobmods.lib.recipe.replace_ingredient("jetpack-1", "electronic-circuit", "advanced-circuit") bobmods.lib.recipe.replace_ingredient("jetpack-1", "pipe", "brass-pipe") - bobmods.lib.recipe.replace_ingredient("jetpack-1", "steel-plate", "invar-alloy") + bobmods.lib.recipe.replace_ingredient("jetpack-1", "steel-plate", "bob-invar-alloy") bobmods.lib.tech.add_science_pack("jetpack-2", "military-science-pack", 1) bobmods.lib.tech.add_prerequisite("jetpack-2", "advanced-electronics-2") @@ -27,19 +27,19 @@ if mods["jetpack"] then bobmods.lib.tech.add_science_pack("jetpack-3", "military-science-pack", 1) bobmods.lib.tech.add_science_pack("jetpack-3", "production-science-pack", 1) - bobmods.lib.recipe.replace_ingredient("jetpack-3", "processing-unit", "advanced-processing-unit") + bobmods.lib.recipe.replace_ingredient("jetpack-3", "processing-unit", "bob-advanced-processing-unit") bobmods.lib.tech.add_science_pack("jetpack-4", "military-science-pack", 1) bobmods.lib.tech.add_science_pack("jetpack-4", "production-science-pack", 1) if mods["bobmodules"] then if mods["CircuitProcessing"] then bobmods.lib.recipe.remove_ingredient("jetpack-4", "speed-module-4") - bobmods.lib.recipe.remove_ingredient("jetpack-4", "effectivity-module-4") - bobmods.lib.recipe.add_new_ingredient("jetpack-4", { type = "item", name = "speed-module-8", amount = 2 }) - bobmods.lib.recipe.add_new_ingredient("jetpack-4", { type = "item", name = "effectivity-module-8", amount = 2 }) + bobmods.lib.recipe.remove_ingredient("jetpack-4", "efficiency-module-4") + bobmods.lib.recipe.add_new_ingredient("jetpack-4", { type = "item", name = "speed-module-5", amount = 2 }) + bobmods.lib.recipe.add_new_ingredient("jetpack-4", { type = "item", name = "efficiency-module-5", amount = 2 }) else - bobmods.lib.recipe.replace_ingredient("jetpack-4", "speed-module-3", "speed-module-8") - bobmods.lib.recipe.replace_ingredient("jetpack-4", "effectivity-module-3", "effectivity-module-8") + bobmods.lib.recipe.replace_ingredient("jetpack-4", "speed-module-3", "speed-module-5") + bobmods.lib.recipe.replace_ingredient("jetpack-4", "efficiency-module-3", "efficiency-module-5") end end end diff --git a/SeaBlock/data-updates/rubber.lua b/SeaBlock/data-updates/rubber.lua index cf3d5ff..79dc193 100644 --- a/SeaBlock/data-updates/rubber.lua +++ b/SeaBlock/data-updates/rubber.lua @@ -1,13 +1,13 @@ bobmods.lib.recipe.hide("bob-rubber") -bobmods.lib.tech.remove_recipe_unlock("circuit-network", "insulated-cable") -bobmods.lib.tech.add_recipe_unlock("rubbers", "insulated-cable") +bobmods.lib.tech.remove_recipe_unlock("circuit-network", "bob-insulated-cable") +bobmods.lib.tech.add_recipe_unlock("rubbers", "bob-insulated-cable") -- Circuit network wires should not require rubber -bobmods.lib.recipe.set_ingredients("green-wire", { { "solid-paper", 2 }, { "tinned-copper-cable", 1 } }) -bobmods.lib.recipe.set_ingredients("red-wire", { { "solid-paper", 2 }, { "tinned-copper-cable", 1 } }) +--bobmods.lib.recipe.set_ingredients("green-wire", { { "solid-paper", 2 }, { "bob-tinned-copper-cable", 1 } }) +--bobmods.lib.recipe.set_ingredients("red-wire", { { "solid-paper", 2 }, { "bob-tinned-copper-cable", 1 } }) if mods["CircuitProcessing"] then - bobmods.lib.tech.add_prerequisite("effectivity-module", "rubbers") + bobmods.lib.tech.add_prerequisite("efficiency-module", "rubbers") bobmods.lib.tech.add_prerequisite("productivity-module", "rubbers") bobmods.lib.tech.add_prerequisite("speed-module", "rubbers") end diff --git a/SeaBlock/data-updates/science-cost-tweaker.lua b/SeaBlock/data-updates/science-cost-tweaker.lua index 9722499..93cc495 100644 --- a/SeaBlock/data-updates/science-cost-tweaker.lua +++ b/SeaBlock/data-updates/science-cost-tweaker.lua @@ -1,43 +1,43 @@ if mods["ScienceCostTweakerM"] then - if data.raw.item["lab-2"] then + if data.raw.item["bob-lab-2"] then -- Update lab energy usage - data.raw.lab["lab-2"].energy_usage = "10MW" + data.raw.lab["bob-lab-2"].energy_usage = "10MW" -- Only two module slots for lab-2 if s.c.t. is installed (other labs have no module slots) - data.raw.lab["lab-2"].module_specification.module_slots = 2 + data.raw.lab["bob-lab-2"].module_slots = 2 end -- Change tech to use lab icon from SCT - data.raw.tool["sb-lab-tool"].icon = "__ScienceCostTweakerM__/graphics/sct-lab-t1/icon-64.png" - data.raw.tool["sb-lab-tool"].icon_mipmaps = 0 + data.raw["technology"]["sb-startup4"].icon = "__ScienceCostTweakerM__/graphics/sct-lab-t1/icon-64.png" + data.raw["technology"]["sb-startup4"].icon_mipmaps = 0 -- Reduce processing unit cost of S.C.T. high-tech science seablock.lib.substingredient("sct-htech-injector", "processing-unit", nil, 3) -- Hide empty tech (Lab 2 will have been moved to it's own tech sct-lab-lab2 - seablock.lib.hide_technology("advanced-research") + seablock.lib.hide_technology("bob-advanced-research") -- Yellow science now requires Purple science -- Adjust any techs that needed Yellow but not Purple - bobmods.lib.tech.replace_science_pack("fusion-reactor-equipment", "utility-science-pack", "production-science-pack") - bobmods.lib.tech.replace_prerequisite("fusion-reactor-equipment", "utility-science-pack", "production-science-pack") - bobmods.lib.tech.add_prerequisite("fusion-reactor-equipment", "low-density-structure") + bobmods.lib.tech.replace_science_pack("fission-reactor-equipment", "utility-science-pack", "production-science-pack") + bobmods.lib.tech.replace_prerequisite("fission-reactor-equipment", "utility-science-pack", "production-science-pack") + bobmods.lib.tech.add_prerequisite("fission-reactor-equipment", "low-density-structure") if mods["bobequipment"] then - bobmods.lib.tech.add_prerequisite("fusion-reactor-equipment-3", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-fission-reactor-equipment-3", "utility-science-pack") end if mods["bobvehicleequipment"] then bobmods.lib.tech.replace_science_pack( - "vehicle-fusion-reactor-equipment-2", + "bob-vehicle-fission-reactor-equipment-2", "utility-science-pack", "production-science-pack" ) bobmods.lib.tech.replace_prerequisite( - "vehicle-fusion-reactor-equipment-2", + "bob-vehicle-fission-reactor-equipment-2", "utility-science-pack", "production-science-pack" ) - bobmods.lib.tech.add_prerequisite("vehicle-fusion-reactor-equipment-3", "utility-science-pack") + bobmods.lib.tech.add_prerequisite("bob-vehicle-fission-reactor-equipment-3", "utility-science-pack") end -- Move intermediates from Advanced Material Processing to Purple Science diff --git a/SeaBlock/data-updates/slag-processing.lua b/SeaBlock/data-updates/slag-processing.lua index a0922be..4f81419 100644 --- a/SeaBlock/data-updates/slag-processing.lua +++ b/SeaBlock/data-updates/slag-processing.lua @@ -9,24 +9,12 @@ for i = 1, 6 do recipe.localised_name = { "recipe-name.slag-processing", { "item-name.angels-ore" .. i } } recipe.order = "a-a [angels-ore-" .. i .. "]" - recipe.ingredients = nil - recipe.results = nil - recipe.energy_required = nil recipe.category = "crystallizing" - - recipe.normal = { - energy_required = 4, - ingredients = { { type = "fluid", name = "mineral-sludge", amount = 25 } }, - results = { { type = "item", name = "angels-ore" .. i, amount = 1 } }, - enabled = false, - } - - recipe.expensive = { - energy_required = 8, - ingredients = { { type = "fluid", name = "mineral-sludge", amount = 50 } }, - results = { { type = "item", name = "angels-ore" .. i, amount = 1 } }, - enabled = false, - } + recipe.energy_required = 4 + recipe.ingredients = { { type = "fluid", name = "mineral-sludge", amount = 25 } } + recipe.results = { { type = "item", name = "angels-ore" .. i, amount = 1 } } + recipe.enabled = false + end -- Angels ores 1, 3 (Saphirite, Stiratite) available from tutorial tech 1, @@ -45,21 +33,22 @@ seablock.lib.moveeffect("slag-processing-4", "slag-processing-2", "ore-advanced- seablock.lib.moveeffect("angelsore2-crushed", "ore-crushing", "ore-advanced-crushing", slag2start + 3) seablock.lib.moveeffect("angelsore4-crushed", "ore-crushing", "ore-advanced-crushing", slag2start + 4) + seablock.lib.add_recipe_unlock("ore-crushing", "angelsore5-crushed", 3) seablock.lib.add_recipe_unlock("ore-crushing", "angelsore6-crushed", 4) seablock.lib.add_recipe_unlock("ore-crushing", "iron-plate") seablock.lib.add_recipe_unlock("ore-crushing", "copper-plate") -seablock.lib.add_recipe_unlock("ore-crushing", "lead-plate") -seablock.lib.add_recipe_unlock("ore-crushing", "tin-plate") -seablock.lib.add_recipe_unlock("ore-crushing", "quartz-glass") +seablock.lib.add_recipe_unlock("ore-crushing", "bob-lead-plate") +seablock.lib.add_recipe_unlock("ore-crushing", "bob-tin-plate") +seablock.lib.add_recipe_unlock("ore-crushing", "bob-glass") seablock.lib.unhide_recipe("iron-plate") seablock.lib.unhide_recipe("copper-plate") -seablock.lib.unhide_recipe("lead-plate") -seablock.lib.unhide_recipe("tin-plate") +seablock.lib.unhide_recipe("bob-lead-plate") +seablock.lib.unhide_recipe("bob-tin-plate") -- Hide unwanted recipes -bobmods.lib.recipe.hide("silver-plate") +bobmods.lib.recipe.hide("bob-silver-plate") bobmods.lib.tech.remove_recipe_unlock("ore-crushing", "angelsore2-crushed-processing") bobmods.lib.tech.remove_recipe_unlock("ore-crushing", "angelsore4-crushed-processing") bobmods.lib.recipe.hide("angelsore2-crushed-processing") @@ -89,8 +78,8 @@ data.raw.technology["slag-processing-1"].unit = { } bobmods.lib.tech.add_prerequisite("advanced-ore-refining-2", "ore-powderizer") -bobmods.lib.tech.add_prerequisite("advanced-ore-refining-2", "advanced-electronics") -bobmods.lib.tech.add_prerequisite("advanced-ore-refining-4", "advanced-electronics-3") +bobmods.lib.tech.add_prerequisite("advanced-ore-refining-2", "advanced-circuit") +bobmods.lib.tech.add_prerequisite("advanced-ore-refining-4", "bob-advanced-processing-unit") bobmods.lib.tech.add_prerequisite("advanced-ore-refining-4", "angels-tungsten-smelting-1") -- Add an additional slag to the mixed sorting recipes diff --git a/SeaBlock/data-updates/startup.lua b/SeaBlock/data-updates/startup.lua index dfb8e71..7ec15b9 100644 --- a/SeaBlock/data-updates/startup.lua +++ b/SeaBlock/data-updates/startup.lua @@ -8,59 +8,59 @@ local knowningredients = { ["angels-electrolyser"] = { { "iron-plate", 10 }, - { "basic-circuit-board", 5 }, + { "bob-basic-circuit-board", 5 }, { "iron-stick", 22 }, { "stone-brick", 10 }, }, ["liquifier"] = { { "iron-plate", 10 }, - { "basic-circuit-board", 5 }, + { "bob-basic-circuit-board", 5 }, { "pipe-to-ground", 2 }, { "stone-brick", 10 }, }, ["offshore-pump"] = { - { "basic-circuit-board", 2 }, + { "bob-basic-circuit-board", 2 }, { "pipe", 1 }, { "iron-gear-wheel", 10 }, }, ["crystallizer"] = { { "iron-plate", 10 }, - { "basic-circuit-board", 5 }, - { "copper-pipe", 5 }, + { "bob-basic-circuit-board", 5 }, + { "bob-copper-pipe", 5 }, { "stone-brick", 10 }, }, ["algae-farm"] = { { "iron-plate", 10 }, - { "basic-circuit-board", 5 }, + { "bob-basic-circuit-board", 5 }, { "iron-stick", 10 }, { "stone-brick", 25 }, }, ["angels-flare-stack"] = { { "iron-plate", 5 }, - { "basic-circuit-board", 5 }, + { "bob-basic-circuit-board", 5 }, { "pipe", 10 }, { "stone-brick", 10 }, }, ["seafloor-pump"] = { { "iron-plate", 5 }, - { "basic-circuit-board", 2 }, + { "bob-basic-circuit-board", 2 }, { "pipe", 5 }, }, ["washing-plant"] = { { "iron-plate", 10 }, - { "basic-circuit-board", 5 }, + { "bob-basic-circuit-board", 5 }, { "pipe", 10 }, { "stone-brick", 10 }, }, ["angels-chemical-plant"] = { { "iron-plate", 5 }, { "iron-gear-wheel", 5 }, - { "basic-circuit-board", 5 }, + { "bob-basic-circuit-board", 5 }, { "pipe", 5 }, }, ["filtration-unit"] = { { "iron-plate", 5 }, - { "basic-circuit-board", 5 }, + { "bob-basic-circuit-board", 5 }, { "pipe", 10 }, { "stone-brick", 10 }, }, @@ -99,11 +99,13 @@ end if data.raw.technology["sct-automation-science-pack"] then bobmods.lib.tech.add_prerequisite("sct-automation-science-pack", "sct-lab-t1") - data.raw.technology["sct-automation-science-pack"].unit = { - count = 1, - ingredients = { { "sb-lab-tool", 1 } }, - time = 1, - } + -- data.raw.technology["sct-automation-science-pack"].unit = { + -- count = 1, + -- ingredients = { { "sb-lab-tool", 1 } }, + -- time = 1, + -- } + data.raw.technology["sct-automation-science-pack"].research_trigger = {type = "craft-item", item = "lab"} + data.raw.technology["sct-automation-science-pack"].unit = nil data.raw.technology["sct-lab-t1"].unit = { count = 1, ingredients = {}, @@ -133,7 +135,7 @@ local function ironrecipe(recipe) ["iron-stick"] = true, ["pipe"] = true, ["pipe-to-ground"] = true, - ["basic-circuit-board"] = true, + ["bob-basic-circuit-board"] = true, ["electronic-circuit"] = true, ["stone-brick"] = true, ["copper-plate"] = true, @@ -157,6 +159,7 @@ local function ironrecipe(recipe) return foundiron end + -- Disable recipes that shouldn't consume startup items for k, v in pairs(data.raw.recipe) do local r = v.normal or v @@ -205,12 +208,14 @@ end -- Limit research required for startup techs. for k, v in pairs(seablock.startup_techs) do if data.raw.technology[k] then - if v[1] and data.raw.technology[k].unit.count > 20 then - data.raw.technology[k].unit.count = 20 - data.raw.technology[k].unit.ingredients = { { "automation-science-pack", 1 } } + if data.raw.technology[k].unit then + if v[1] and data.raw.technology[k].unit.count > 20 then + data.raw.technology[k].unit.count = 20 + data.raw.technology[k].unit.ingredients = { { "automation-science-pack", 1 } } + end + bobmods.lib.tech.ignore_tech_cost_multiplier(k, true) + data.raw.technology[k].unit.time = 15 end - bobmods.lib.tech.ignore_tech_cost_multiplier(k, true) - data.raw.technology[k].unit.time = 15 end end @@ -221,3 +226,9 @@ data.raw.technology["bio-wood-processing"].unit = { ingredients = {}, time = 1, } + +-- Remove cycle introduced in the tech tree +-- Sectoid upgraded angelsbioprocessing by renaming the old prerequisite "basic-automation" into "electronics" +bobmods.lib.tech.remove_prerequisite("basic-chemistry", "electronics") +bobmods.lib.tech.remove_prerequisite("bio-processing-brown", "electronics") +bobmods.lib.tech.add_prerequisite("bio-processing-brown", "automation") \ No newline at end of file diff --git a/SeaBlock/data-updates/sulfur.lua b/SeaBlock/data-updates/sulfur.lua index 315ff94..250b96a 100644 --- a/SeaBlock/data-updates/sulfur.lua +++ b/SeaBlock/data-updates/sulfur.lua @@ -1,9 +1,10 @@ -- Washing plant sulfur byproduct -local washing_fluid_box = { +local washing_fluid_box = { --TODO: check correctness of washing plant fluid box production_type = "output", pipe_covers = pipecoverspictures(), - base_level = 1, - pipe_connections = { { position = { -3, 0 }, type = "output" } }, + --base_level = 1, + volume = 100, --TODO: decide the correct value + pipe_connections = { { position = { -2, 0 }, flow_direction = "output", direction = defines.direction.west } }, } for _, v in pairs({ "", "-2", "-3", "-4" }) do local washingplant = data.raw["assembling-machine"]["washing-plant" .. v] diff --git a/SeaBlock/data-updates/thermal-extractor.lua b/SeaBlock/data-updates/thermal-extractor.lua index 376629f..1f15447 100644 --- a/SeaBlock/data-updates/thermal-extractor.lua +++ b/SeaBlock/data-updates/thermal-extractor.lua @@ -59,16 +59,18 @@ extractor.fluid_boxes = { { production_type = "input", base_area = 10, - base_level = -1, + --base_level = -1, + volume = 1000, pipe_covers = pipecoverspictures(), - pipe_connections = { { type = "input", position = { 5, 3 } } }, + pipe_connections = { { flow_direction = "input", position = { 3, - 4 }, direction = defines.direction.north } }, }, { production_type = "output", base_area = 10, - base_level = 1, + --base_level = 1, + volume = 1000, pipe_covers = pipecoverspictures(), - pipe_connections = { { type = "output", position = { -5, -3 } } }, + pipe_connections = { { flow_direction = "output", position = { -3, 4 }, direction = defines.direction.south } }, }, } extractor.animation = { @@ -81,7 +83,8 @@ extractor.crafting_categories = { "thermal-extractor" } extractor.fixed_recipe = "thermal-extractor-water" bobmods.lib.tech.add_recipe_unlock("thermal-water-extraction-2", "thermal-extractor-water") move_item("thermal-extractor", "water-treatment-building", "f[thermal-extractor]-b[extractor]", "item") -bobmods.lib.recipe.add_ingredient("thermal-extractor", { "thermal-bore", 1 }) +bobmods.lib.recipe.add_ingredient("thermal-extractor", { type = "item", name = "thermal-bore", amount = 1 }) +extractor.vector_to_place_result = nil -- remove the yellow arrow of the mining drill local bore = data.raw["mining-drill"]["thermal-bore"] data.raw["mining-drill"]["thermal-bore"] = nil @@ -93,16 +96,19 @@ bore.fluid_boxes = { { production_type = "output", base_area = 1, - base_level = 1, + --base_level = 1, + volume = 500, pipe_covers = pipecoverspictures(), pipe_connections = { { - type = "output", - positions = { { 1, -2 }, { 2, -1 }, { -1, 2 }, { -2, 1 } }, + flow_direction = "output", + positions = { { 1, -1 }, { 1, -1 }, { -1, 1 }, { -1, 1 } }, + direction = defines.direction.north, }, }, }, } +bore.vector_to_place_result = nil local function makesheet(sheet, count, d) local r = table.deepcopy(sheet) @@ -118,10 +124,10 @@ end local function makeborelayers(d) return { layers = { - makesheet(bore.base_picture.sheets[1], bore.animations.north.layers[1].frame_count, d), - makesheet(bore.base_picture.sheets[2], bore.animations.north.layers[1].frame_count, d), - bore.animations.north.layers[1], - bore.animations.north.layers[2], + makesheet(bore.graphics_set.animation.layers[1], bore.wet_mining_graphics_set.animation.north.layers[1].frame_count, d), + makesheet(bore.graphics_set.animation.layers[2], bore.wet_mining_graphics_set.animation.north.layers[1].frame_count, d), + bore.wet_mining_graphics_set.animation.north.layers[1], + bore.wet_mining_graphics_set.animation.north.layers[2], }, } end diff --git a/SeaBlock/data-updates/unobtainable-items.lua b/SeaBlock/data-updates/unobtainable-items.lua index 62fd2a7..9cc0985 100644 --- a/SeaBlock/data-updates/unobtainable-items.lua +++ b/SeaBlock/data-updates/unobtainable-items.lua @@ -1,9 +1,9 @@ seablock.lib.hide("mining-drill", "burner-mining-drill") seablock.lib.hide("mining-drill", "electric-mining-drill") seablock.lib.hide("mining-drill", "pumpjack") -seablock.lib.hide("storage-tank", "bob-overflow-valve") -seablock.lib.hide("storage-tank", "bob-valve") -seablock.lib.hide("storage-tank", "bob-topup-valve") +seablock.lib.hide("storage-tank", "overflow-valve") +seablock.lib.hide("storage-tank", "valve") +seablock.lib.hide("storage-tank", "topup-valve") -- Hide Oil & Gas Separator -- Hide Advanced Gas Refinery @@ -46,8 +46,8 @@ bobmods.lib.recipe.hide("electro-whinning-cell") bobmods.lib.recipe.hide("electro-whinning-cell-2") bobmods.lib.recipe.hide("empty-gas-chlor-methane-barrel") bobmods.lib.recipe.hide("empty-liquid-multi-phase-oil-barrel") -bobmods.lib.recipe.hide("fill-gas-chlor-methane-barrel") -bobmods.lib.recipe.hide("fill-liquid-multi-phase-oil-barrel") +bobmods.lib.recipe.hide("gas-chlor-methane-barrel") +bobmods.lib.recipe.hide("liquid-multi-phase-oil-barrel") bobmods.lib.recipe.hide("gas-chlor-methane") bobmods.lib.recipe.hide("gas-fractioning-synthesis") bobmods.lib.recipe.hide("gas-refinery") @@ -70,10 +70,10 @@ bobmods.lib.tech.remove_recipe_unlock("angels-advanced-gas-processing", "gas-fra bobmods.lib.tech.remove_recipe_unlock("angels-advanced-gas-processing", "gas-refinery") bobmods.lib.tech.remove_recipe_unlock("angels-nitrogen-processing-4", "gas-refinery-4") bobmods.lib.tech.remove_recipe_unlock("chlorine-processing-2", "gas-chlor-methane") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "empty-liquid-multi-phase-oil-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", "fill-liquid-multi-phase-oil-barrel") -bobmods.lib.tech.remove_recipe_unlock("gas-canisters", "empty-gas-chlor-methane-barrel") -bobmods.lib.tech.remove_recipe_unlock("gas-canisters", "fill-gas-chlor-methane-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "empty-liquid-multi-phase-oil-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-barrel-processing", "liquid-multi-phase-oil-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-gas-canisters", "empty-gas-chlor-methane-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-gas-canisters", "fill-gas-chlor-methane-barrel") bobmods.lib.tech.remove_recipe_unlock("ore-electro-whinning-cell", "electro-whinning-cell") bobmods.lib.recipe.replace_ingredient("paste-cellulose", "gas-chlor-methane", "gas-chlorine") @@ -90,41 +90,41 @@ bobmods.lib.tech.remove_recipe_unlock("angels-titanium-casting-3", "molten-titan bobmods.lib.tech.remove_prerequisite("angels-titanium-casting-3", "angels-chrome-smelting-1") -- Hide steam inserter -seablock.lib.hide("inserter", "steam-inserter") -bobmods.lib.recipe.hide("steam-inserter") -seablock.lib.hide_item("steam-inserter") -if data.raw.inserter["steam-inserter"] then - data.raw.inserter["steam-inserter"].next_upgrade = nil - bobmods.lib.recipe.replace_ingredient_in_all("steam-inserter", "burner-inserter") +seablock.lib.hide("inserter", "bob-steam-inserter") +bobmods.lib.recipe.hide("bob-steam-inserter") +seablock.lib.hide_item("bob-steam-inserter") +if data.raw.inserter["bob-steam-inserter"] then + data.raw.inserter["bob-steam-inserter"].next_upgrade = nil + bobmods.lib.recipe.replace_ingredient_in_all("bob-steam-inserter", "burner-inserter") end -bobmods.lib.tech.remove_recipe_unlock(seablock.final_scripted_tech, "steam-inserter") +bobmods.lib.tech.remove_recipe_unlock(seablock.final_scripted_tech, "bob-steam-inserter") -- Hide Liquid Fuel -if data.raw.recipe["enriched-fuel-from-liquid-fuel"] then - bobmods.lib.recipe.set_ingredients("enriched-fuel-from-liquid-fuel", { +if data.raw.recipe["bob-enriched-fuel"] then + bobmods.lib.recipe.set_ingredients("bob-enriched-fuel", { { type = "fluid", name = "liquid-fuel-oil", amount = 80 }, { type = "fluid", name = "gas-residual", amount = 20 }, }) - data.raw.recipe["enriched-fuel-from-liquid-fuel"].icons = - angelsmods.functions.create_solid_recipe_icon({ "liquid-fuel-oil", "gas-residual" }, "enriched-fuel") + data.raw.recipe["bob-enriched-fuel"].icons = + angelsmods.functions.create_solid_recipe_icon({ "liquid-fuel-oil", "gas-residual" }, "bob-enriched-fuel") end -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "empty-liquid-fuel-barrel") -bobmods.lib.tech.remove_recipe_unlock("fluid-canister-processing", "fill-liquid-fuel-barrel") -bobmods.lib.tech.remove_recipe_unlock("flammables", "liquid-fuel") -bobmods.lib.recipe.hide("empty-liquid-fuel-barrel") -bobmods.lib.recipe.hide("fill-liquid-fuel-barrel") -bobmods.lib.recipe.hide("liquid-fuel") -seablock.lib.hide("fluid", "liquid-fuel") -seablock.lib.hide("item", "liquid-fuel-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "empty-bob-liquid-fuel-barrel") +bobmods.lib.tech.remove_recipe_unlock("bob-fluid-canister-processing", "bob-liquid-fuel-barrel") +bobmods.lib.tech.remove_recipe_unlock("flammables", "bob-liquid-fuel") +bobmods.lib.recipe.hide("empty-bob-liquid-fuel-barrel") +bobmods.lib.recipe.hide("bob-liquid-fuel-barrel") +bobmods.lib.recipe.hide("bob-liquid-fuel") +seablock.lib.hide("fluid", "bob-liquid-fuel") +seablock.lib.hide("item", "bob-liquid-fuel-barrel") -- Swap out Nickel and Zinc plates -seablock.lib.substingredient("roboport-antenna-3", "nickel-plate", "titanium-plate", nil) -bobmods.lib.recipe.remove_ingredient("roboport-antenna-4", "nickel-plate") -seablock.lib.substingredient("silver-zinc-battery", "zinc-plate", "solid-zinc-oxide", nil) +seablock.lib.substingredient("bob-roboport-antenna-3", "bob-nickel-plate", "bob-titanium-plate", nil) +bobmods.lib.recipe.remove_ingredient("bob-roboport-antenna-4", "bob-nickel-plate") +seablock.lib.substingredient("bob-silver-zinc-battery", "bob-zinc-plate", "solid-zinc-oxide", nil) seablock.lib.unhide_recipe("zinc-ore-processing-alt") bobmods.lib.tech.add_recipe_unlock("angels-zinc-smelting-2", "zinc-ore-processing-alt") -bobmods.lib.tech.add_prerequisite("battery-3", "angels-zinc-smelting-2") +bobmods.lib.tech.add_prerequisite("bob-battery-3", "angels-zinc-smelting-2") if data.raw.recipe["pellet-zinc-smelting"] then data.raw.recipe["pellet-zinc-smelting"].icons = angelsmods.functions.add_number_icon_layer( angelsmods.functions.get_object_icons("solid-zinc-oxide"), @@ -134,14 +134,14 @@ if data.raw.recipe["pellet-zinc-smelting"] then end if mods["angelsindustries"] then - seablock.lib.substingredient("angels-thorium-fuel-cell", "angels-plate-zinc", "lead-plate", nil) - seablock.lib.substingredient("angels-deuterium-fuel-cell", "angels-plate-zinc", "lead-plate", nil) + seablock.lib.substingredient("angels-thorium-fuel-cell", "angels-plate-zinc", "bob-lead-plate", nil) + seablock.lib.substingredient("angels-deuterium-fuel-cell", "angels-plate-zinc", "bob-lead-plate", nil) end -seablock.lib.hide_item("nickel-plate") -seablock.lib.hide_item("zinc-plate") +seablock.lib.hide_item("bob-nickel-plate") +seablock.lib.hide_item("bob-zinc-plate") bobmods.lib.recipe.hide("bob-zinc-plate") -bobmods.lib.tech.remove_recipe_unlock("zinc-processing", "bob-zinc-plate") +bobmods.lib.tech.remove_recipe_unlock("bob-zinc-processing", "bob-zinc-plate") if mods["cargo-ships"] then seablock.lib.hide_item("oil_rig") diff --git a/SeaBlock/data-updates/wood.lua b/SeaBlock/data-updates/wood.lua index 3c600f3..8d2098c 100644 --- a/SeaBlock/data-updates/wood.lua +++ b/SeaBlock/data-updates/wood.lua @@ -1,30 +1,31 @@ -- Remove wood from basic underground belt and splitter recipes -seablock.lib.removeingredient("basic-underground-belt", "wood") -seablock.lib.removeingredient("basic-splitter", "wood") +seablock.lib.removeingredient("bob-basic-underground-belt", "wood") +seablock.lib.removeingredient("bob-basic-splitter", "wood") -- Can always apply productivity modules to furnace recipes, so make it official -for k, v in pairs(data.raw.module) do - if v.effect and v.effect.productivity and v.limitation then - table.insert(v.limitation, "sb-wood-bricks-charcoal") - end -end +-- for k, v in pairs(data.raw.module) do +-- if v.effect and v.effect.productivity and v.limitation then +-- table.insert(v.limitation, "sb-wood-bricks-charcoal") +-- end +-- end +angelsmods.functions.allow_productivity("sb-wood-bricks-charcoal") bobmods.lib.recipe.enabled("wooden-chest", false) -bobmods.lib.recipe.enabled("wooden-board", false) +bobmods.lib.recipe.enabled("bob-wooden-board", false) bobmods.lib.recipe.enabled("cellulose-fiber-raw-wood", false) bobmods.lib.tech.remove_recipe_unlock("bio-wood-processing", "wood-pellets") bobmods.lib.tech.add_recipe_unlock("bio-wood-processing", "small-electric-pole") bobmods.lib.tech.add_recipe_unlock("bio-wood-processing", "wooden-chest") -bobmods.lib.tech.add_recipe_unlock("bio-wood-processing", "wooden-board") -bobmods.lib.tech.add_recipe_unlock("bio-wood-processing", "basic-circuit-board") +bobmods.lib.tech.add_recipe_unlock("bio-wood-processing", "bob-wooden-board") +bobmods.lib.tech.add_recipe_unlock("bio-wood-processing", "bob-basic-circuit-board") bobmods.lib.tech.remove_prerequisite("bio-wood-processing-2", "bio-farm-1") bobmods.lib.tech.remove_prerequisite("bio-wood-processing-2", "bio-wood-processing") bobmods.lib.tech.add_prerequisite("bio-wood-processing-2", "bio-processing-brown") bobmods.lib.tech.remove_recipe_unlock("bio-wood-processing-2", "wood-charcoal") bobmods.lib.tech.remove_recipe_unlock("bio-wood-processing-2", "bio-resin-wood-reprocessing") -bobmods.lib.tech.remove_recipe_unlock("bio-wood-processing-2", "bob-rubber") +bobmods.lib.tech.remove_recipe_unlock("bio-wood-processing-2", "bob-rubber") -- TODO : check if this is supposed to be bob-rubber bobmods.lib.tech.remove_recipe_unlock("bio-wood-processing-2", "bio-processor") bobmods.lib.tech.add_recipe_unlock("bio-wood-processing-2", "wood-pellets") bobmods.lib.tech.add_recipe_unlock("bio-wood-processing-2", "wood-bricks") diff --git a/SeaBlock/data.lua b/SeaBlock/data.lua index 4bbdcfa..3c5e750 100644 --- a/SeaBlock/data.lua +++ b/SeaBlock/data.lua @@ -11,7 +11,7 @@ require("prototypes/recipe") require("prototypes/recipe-category") require("prototypes/technology") require("prototypes/rockchest") -require("mapgen") +require("new-mapgen") require("data-updates/Companion_Drones") require("data/tables") require("data/misc") diff --git a/SeaBlock/data/ScienceCostTweakerM.lua b/SeaBlock/data/ScienceCostTweakerM.lua index faa8ef4..931b20b 100644 --- a/SeaBlock/data/ScienceCostTweakerM.lua +++ b/SeaBlock/data/ScienceCostTweakerM.lua @@ -4,27 +4,27 @@ if mods["ScienceCostTweakerM"] then if mods["bobtech"] then -- Rename Lab 2 to Exoplanetary Studies Lab - if data.raw.item["lab-2"] then - data.raw.item["lab-2"].localised_name = { "item-name.sct-lab-lab2" } + if data.raw.item["bob-lab-2"] then + data.raw.item["bob-lab-2"].localised_name = { "item-name.sct-lab-lab2" } end - if data.raw.lab["lab-2"] then - data.raw.lab["lab-2"].localised_name = { "entity-name.sct-lab-lab2" } + if data.raw.lab["bob-lab-2"] then + data.raw.lab["bob-lab-2"].localised_name = { "entity-name.sct-lab-lab2" } end - bobmods.lib.recipe.set_ingredients("lab-2", { - { "sct-lab-t4", 1 }, - { "rocket-silo", 1 }, - { "nitinol-alloy", 100 }, - { "express-stack-filter-inserter", 2 }, - { "advanced-processing-unit", 20 }, + bobmods.lib.recipe.set_ingredients("bob-lab-2", { + { type = "item", name = "sct-lab-t4", amount = 1 }, + { type = "item", name = "rocket-silo", amount = 1 }, + { type = "item", name = "bob-nitinol-alloy", amount = 100 }, + { type = "item", name = "bob-express-bulk-inserter", amount = 2 }, + { type = "item", name = "bob-advanced-processing-unit", amount = 20 }, }) bobmods.lib.tech.add_prerequisite("sct-lab-lab2", "rocket-silo") bobmods.lib.tech.remove_prerequisite("sct-space-science-pack", "rocket-silo") bobmods.lib.tech.add_prerequisite("sct-space-science-pack", "sct-lab-lab2") - if data.raw.technology["stack-inserter-4"] then - bobmods.lib.tech.add_prerequisite("sct-lab-lab2", "stack-inserter-4") + if data.raw.technology["bob-bulk-inserter-4"] then + bobmods.lib.tech.add_prerequisite("sct-lab-lab2", "bob-bulk-inserter-4") else - bobmods.lib.tech.add_prerequisite("sct-lab-lab2", "stack-inserter-2") + bobmods.lib.tech.add_prerequisite("sct-lab-lab2", "bob-bulk-inserter-2") end end end diff --git a/SeaBlock/data/recipe.lua b/SeaBlock/data/recipe.lua index 51bea66..1673a08 100644 --- a/SeaBlock/data/recipe.lua +++ b/SeaBlock/data/recipe.lua @@ -1,5 +1,5 @@ -- Buff Lead 3 -seablock.lib.substresult("anode-lead-smelting", "slag", "quartz", 1) +seablock.lib.substresult("anode-lead-smelting", "slag", "bob-quartz", 1) seablock.lib.substingredient("anode-lead-smelting", "liquid-hexafluorosilicic-acid", nil, 20) -- Compost void recipe diff --git a/SeaBlock/data/tables.lua b/SeaBlock/data/tables.lua index 5e6e2c1..f3c64e2 100644 --- a/SeaBlock/data/tables.lua +++ b/SeaBlock/data/tables.lua @@ -29,9 +29,9 @@ seablock.startup_techs = { -- Don't reduce the science pack cost of green algae ["bio-processing-green"] = { false }, ["bio-wood-processing-2"] = { true }, - ["long-inserters-1"] = { true }, + ["bob-long-inserters-1"] = { true }, ["military"] = { true }, - ["optics"] = { true }, + ["lamp"] = { true }, ["slag-processing-1"] = { true }, ["steam-power"] = { true }, ["water-washing-1"] = { true }, diff --git a/SeaBlock/data/tech-tree.lua b/SeaBlock/data/tech-tree.lua index 780bbb1..da40ab8 100644 --- a/SeaBlock/data/tech-tree.lua +++ b/SeaBlock/data/tech-tree.lua @@ -22,14 +22,14 @@ bobmods.lib.tech.remove_prerequisite("angels-iron-smelting-2", "angels-coal-proc bobmods.lib.tech.replace_prerequisite("angels-coal-processing-2", "water-treatment-2", "basic-chemistry-3") -- Add other prerequisites -bobmods.lib.tech.add_prerequisite("gardens", "electronics") +bobmods.lib.tech.add_prerequisite("gardens", "bob-electronics") if mods["ScienceCostTweakerM"] then bobmods.lib.tech.add_prerequisite("sct-bio-science-pack", "bio-arboretum-1") bobmods.lib.tech.add_prerequisite("sb-bio-processing-advanced", "sct-bio-science-pack") bobmods.lib.tech.add_prerequisite("utility-science-pack", "rubber") end -bobmods.lib.tech.add_prerequisite("angels-glass-smelting-1", "silicon-processing") -bobmods.lib.tech.add_prerequisite("angels-stone-smelting-2", "silicon-processing") +bobmods.lib.tech.add_prerequisite("angels-glass-smelting-1", "bob-silicon-processing") +bobmods.lib.tech.add_prerequisite("angels-stone-smelting-2", "bob-silicon-processing") -- Add missing Science Pack Tech prerequisites @@ -61,12 +61,12 @@ bobmods.lib.tech.add_prerequisite("basic-chemistry-2", "logistic-science-pack") bobmods.lib.tech.add_prerequisite("logistic-system", "production-science-pack") -- Utility / Yellow -bobmods.lib.tech.add_prerequisite("radars-5", "utility-science-pack") +bobmods.lib.tech.add_prerequisite("bob-radar-5", "utility-science-pack") -- Space / White if mods["bobequipment"] then bobmods.lib.tech.add_prerequisite("bob-energy-shield-equipment-6", "space-science-pack") - bobmods.lib.tech.add_prerequisite("fusion-reactor-equipment-4", "space-science-pack") + bobmods.lib.tech.add_prerequisite("bob-fission-reactor-equipment-4", "space-science-pack") end if mods["bobwarfare"] then bobmods.lib.tech.add_prerequisite("bob-power-armor-5", "space-science-pack") @@ -91,16 +91,49 @@ bobmods.lib.tech.add_prerequisite("space-science-pack", "military") -- Steam power bobmods.lib.tech.add_prerequisite("automation", "steam-power") -bobmods.lib.tech.add_prerequisite("optics", "steam-power") +bobmods.lib.tech.add_prerequisite("lamp", "steam-power") if data.raw.technology["bob-greenhouse"] then bobmods.lib.tech.add_prerequisite("bob-greenhouse", "steam-power") end bobmods.lib.tech.add_prerequisite("angels-coal-processing", "steam-power") -- Gems are needed to make higher tier modules -if data.raw.technology["gem-processing-3"] then +if data.raw.technology["bob-gem-processing-3"] then --Module with 2 dots has the tech name of 3 - bobmods.lib.tech.add_prerequisite("speed-module-3", "gem-processing-3") - bobmods.lib.tech.add_prerequisite("productivity-module-3", "gem-processing-3") - bobmods.lib.tech.add_prerequisite("effectivity-module-3", "gem-processing-3") + bobmods.lib.tech.add_prerequisite("speed-module-3", "bob-gem-processing-3") + bobmods.lib.tech.add_prerequisite("productivity-module-3", "bob-gem-processing-3") + bobmods.lib.tech.add_prerequisite("efficiency-module-3", "bob-gem-processing-3") end + + +bobmods.lib.tech.remove_prerequisite("automation-science-pack", "electronics") +seablock.lib.hide_technology("automation-science-pack") + +seablock.lib.hide_technology("electronics") --new trigger tech in base game, we don't want it in seablock +-- I think i found a bug: trigger techs still research even if hidden and disabled +-- data.raw["technology"]["electronics"] = nil -- multiple different techs and shortcut will complain if we do that +data.raw["technology"]["electronics"].research_trigger = nil +data.raw["technology"]["electronics"].unit = {time = 1, count = 1, ingredients = {}} + +seablock.lib.hide_technology("electric-mining-drill") +seablock.lib.hide_technology("repair-pack") + +bobmods.lib.tech.add_prerequisite("radar", "military") +bobmods.lib.tech.remove_prerequisite("military", "automation-science-pack") +bobmods.lib.tech.remove_prerequisite("gun-turret", "automation-science-pack") +bobmods.lib.tech.remove_prerequisite("stone-wall", "automation-science-pack") +bobmods.lib.tech.remove_prerequisite("radar", "automation-science-pack") +bobmods.lib.tech.remove_prerequisite("automation", "automation-science-pack") + + +-- Change order for esthetics of the tech tree +data.raw["technology"]["military"].order = "z-[military]" + +if data.raw["technology"]["logistics-0"] then + data.raw["technology"]["logistics-0"].research_trigger = nil + data.raw["technology"]["logistics-0"].unit = { + ingredients = {{"automation-science-pack", 1}}, + time = 5, + count = 10 + } +end \ No newline at end of file diff --git a/SeaBlock/info.json b/SeaBlock/info.json index 86926fb..ba68cab 100644 --- a/SeaBlock/info.json +++ b/SeaBlock/info.json @@ -1,7 +1,7 @@ { "name": "SeaBlock", - "version": "0.5.17", - "factorio_version": "1.1", + "version": "0.6.0", + "factorio_version": "2.0", "title": "Sea Block", "author": "Trainwreck", "contact": "", diff --git a/SeaBlock/lib.lua b/SeaBlock/lib.lua index 8342eb6..aba6e3c 100644 --- a/SeaBlock/lib.lua +++ b/SeaBlock/lib.lua @@ -95,12 +95,12 @@ function seablock.lib.add_recipe_unlock(technology, recipe, insertindex) end function seablock.lib.iteraterecipes(recipe, func) - if recipe.normal then - func(recipe.normal) - end - if recipe.expensive then - func(recipe.expensive) - end + -- if recipe.normal then --TODO: remove this + -- func(recipe.normal) + -- end + -- if recipe.expensive then + -- func(recipe.expensive) + -- end if recipe.ingredients then func(recipe) end @@ -154,6 +154,8 @@ function seablock.lib.removeingredient(name, ingredient) end end seablock.lib.iteraterecipes(t, doremove) + else + log("sb - removeingredient - can't find recipe : " .. name) end end @@ -231,6 +233,8 @@ function seablock.lib.hide_technology(technology_name) technology.hidden = true technology.enabled = false end + else + log("Hide non existing tech : " .. technology_name) end end @@ -246,12 +250,13 @@ end function seablock.lib.hide_item(item_name) local item = data.raw.item[item_name] if item then - if not item.flags then - item.flags = {} - end - if not seablock.lib.tablefind(item.flags, "hidden") then - table.insert(item.flags, "hidden") - end + item.hidden = true + -- if not item.flags then + -- item.flags = {} + -- end + -- if not seablock.lib.tablefind(item.flags, "hidden") then + -- table.insert(item.flags, "hidden") + -- end else item = data.raw.fluid[item_name] if item then @@ -262,7 +267,7 @@ end function seablock.lib.hide(type_name, name) if not data.raw[type_name] then - log("Unknown type: " .. type_name) + log("seablock.lib.hide: Unknown type: " .. type_name) else local item = data.raw[type_name][name] if not item then @@ -274,9 +279,10 @@ function seablock.lib.hide(type_name, name) if not item.flags then item.flags = {} end - if not seablock.lib.tablefind(item.flags, "hidden") then - table.insert(item.flags, "hidden") - end + -- if not seablock.lib.tablefind(item.flags, "hidden") then + -- table.insert(item.flags, "hidden") + -- end + item.hidden = true if type_name == "item" then table.insert(item.flags, "hide-from-bonus-gui") diff --git a/SeaBlock/locale/en/SeaBlock.cfg b/SeaBlock/locale/en/SeaBlock.cfg index 9ada526..64f8b56 100644 --- a/SeaBlock/locale/en/SeaBlock.cfg +++ b/SeaBlock/locale/en/SeaBlock.cfg @@ -12,6 +12,8 @@ liquid-raw-vegetable-oil-filtering-2=Raw vegetable oil ceramic filtering liquid-raw-fish-oil-filtering-1=Raw fish oil charcoal filtering liquid-raw-fish-oil-filtering-2=Raw fish oil ceramic filtering coke-purification-2=Charcoal purification +thermal-extractor-water=Produce thermal water +thermal-bore-water=Produce thermal water [item-name] charcoal=Charcoal diff --git a/SeaBlock/migrations/SeaBlock_0.6.0.json b/SeaBlock/migrations/SeaBlock_0.6.0.json new file mode 100644 index 0000000..9f9df57 --- /dev/null +++ b/SeaBlock/migrations/SeaBlock_0.6.0.json @@ -0,0 +1,8 @@ +{ + "entity": [], + "item": + [ + ["stone-crushed", "stone"] + ] + } + \ No newline at end of file diff --git a/SeaBlock/new-mapgen.lua b/SeaBlock/new-mapgen.lua new file mode 100644 index 0000000..3958a9d --- /dev/null +++ b/SeaBlock/new-mapgen.lua @@ -0,0 +1,516 @@ +data.raw.tile["sand-4"] = table.deepcopy(data.raw.tile["sand-1"]) +data.raw.tile["sand-5"] = table.deepcopy(data.raw.tile["sand-2"]) +data.raw.tile["sand-4"].name = "sand-4" +data.raw.tile["sand-5"].name = "sand-5" + +data.raw.tile["dry-dirt"].vehicle_friction_modifier = 1.8 +data.raw.tile["dirt-1"].vehicle_friction_modifier = 1.8 +data.raw.tile["dirt-2"].vehicle_friction_modifier = 1.8 +data.raw.tile["dirt-3"].vehicle_friction_modifier = 1.8 + +data.raw.tile["dirt-4"].vehicle_friction_modifier = 1.8 +data.raw.tile["dirt-5"].vehicle_friction_modifier = 1.8 +data.raw.tile["dirt-6"].vehicle_friction_modifier = 1.8 +data.raw.tile["dirt-7"].vehicle_friction_modifier = 1.8 + +data.raw.tile["grass-1"].vehicle_friction_modifier = 1.8 +data.raw.tile["grass-3"].vehicle_friction_modifier = 1.8 +data.raw.tile["grass-2"].vehicle_friction_modifier = 1.8 +data.raw.tile["grass-4"].vehicle_friction_modifier = 1.8 + +data.raw.tile["red-desert-0"].vehicle_friction_modifier = 1.8 +data.raw.tile["red-desert-1"].vehicle_friction_modifier = 1.8 +data.raw.tile["red-desert-2"].vehicle_friction_modifier = 1.8 +data.raw.tile["red-desert-3"].vehicle_friction_modifier = 1.8 + +data.raw.tile["sand-1"].vehicle_friction_modifier = 1.8 +data.raw.tile["sand-2"].vehicle_friction_modifier = 1.8 +data.raw.tile["sand-3"].vehicle_friction_modifier = 1.8 +data.raw.tile["sand-4"].vehicle_friction_modifier = 1.8 +data.raw.tile["sand-5"].vehicle_friction_modifier = 1.8 + +data.raw.tile["landfill"].vehicle_friction_modifier = 1.8 + +for _, v in pairs(data.raw.tile) do + v.autoplace = nil +end + +-- Want player to collide with cliffs +-- Want player to collide with water +-- Don't want cliffs to collide with water +-- Water tile's default collision mask includes player-layer and item-layer +-- So use train-layer as a substitute player-layer +data.raw.cliff["cliff"].collision_mask = { not_colliding_with_itself = true, layers = { object = true, train = true}} --TODO: check if this works/is the best solution + +local octaves = -3 +local persistence = 0.2 +local waterline = 9.4 +local elevation_scale = 5 +local function scale_elevation(x) + return (x - waterline) * elevation_scale + waterline +end +--[[ +-- low lying sand +data.raw.tile["sand-4"].autoplace = { + peaks = { + { -- Around cliff islands + influence = 5, + elevation_optimal = 0.3 * elevation_scale + waterline, + elevation_range = 0.3 * elevation_scale, + elevation_max_range = 0.3 * elevation_scale, + }, + { + influence = 0.77 * 8, -- Worm islands + min_influence = 0, + noise_layer = "enemy-base", + noise_octaves_difference = octaves, + noise_persistence = persistence, + tier_from_start_optimal = 8, + tier_from_start_max_range = 40, + tier_from_start_top_property_limit = 8, + }, + { -- Not in starting area + influence = -5, + starting_area_weight_optimal = 1, + starting_area_weight_range = 0, + starting_area_weight_max_range = 0, + }, + { + influence = 100, -- ... except for starting tile + min_influence = 0, + distance_optimal = 0, + distance_range = 0.1, + distance_max_range = 0.1, + }, + { + influence = -5, + }, + }, +} + +-- highground sand +data.raw.tile["sand-5"].autoplace = { + peaks = { + { + influence = 5, + min_influence = 0, + elevation_optimal = scale_elevation(15), + elevation_range = 5 * elevation_scale, + elevation_max_range = 5 * elevation_scale, + tier_from_start_optimal = 0.1, + tier_from_start_range = 0, + tier_from_start_max_range = 0, + tier_from_start_top_property_limit = 0.1, + }, + { + influence = 0.65, -- starting area garden islands + min_influence = 0, + max_influence = 1, + noise_layer = "enemy-base", + noise_octaves_difference = octaves, + noise_persistence = persistence, + tier_from_start_optimal = 0, + tier_from_start_range = 0.1, + tier_from_start_max_range = 0.1, + }, + { + influence = 1, + max_influence = 0, + starting_area_weight_optimal = 1, + starting_area_weight_range = 0, + starting_area_weight_max_range = 0, + }, + { + influence = -100, -- not on starting tile + max_influence = 0, + distance_optimal = 0, + distance_range = 3, + distance_max_range = 3, + }, + }, +} + +local plant_elevation_range = 9.9 * elevation_scale +data.raw.tree["desert-garden"].autoplace = { + max_probability = 0.2, + random_probability_penalty = 0.05, + sharpness = 1, + peaks = { + { + influence = 1, + min_influence = 0, + elevation_optimal = scale_elevation(20), + elevation_range = plant_elevation_range, + elevation_max_range = plant_elevation_range, + }, + { + influence = 0.31, -- Trial and error value to generate size that approximately matches starting area islands + min_influence = 0, + max_influence = 1, + noise_layer = "enemy-base", + noise_octaves_difference = octaves, + noise_persistence = persistence, + tier_from_start_optimal = 0, + tier_from_start_range = 0.1, + tier_from_start_max_range = 0.1, + }, + { + influence = 1, + max_influence = 0, + noise_layer = "desert-garden-noise", + noise_persistence = 0.8, + noise_octaves_difference = -0.5, + }, + }, + order = "yc", + tile_restriction = { "sand-5" }, +} + +data.raw.tree["temperate-garden"].autoplace = { + max_probability = 0.2, + random_probability_penalty = 0.05, + peaks = { + { + influence = 1, + min_influence = 0, + elevation_optimal = scale_elevation(20), + elevation_range = plant_elevation_range, + elevation_max_range = plant_elevation_range, + }, + { + influence = 1, + max_influence = 0, + noise_layer = "temperate-garden-noise", + noise_persistence = 0.8, + noise_octaves_difference = -0.5, + }, + }, + order = "ya", + tile_restriction = { "sand-5" }, +} + +data.raw.tree["swamp-garden"].autoplace = { + max_probability = 0.05, + peaks = { + { + influence = 1, + min_influence = 0, + elevation_optimal = scale_elevation(20), + elevation_range = plant_elevation_range, + elevation_max_range = plant_elevation_range, + }, + }, + order = "yb", + tile_restriction = { "sand-5" }, +} + +data.raw.tree["desert-tree"].autoplace = { + max_probability = 0.1, + random_probability_penalty = 0.025, + sharpness = 1, + peaks = { + { + influence = 1, + min_influence = 0, + elevation_optimal = scale_elevation(20), + elevation_range = plant_elevation_range, + elevation_max_range = plant_elevation_range, + }, + { + influence = 0.31, -- Trial and error value to generate size that approximately matches starting area islands + min_influence = 0, + max_influence = 1, + noise_layer = "enemy-base", + noise_octaves_difference = octaves, + noise_persistence = persistence, + tier_from_start_optimal = 0, + tier_from_start_range = 0.1, + tier_from_start_max_range = 0.1, + }, + { + influence = 1, + max_influence = 0, + noise_layer = "desert-tree-noise", + noise_persistence = 0.8, + noise_octaves_difference = -0.5, + }, + }, + order = "za", + tile_restriction = { "sand-5" }, +} +data.raw.tree["temperate-tree"].autoplace = { + max_probability = 0.1, + random_probability_penalty = 0.025, + peaks = { + { + influence = 1, + min_influence = 0, + elevation_optimal = scale_elevation(20), + elevation_range = plant_elevation_range, + elevation_max_range = plant_elevation_range, + }, + { + influence = 1, + max_influence = 0, + noise_layer = "temperate-tree-noise", + noise_persistence = 0.8, + noise_octaves_difference = -0.5, + }, + }, + order = "zc", + tile_restriction = { "sand-5" }, +} + +data.raw.tree["swamp-tree"].autoplace = { + max_probability = 0.05, + peaks = { + { + influence = 1, + min_influence = 0, + elevation_optimal = scale_elevation(20), + elevation_range = plant_elevation_range, + elevation_max_range = plant_elevation_range, + }, + { + influence = 1, + max_influence = 0, + noise_layer = "swamp-tree-noise", + noise_persistence = 0.8, + noise_octaves_difference = -0.5, + }, + }, + order = "zb", + tile_restriction = { "sand-5" }, +} + +data.raw.tile["water"].autoplace = { + peaks = { + { + influence = 0.1, -- shallow water around cliff islands + min_influence = 0, + elevation_optimal = -2 * elevation_scale + waterline, + elevation_range = 2.5 * elevation_scale, + elevation_max_range = 2.5 * elevation_scale, + }, + { + influence = 0.77 * 2, -- around worm islands + min_influence = 0, + max_influence = 1, + noise_layer = "enemy-base", + noise_octaves_difference = octaves, + noise_persistence = persistence, + }, + { + influence = 5, -- around starting tile + min_influence = 0, + distance_optimal = 0, + distance_range = 5, + distance_max_range = 5, + }, + }, +} + +data.raw.tile["deepwater"].autoplace = { + peaks = { + { + influence = 0.01, + }, + }, +} + +data.raw.fish["alien-fish-1"].autoplace = { + peaks = { + { + influence = -0.1, + max_influence = 0, + noise_layer = "enemy-base", + noise_octaves_difference = octaves, + noise_persistence = persistence, + }, + { + influence = 0.01, + }, + }, +} + +data.raw.fish["alien-fish-2"].autoplace = { + peaks = { + { + influence = 0.02, + min_influence = 0, + noise_layer = "enemy-base", + noise_octaves_difference = octaves, + noise_persistence = persistence, + }, + }, +} + +data.raw.fish["alien-fish-3"].autoplace = { + peaks = { + { + influence = 0.015, + min_influence = 0, + elevation_optimal = scale_elevation(10), + elevation_range = 5 * elevation_scale, + elevation_max_range = 5 * elevation_scale, + tier_from_start_optimal = 0.1, + tier_from_start_range = 0, + tier_from_start_max_range = 0, + tier_from_start_top_property_limit = 0.1, + }, + }, +} + + + +data:extend({ + { + type = "noise-layer", + name = "desert-tree-noise", + }, + { + type = "noise-layer", + name = "temperate-tree-noise", + }, + { + type = "noise-layer", + name = "swamp-tree-noise", + }, + { + type = "noise-layer", + name = "desert-garden-noise", + }, + { + type = "noise-layer", + name = "temperate-garden-noise", + }, + { + type = "noise-layer", + name = "swamp-garden-noise", + }, +}) + +data.raw["noise-expression"]["cliffiness"].expression = noise.define_noise_function(function(x, y, tile, map) + local t = noise.clamp((tile.tier - 0.2) * noise.ceil(noise.var("control-setting:cliffs:richness:multiplier")), 0, 1) -- No cliffs in starting area + return 100 * t +end) +]] + +data.extend{ + { + type = "noise-expression", + name = "octaves", + expression = "-3" + }, + + { + type = "noise-expression", + name = "persistence", + expression = "0.2" + }, + { + type = "noise-expression", + name = "waterline", + expression = "9.4" + }, + { + type = "noise-expression", + name = "elevation_scale", + expression = "5" + }, + { + type = "noise-function", + name = "scale_elevation", + parameters = {"x"}, + expression = "(x - waterline) * elevation_scale + waterline" + }, +} + +--[[local enemy_random_seed = 1 +local function new_random_seed() + enemy_random_seed = enemy_random_seed + 1 + return enemy_random_seed +end +local function worm_autoplace(distance, probability, order, falloff, control_name) + data.extend{{ + type = "noise-function", + name = "worm_placer", + parameters = {"distance", "probability", "falloff", "random_seed"}, + expression = "random_penalty{source = p1, amplitude = probability * 0.5, x = x + random_seed, y = 1}", --TODO: replace y with other constant or x or y + local_expressions = { + d = "distance - starting_area_radius", + p0 = "clamp((d - distance * 128) / 128, 0, 1)", + falloffFactor = "if(falloff, clamp(((distance + 2) * 128 - d) / 128, 0, 1), 1)", + p1 = "p0 * falloffFactor * probability * clamp((waterline - elevation), 0, 1)" + } + }} + + return { + control = control_name, + order = order, + force = "enemy", + probability_expression = "worm_placer(" .. distance ..", " .. probability .. ", " .. tostring(falloff) .. ", " .. new_random_seed() .. ")", + richness_expression = 1, + } +end + +data.raw.turret["small-worm-turret"].autoplace = worm_autoplace(0, 1, "z", true, "enemy-base") +data.raw.turret["medium-worm-turret"].autoplace = worm_autoplace(1, 1, "y", true, "enemy-base") +if data.raw.turret["bob-big-explosive-worm-turret"] then + data.raw.turret["bob-big-explosive-worm-turret"].autoplace = worm_autoplace(1.5, 0.5, "v", false, "enemy-base") +end +if data.raw.turret["bob-big-fire-worm-turret"] then + data.raw.turret["bob-big-fire-worm-turret"].autoplace = worm_autoplace(1.5, 0.5, "v", false, "enemy-base") +end +if data.raw.turret["bob-big-poison-worm-turret"] then + data.raw.turret["bob-big-poison-worm-turret"].autoplace = worm_autoplace(1.5, 0.5, "v", false, "enemy-base") +end +if data.raw.turret["bob-big-piercing-worm-turret"] then + data.raw.turret["bob-big-piercing-worm-turret"].autoplace = worm_autoplace(1.5, 0.5, "v", false, "enemy-base") +end +if data.raw.turret["bob-big-electric-worm-turret"] then + data.raw.turret["bob-big-electric-worm-turret"].autoplace = worm_autoplace(1.5, 0.5, "v", false, "enemy-base") +end +if data.raw.turret["bob-giant-worm-turret"] then + data.raw.turret["bob-giant-worm-turret"].autoplace = worm_autoplace(2, 0.6, "u", false, "enemy-base") +end +if data.raw.turret["behemoth-worm-turret"] then + data.raw.turret["big-worm-turret"].autoplace = worm_autoplace(1.5, 0.5, "v", false, "enemy-base") + data.raw.turret["behemoth-worm-turret"].autoplace = worm_autoplace(2, 0.2, "t", false, "enemy-base") +else + data.raw.turret["big-worm-turret"].autoplace = worm_autoplace(2, 1, "v", false, "enemy-base") +end +data.raw.tree["puffer-nest"].autoplace = worm_autoplace(0, 0.01, "s", false) + +for _, v in pairs(data.raw.turret) do + v.map_generator_bounding_box = nil +end]] + +-- old tries - meh/not working +-- data.raw["noise-expression"]["elevation"].local_expressions = {base = "max(basis_noise{x = x + 4000, y = y, seed0 = map_seed, seed1 = 5, input_scale = 1/64, output_scale = 6},0)"} +-- data.raw["noise-expression"]["elevation"].expression = "(base * elevation_scale) - (waterline * (elevation_scale - 1))" -- Increase gradient for cliffs while leaving waterline unchanged + +-- data.raw.tile["deepwater"].autoplace.probability_expression = "if(elevation <= (waterline*elevation_scale/2), 10, 0)" +-- data.raw.tile["sand-4"].autoplace.probability_expression = "if(distance <= 1, 10000, 0)" + +data.raw["noise-expression"]["elevation"].local_expressions = { + base = "basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 5, input_scale = 1/32, output_scale = 6}", + starting_tile = "if(distance <= 1, 100, 0)", + --small_islands = "if(distance >= starting_area_radius/2, basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 3, input_scale = 1/32, output_scale = 10} - waterline, 0)" +} + +data.raw["noise-expression"]["elevation"].expression = "if(distance <= starting_area_radius/2, min(base - waterline, 0), base - waterline) + starting_tile"-- "min((base - waterline - 2) + starting_tile, 10) + small_islands" + +data.raw.tile["deepwater"].autoplace = {probability_expression = "if(-8 >= elevation, 200 * min(-6 - elevation, 1), -inf)"} +data.raw.tile["water"].autoplace = {probability_expression = "if(0 >= elevation, 100 * min(0 - elevation, 1), -inf)"} +data.raw.tile["sand-4"].autoplace = {probability_expression = "if(elevation >= 0, elevation, -inf)"} + +-- data.raw.tile["sand-5"].autoplace = {probability_expression = "if(elevation >= 0, elevation, -inf)"} -- decided against using this + +data.raw.tree["desert-garden"].autoplace = {probability_expression = "if(elevation >= 0, random_penalty{x = x, y = y, seed = 1, source = 0.03, amplitude = 0.01}, -inf)"} --, tile_restriction = {"sand-5"}} +data.raw.tree["temperate-garden"].autoplace = {probability_expression = "if(elevation >= 0, random_penalty{x = x, y = y, seed = 2, source = 0.03, amplitude = 0.01}, -inf)"} +data.raw.tree["swamp-garden"].autoplace = {probability_expression = "if(elevation >= 0, random_penalty{x = x, y = y, seed = 3, source = 0.03, amplitude = 0.015}, -inf)"} + +data.raw.tree["desert-tree"].autoplace = {probability_expression = "if(elevation >= 0, random_penalty{x = x, y = y, seed = 4, source = 0.03, amplitude = 0.01}, -inf)"} --, placement_density = 3} +data.raw.tree["temperate-tree"].autoplace = {probability_expression = "if(elevation >= 0, random_penalty{x = x, y = y, seed = 5, source = 0.03, amplitude = 0.01}, -inf)"} +data.raw.tree["swamp-tree"].autoplace = {probability_expression = "if(elevation >= 0, random_penalty{x = x, y = y, seed = 6, source = 0.03, amplitude = 0.015}, -inf)"} \ No newline at end of file diff --git a/SeaBlock/mapgen.lua b/SeaBlock/old-mapgen.lua similarity index 100% rename from SeaBlock/mapgen.lua rename to SeaBlock/old-mapgen.lua diff --git a/SeaBlock/prototypes/recipe.lua b/SeaBlock/prototypes/recipe.lua index f171cd8..a8a1861 100644 --- a/SeaBlock/prototypes/recipe.lua +++ b/SeaBlock/prototypes/recipe.lua @@ -5,9 +5,8 @@ data:extend({ category = "smelting", enabled = false, energy_required = 3.5, - ingredients = { { "wood-bricks", 1 } }, - result = "wood-charcoal", - result_count = 5, + ingredients = { { type = "item", name = "wood-bricks", amount = 1 } }, + results = { { type = "item", name = "wood-charcoal", amount = 5 } }, subgroup = "bio-processing-wood", }, { @@ -19,7 +18,7 @@ data:extend({ energy_required = 10, enabled = false, ingredients = { - { type = "item", name = "lithium-chloride", amount = 1 }, + { type = "item", name = "bob-lithium-chloride", amount = 1 }, }, results = { { type = "fluid", name = "thermal-water", amount = 20 }, @@ -35,7 +34,7 @@ data:extend({ enabled = false, ingredients = { { type = "fluid", name = "steam", amount = 100 }, - { type = "item", name = "lithium-chloride", amount = 2 }, + { type = "item", name = "bob-lithium-chloride", amount = 2 }, }, results = { { type = "fluid", name = "thermal-water", amount = 100 }, @@ -81,8 +80,8 @@ data:extend({ enabled = false, ingredients = { { type = "item", name = "catalyst-metal-carrier", amount = 10 }, - { type = "item", name = "gold-ore", amount = 1 }, - { type = "item", name = "rutile-ore", amount = 1 }, + { type = "item", name = "bob-gold-ore", amount = 1 }, + { type = "item", name = "bob-rutile-ore", amount = 1 }, }, results = { { type = "item", name = "catalyst-metal-purple", amount = 10 }, @@ -150,6 +149,7 @@ for name, base_icons in pairs(slag_processing_list) do if recipe then local recipe_results if recipe.normal then + log("Warning - Recipe still using 'normal' subsection : " .. name) recipe_results = recipe.normal.results else recipe_results = recipe.results diff --git a/SeaBlock/prototypes/rockchest.lua b/SeaBlock/prototypes/rockchest.lua index 5bffd25..90434db 100644 --- a/SeaBlock/prototypes/rockchest.lua +++ b/SeaBlock/prototypes/rockchest.lua @@ -22,17 +22,14 @@ data:extend({ close_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" }, vehicle_impact_sound = { filename = "__base__/sound/car-stone-impact.ogg", volume = 1.0 }, picture = { - filename = "__base__/graphics/decorative/rock-big/rock-big-18.png", - width = 71, - height = 64, - shift = { 0.3125, 0.046875 }, - hr_version = { - filename = "__base__/graphics/decorative/rock-big/hr-rock-big-18.png", - width = 141, - height = 128, - scale = 0.5, - shift = { 0.304688, 0.0390625 }, - }, + filename = "__base__/graphics/decorative/big-rock/big-rock-18.png", + -- width = 71, --old non hr version + -- height = 64, + -- shift = { 0.3125, 0.046875 }, + width = 141, --taken from the old hr version + height = 128, + scale = 0.5, + shift = { 0.304688, 0.0390625 }, }, circuit_wire_connection_point = circuit_connector_definitions["chest"].points, diff --git a/SeaBlock/prototypes/technology.lua b/SeaBlock/prototypes/technology.lua index a760dcc..becff62 100644 --- a/SeaBlock/prototypes/technology.lua +++ b/SeaBlock/prototypes/technology.lua @@ -1,11 +1,11 @@ data:extend({ - { + --[[{ type = "tool", name = "sb-angelsore3-tool", localised_name = { "item-name.angels-ore3-crushed" }, - icon = "__angelsrefining__/graphics/icons/angels-ore3-crushed.png", + icon = "__angelsrefininggraphics__/graphics/icons/angels-ore3-crushed.png", icon_size = 32, - flags = { "hidden" }, + hidden = true, stack_size = 100, durability = 1, }, @@ -14,8 +14,8 @@ data:extend({ name = "sb-basic-circuit-board-tool", localised_name = { "item-name.basic-circuit-board" }, icon = "__bobelectronics__/graphics/icons/basic-circuit-board.png", - icon_size = 128, - flags = { "hidden" }, + icon_size = 64, + hidden = true, stack_size = 100, durability = 1, }, @@ -26,10 +26,10 @@ data:extend({ icon = "__base__/graphics/icons/lab.png", icon_size = 64, icon_mipmaps = 4, - flags = { "hidden" }, + hidden = true, stack_size = 100, durability = 1, - }, + },]] { type = "technology", name = "sb-startup1", @@ -40,11 +40,7 @@ data:extend({ { type = "unlock-recipe", recipe = "angelsore3-crushed-smelting" }, { type = "unlock-recipe", recipe = "copper-cable" }, }, - unit = { - count = 1, - ingredients = { { "sb-angelsore3-tool", 1 } }, - time = 1, - }, + research_trigger = {type = "craft-item", item = "angels-ore3-crushed"} }, { type = "technology", @@ -55,19 +51,15 @@ data:extend({ { type = "unlock-recipe", recipe = "inserter" }, { type = "unlock-recipe", recipe = "pipe" }, { type = "unlock-recipe", recipe = "pipe-to-ground" }, - { type = "unlock-recipe", recipe = "copper-pipe" }, - { type = "unlock-recipe", recipe = "copper-pipe-to-ground" }, + { type = "unlock-recipe", recipe = "bob-copper-pipe" }, + { type = "unlock-recipe", recipe = "bob-copper-pipe-to-ground" }, { type = "unlock-recipe", recipe = "iron-stick" }, { type = "unlock-recipe", recipe = "iron-gear-wheel" }, { type = "unlock-recipe", recipe = "burner-inserter" }, { type = "unlock-recipe", recipe = "iron-chest" }, }, prerequisites = { "bio-wood-processing" }, - unit = { - count = 1, - ingredients = { { "sb-basic-circuit-board-tool", 1 } }, - time = 1, - }, + research_trigger = {type = "craft-item", item = "bob-basic-circuit-board"}, }, { type = "technology", @@ -78,25 +70,21 @@ data:extend({ { type = "unlock-recipe", recipe = "automation-science-pack" }, }, prerequisites = { "sb-startup3" }, - unit = { - count = 1, - ingredients = { { "sb-lab-tool", 1 } }, - time = 1, - }, + research_trigger = {type = "craft-item", item = "lab"}, }, { type = "technology", name = "sb-bio-processing-advanced", localised_name = { "technology-name.bio-processing-green" }, localised_description = { "technology-description.bio-processing-green" }, - icon = "__angelsbioprocessing__/graphics/technology/algae-farm-tech.png", + icon = "__angelsbioprocessinggraphics__/graphics/technology/algae-farm-tech.png", icon_size = 128, order = "c-a", prerequisites = { "bio-processing-red", - "advanced-electronics", + "advanced-circuit", "angels-stone-smelting-2", - "zinc-processing", + "bob-zinc-processing", "chemical-science-pack", }, effects = { @@ -108,10 +96,10 @@ data:extend({ unit = { count = 50, ingredients = { - { type = "item", name = "automation-science-pack", amount = 1 }, - { type = "item", name = "logistic-science-pack", amount = 1 }, - { type = "item", name = "token-bio", amount = 1 }, - { type = "item", name = "chemical-science-pack", amount = 1 }, + { "automation-science-pack", 1 }, + { "logistic-science-pack", 1 }, + {"token-bio", 1 }, + { "chemical-science-pack", 1 }, }, time = 30, }, @@ -146,11 +134,11 @@ data:extend({ bobmods.lib.recipe.enabled("boiler", false) bobmods.lib.recipe.enabled("steam-engine", false) -bobmods.lib.recipe.enabled("copper-pipe-to-ground", false) -bobmods.lib.recipe.enabled("basic-circuit-board", false) +bobmods.lib.recipe.enabled("bob-copper-pipe-to-ground", false) +bobmods.lib.recipe.enabled("bob-basic-circuit-board", false) bobmods.lib.recipe.enabled("automation-science-pack", false) -if data.raw.recipe["basic-transport-belt"] then - bobmods.lib.tech.add_recipe_unlock("sb-startup3", "basic-transport-belt") +if data.raw.recipe["bob-basic-transport-belt"] then + bobmods.lib.tech.add_recipe_unlock("sb-startup3", "bob-basic-transport-belt") else bobmods.lib.tech.add_recipe_unlock("sb-startup3", "transport-belt") end @@ -160,14 +148,14 @@ if mods["bobwarfare"] then { type = "technology", name = "sb-sniper-rifle", - localised_name = { "item-name.sniper-rifle" }, + localised_name = { "item-name.bob-sniper-rifle" }, icon_size = 256, icon_mipmaps = 4, icon = "__base__/graphics/technology/military.png", effects = { { type = "unlock-recipe", - recipe = "sniper-rifle", + recipe = "bob-sniper-rifle", }, }, prerequisites = { "military-science-pack" }, diff --git a/SeaBlock/remote.lua b/SeaBlock/remote.lua index 8273388..0943720 100644 --- a/SeaBlock/remote.lua +++ b/SeaBlock/remote.lua @@ -1,23 +1,23 @@ require("__core__/lualib/util") local function get_unlocks() - return util.table.deepcopy(global.unlocks) + return util.table.deepcopy(storage.unlocks) end local function set_unlock(item, techs) - global.unlocks[item] = techs + storage.unlocks[item] = techs end local function get_starting_items() - return util.table.deepcopy(global.starting_items) + return util.table.deepcopy(storage.starting_items) end local function set_starting_item(item, quantity) - global.starting_items[item] = quantity + storage.starting_items[item] = quantity end local function set_starting_items(items) - global.starting_items = items + storage.starting_items = items end -- Presets for Milestones mod @@ -33,7 +33,7 @@ local function milestones_presets() { type = "item", name = "logistic-science-pack", quantity = 1 }, { type = "item", name = "military-science-pack", quantity = 1 }, { type = "item", name = "chemical-science-pack", quantity = 1 }, - script.active_mods["bobtech"] and { type = "item", name = "advanced-logistic-science-pack", quantity = 1 } or nil, + script.active_mods["bobtech"] and { type = "item", name = "bob-advanced-logistic-science-pack", quantity = 1 } or nil, { type = "item", name = "production-science-pack", quantity = 1 }, { type = "item", name = "utility-science-pack", quantity = 1 }, { type = "item", name = "space-science-pack", quantity = 1 }, @@ -43,7 +43,7 @@ local function milestones_presets() { type = "item", name = "military-science-pack", quantity = 1000, next = "x10" }, { type = "item", name = "chemical-science-pack", quantity = 1000, next = "x10" }, script.active_mods["bobtech"] - and { type = "item", name = "advanced-logistic-science-pack", quantity = 1000, next = "x10" } + and { type = "item", name = "bob-advanced-logistic-science-pack", quantity = 1000, next = "x10" } or nil, { type = "item", name = "production-science-pack", quantity = 1000, next = "x10" }, { type = "item", name = "utility-science-pack", quantity = 1000, next = "x10" }, @@ -51,39 +51,40 @@ local function milestones_presets() } -- Resources + --TODO: rename bob stuff grouped_milestones["resorces"] = { { type = "group", name = "Resources" }, { type = "item", name = "wood-charcoal", quantity = 1 }, - { type = "item", name = "basic-circuit-board", quantity = 1 }, + { type = "item", name = "bob-basic-circuit-board", quantity = 1 }, { type = "item", name = "electronic-circuit", quantity = 1 }, { type = "item", name = "advanced-circuit", quantity = 1 }, { type = "item", name = "processing-unit", quantity = 1 }, - { type = "item", name = "advanced-processing-unit", quantity = 1 }, + { type = "item", name = "bob-advanced-processing-unit", quantity = 1 }, - { type = "item", name = "basic-circuit-board", quantity = 10000, next = "x10" }, + { type = "item", name = "bob-basic-circuit-board", quantity = 10000, next = "x10" }, { type = "item", name = "electronic-circuit", quantity = 10000, next = "x10" }, { type = "item", name = "advanced-circuit", quantity = 10000, next = "x10" }, { type = "item", name = "processing-unit", quantity = 1000, next = "x10" }, - { type = "item", name = "advanced-processing-unit", quantity = 100, next = "x10" }, + { type = "item", name = "bob-advanced-processing-unit", quantity = 100, next = "x10" }, { type = "item", name = "steel-plate", quantity = 1 }, - { type = "item", name = "bronze-alloy", quantity = 1 }, - { type = "item", name = "invar-alloy", quantity = 1 }, - { type = "item", name = "brass-alloy", quantity = 1 }, - { type = "item", name = "glass", quantity = 1 }, - { type = "item", name = "silver-plate", quantity = 1 }, + { type = "item", name = "bob-bronze-alloy", quantity = 1 }, + { type = "item", name = "bob-invar-alloy", quantity = 1 }, + { type = "item", name = "bob-brass-alloy", quantity = 1 }, + { type = "item", name = "bob-glass", quantity = 1 }, + { type = "item", name = "bob-silver-plate", quantity = 1 }, - { type = "item", name = "aluminium-plate", quantity = 1 }, - { type = "item", name = "titanium-plate", quantity = 1 }, - { type = "item", name = "gold-plate", quantity = 1 }, - { type = "item", name = "cobalt-steel-alloy", quantity = 1 }, + { type = "item", name = "bob-aluminium-plate", quantity = 1 }, + { type = "item", name = "bob-titanium-plate", quantity = 1 }, + { type = "item", name = "bob-gold-plate", quantity = 1 }, + { type = "item", name = "bob-cobalt-steel-alloy", quantity = 1 }, { type = "item", name = "angels-plate-chrome", quantity = 1 }, { type = "item", name = "angels-plate-platinum", quantity = 1 }, - { type = "item", name = "tungsten-plate", quantity = 1 }, - { type = "item", name = "copper-tungsten-alloy", quantity = 1 }, - { type = "item", name = "tungsten-carbide", quantity = 1 }, - { type = "item", name = "nitinol-alloy", quantity = 1 }, + { type = "item", name = "bob-tungsten-plate", quantity = 1 }, + { type = "item", name = "bob-copper-tungsten-alloy", quantity = 1 }, + { type = "item", name = "bob-tungsten-carbide", quantity = 1 }, + { type = "item", name = "bob-nitinol-alloy", quantity = 1 }, { type = "item", name = "plastic-bar", quantity = 1 }, { type = "fluid", name = "liquid-resin", quantity = 100 }, @@ -120,29 +121,28 @@ local function milestones_presets() -- Vanilla modules grouped_milestones["modules"] = { { type = "item", name = "productivity-module", quantity = 1 }, - { type = "item", name = "productivity-module-4", quantity = 1 }, - { type = "item", name = "productivity-module-6", quantity = 1 }, + { type = "item", name = "bob-productivity-module-4", quantity = 1 }, + { type = "item", name = "bob-productivity-module-5", quantity = 1 }, } elseif script.active_mods["CircuitProcessing"] then -- Circuit Processing modules grouped_milestones["modules"] = { { type = "item", name = "productivity-module-2", quantity = 1 }, - { type = "item", name = "productivity-module-4", quantity = 1 }, - { type = "item", name = "productivity-module-6", quantity = 1 }, - { type = "item", name = "productivity-module-8", quantity = 1 }, + { type = "item", name = "bob-productivity-module-4", quantity = 1 }, + { type = "item", name = "bob-productivity-module-5", quantity = 1 }, } else -- Bob's Modules grouped_milestones["modules"] = { { type = "item", name = "productivity-module", quantity = 1 }, - { type = "item", name = "productivity-module-8", quantity = 1 }, + { type = "item", name = "bob-productivity-module-5", quantity = 1 }, } end grouped_milestones["progress2"] = { { type = "item", name = "beacon", quantity = 1 }, - script.active_mods["bobmodules"] and { type = "item", name = "beacon-2", quantity = 1 } or nil, - script.active_mods["bobmodules"] and { type = "item", name = "beacon-3", quantity = 1 } or nil, + script.active_mods["bobmodules"] and { type = "item", name = "bob-beacon-2", quantity = 1 } or nil, + script.active_mods["bobmodules"] and { type = "item", name = "bob-beacon-3", quantity = 1 } or nil, { type = "item", name = "rocket-fuel", quantity = 1 }, { type = "technology", name = "rocket-silo", quantity = 1 }, { type = "item", name = "nuclear-reactor", quantity = 1 }, @@ -218,7 +218,7 @@ local function milestones_presets() end local function get_jetpack_fuels() - return { ["enriched-fuel"] = 0.7 } + return { ["bob-enriched-fuel"] = 0.7 } end ---@param winning_force LuaForce diff --git a/SeaBlock/starting-items.lua b/SeaBlock/starting-items.lua index 9e75c7c..fbb8b0c 100644 --- a/SeaBlock/starting-items.lua +++ b/SeaBlock/starting-items.lua @@ -6,12 +6,12 @@ function seablock.populate_starting_items(items) ["small-electric-pole"] = 50, ["small-lamp"] = 12, ["iron-plate"] = 1200, - ["basic-circuit-board"] = 200, - ["stone-pipe"] = 100, - ["stone-pipe-to-ground"] = 50, + ["bob-basic-circuit-board"] = 200, + ["bob-stone-pipe"] = 100, + ["bob-stone-pipe-to-ground"] = 50, ["stone-brick"] = 500, ["pipe"] = 21, - ["copper-pipe"] = 5, + ["bob-copper-pipe"] = 5, ["iron-gear-wheel"] = 10, ["iron-stick"] = 88, ["pipe-to-ground"] = 2,