bobs+se compat

This commit is contained in:
Brevven 2021-06-14 23:49:02 -07:00
parent 34111f846b
commit 67c568c4a1
10 changed files with 28 additions and 11 deletions

View file

@ -1,4 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 0.1.3
Date: 2021-06-15
Fixes:
- Fix load cycle error with SE+K2+Bobs Lib+Tungsten
- Try to prevent another potential issue with possible duplicate ingredients.
---------------------------------------------------------------------------------------------------
Version: 0.1.2
Date: 2021-06-14
Features:

View file

@ -25,3 +25,6 @@ end
util.remove_prerequisite("kr-radar", "optics")
util.add_prerequisite("kr-radar", "electricity")
-- SE don't gate tungsten
util.remove_prerequisite("tungsten-processing", "se-material-science-pack-1")

View file

@ -1,6 +1,6 @@
{
"name": "bztungsten",
"version": "0.1.2",
"version": "0.1.3",
"factorio_version": "1.1",
"title": "Tungsten",
"author": "Brevven",

View file

@ -28,6 +28,7 @@ advanced-carbon-furnace=For making tungsten carbide quickly and efficiently. Bur
[technology-name]
tungsten-processing=Tungsten processing
bz-tungsten-processing=Tungsten processing
enriched-tungsten=Enriched tungsten
tungsten-matter-processing=Tungsten conversion
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__

View file

@ -28,6 +28,7 @@ advanced-carbon-furnace=高速かつ効率的に炭化タングステンを生
[technology-name]
tungsten-processing=タングステン処理
bz-tungsten-processing=タングステン処理
enriched-tungsten=タングステン純化
tungsten-matter-processing=タングステン変換
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__

View file

@ -21,6 +21,7 @@ enriched-tungsten=Может быть эффективно переплавле
[technology-name]
tungsten-processing=Обработка вольфрама
bz-tungsten-processing=Обработка вольфрама
enriched-tungsten=Обогащенный вольфрам
tungsten-matter-processing=Преобразование вольфрама

View file

@ -89,5 +89,5 @@ if mods["aai-industry"] and not mods["Krastorio2"] then
},
}
})
util.add_effect("tungsten-processing", {type = "unlock-recipe", recipe= "tungsten-carbide-coal"})
util.add_effect(util.tungsten_processing, {type = "unlock-recipe", recipe= "tungsten-carbide-coal"})
end

View file

@ -1,7 +1,7 @@
local util = require("__bztungsten__.tungsten-util");
-- Lamps
util.add_prerequisite("optics", "tungsten-processing")
util.add_prerequisite("optics", util.tungsten_processing)
util.set_tech_recipe("optics", {{"automation-science-pack", 1}, {"logistic-science-pack", 1}})
util.add_ingredient("small-lamp", "tungsten-plate", 1)
@ -11,14 +11,14 @@ util.add_ingredient("rail-signal", "small-lamp", 1)
util.add_ingredient("rail-chain-signal", "small-lamp", 1)
-- Ammunition
util.add_prerequisite("military-2", "tungsten-processing")
util.add_prerequisite("military-2", util.tungsten_processing)
util.replace_ingredient("piercing-rounds-magazine", "copper-plate", "tungsten-plate")
util.replace_ingredient("piercing-shotgun-shell", "copper-plate", "tungsten-plate")
util.replace_ingredient("cannon-shell", "copper-plate", "tungsten-plate")
-- Tooling
util.add_prerequisite("automation-2", "tungsten-processing")
util.add_prerequisite("automation-2", util.tungsten_processing)
util.replace_some_ingredient("assembling-machine-2", "steel-plate", 1, "tungsten-carbide", 1)
util.add_ingredient("assembling-machine-3", "tungsten-carbide", 4)
util.add_ingredient("chemical-plant", "tungsten-carbide", 2)
@ -28,12 +28,12 @@ util.add_ingredient("electric-furnace", "tungsten-carbide", 1)
util.replace_ingredient("accumulator", "iron-plate", "tungsten-plate")
util.add_ingredient("oil-refinery", "tungsten-plate", 1)
util.add_ingredient("chemical-plant", "tungsten-plate", 1)
util.add_prerequisite("engine", "tungsten-processing")
util.add_prerequisite("engine", util.tungsten_processing)
util.add_ingredient("engine-unit", "tungsten-plate", 1)
-- Hot stuff
util.add_prerequisite("advanced-materials-processing-2", "tungsten-processing")
util.add_prerequisite("advanced-materials-processing-2", util.tungsten_processing)
util.replace_some_ingredient("electric-furnace", "stone-brick", 5, "tungsten-plate", 10)
util.replace_some_ingredient("heat-exchanger", "copper-plate", 50, "tungsten-plate", 50)
util.replace_some_ingredient("heat-pipe", "copper-plate", 10, "tungsten-plate", 10)
@ -94,7 +94,7 @@ if mods["Krastorio2"] then
util.remove_prerequisite("kr-sentinel", "optics")
util.add_prerequisite("tungsten-processing", "kr-mineral-water-gathering")
util.add_prerequisite(util.tungsten_processing, "kr-mineral-water-gathering")
util.remove_prerequisite("kr-mineral-water-gathering", "fluid-handling")
-- engines come later with Tungsten.
@ -232,7 +232,7 @@ util.add_ingredient("vtk-deepcore-mining-drill-advanced", "tungsten-carbide", 50
-- Advanced Mining Drills
util.add_ingredient("advanced-mining-drill", "tungsten-carbide", 1)
util.add_prerequisite("advanced-mining-drill", "tungsten-processing")
util.add_prerequisite("advanced-mining-drill",util.tungsten_processing)
util.add_ingredient("elite-mining-drill", "tungsten-carbide", 5)
util.add_ingredient("ultimate-mining-drill", "tungsten-carbide", 10)
@ -298,7 +298,7 @@ util.add_ingredient("mega-furnace", "tungsten-plate", 5)
-- Mundas
util.add_ingredient("munda_big_machine", "tungsten-carbide", 32)
util.add_prerequisite("munda_big_machine", "tungsten-processing")
util.add_prerequisite("munda_big_machine", util.tungsten_processing)
-- Realistic reactors

View file

@ -54,7 +54,7 @@ data:extend(
},
{
type = "technology",
name = "tungsten-processing",
name = util.tungsten_processing,
icon_size = 256, icon_mipmaps = 4,
icon = "__bztungsten__/graphics/technology/tungsten-processing.png",
effects =

View file

@ -3,6 +3,11 @@ local util = {}
util.tungsten_ore = "tungsten-ore"
util.tungsten_plate = "tungsten-plate"
util.tungsten_processing = "tungsten-processing"
if bobmods and bobmods.lib and bobmods.lib.recipe and bobmods.lib.tech then
util.tungsten_processing = "bz-tungsten-processing"
end
function util.get_setting(name)
if settings.startup[name] == nil then
return nil