naive angelbob compatibility

This commit is contained in:
Brevven 2020-12-29 16:16:21 -08:00
parent ffb93b47e5
commit bfb9b1a0bd
6 changed files with 24 additions and 15 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.9.5
Date: 2020-12-29
Changes:
- Base "naive" compatibility with AngelBob
---------------------------------------------------------------------------------------------------
Version: 0.9.4
Date: 2020-12-29
Changes:

View file

@ -50,7 +50,7 @@ end
--- Add titanium processing as a prerequisite to a given technology
function data_util.add_titanium_prerequisite(technology)
if mods["pyrawores"] then
if (mods["pyrawores"] or mods["bobplates"] or mods["angelssmelting"]) then
return
end
table.insert(technology.prerequisites, data_util.titanium_processing)

View file

@ -1,6 +1,6 @@
{
"name": "bztitanium",
"version": "0.9.4",
"version": "0.9.5",
"factorio_version": "1.1",
"title": "Titanium",
"author": "Brevven",

View file

@ -8,11 +8,12 @@ util.steel_to_titanium(data.raw.recipe["low-density-structure"].normal)
util.steel_to_titanium(data.raw.recipe["low-density-structure"].expensive)
util.add_titanium_prerequisite(data.raw.technology["low-density-structure"])
if (not mods["bobplates"] and not mods["angelssmelting"]) then
util.steel_to_titanium(data.raw.recipe["flying-robot-frame"])
util.steel_to_titanium(data.raw.recipe["flying-robot-frame"].normal)
util.steel_to_titanium(data.raw.recipe["flying-robot-frame"].expensive)
util.add_titanium_prerequisite(data.raw.technology["robotics"])
end
-- Memory storage changes

View file

@ -2,6 +2,7 @@
--
local util = require("__bztitanium__.data-util");
if (not mods["bobplates"] and not mods["angelssmelting"]) then
util.steel_to_titanium(data.raw.recipe["power-armor"])
util.add_titanium_prerequisite(data.raw.technology["power-armor"])
@ -11,6 +12,8 @@ for name, recipe in pairs(data.raw.recipe) do
util.steel_to_titanium(recipe)
end
end
end
-- Generally, steel-based equipment techs require solar panel tech, so only require
-- titanium processing for that.
util.add_titanium_prerequisite(data.raw.technology["solar-panel-equipment"])

View file

@ -14,7 +14,7 @@ if mods["modmashsplinterresources"] then
util.remove_raw("recipe", "titanium-extraction-process")
end
if not mods["pyrawores"] then
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then
data:extend(
{
{