naive angelbob compatibility
This commit is contained in:
parent
ffb93b47e5
commit
bfb9b1a0bd
6 changed files with 24 additions and 15 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.9.5
|
||||||
|
Date: 2020-12-29
|
||||||
|
Changes:
|
||||||
|
- Base "naive" compatibility with AngelBob
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.9.4
|
Version: 0.9.4
|
||||||
Date: 2020-12-29
|
Date: 2020-12-29
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ end
|
||||||
|
|
||||||
--- Add titanium processing as a prerequisite to a given technology
|
--- Add titanium processing as a prerequisite to a given technology
|
||||||
function data_util.add_titanium_prerequisite(technology)
|
function data_util.add_titanium_prerequisite(technology)
|
||||||
if mods["pyrawores"] then
|
if (mods["pyrawores"] or mods["bobplates"] or mods["angelssmelting"]) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
table.insert(technology.prerequisites, data_util.titanium_processing)
|
table.insert(technology.prerequisites, data_util.titanium_processing)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bztitanium",
|
"name": "bztitanium",
|
||||||
"version": "0.9.4",
|
"version": "0.9.5",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Titanium",
|
"title": "Titanium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -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.steel_to_titanium(data.raw.recipe["low-density-structure"].expensive)
|
||||||
util.add_titanium_prerequisite(data.raw.technology["low-density-structure"])
|
util.add_titanium_prerequisite(data.raw.technology["low-density-structure"])
|
||||||
|
|
||||||
util.steel_to_titanium(data.raw.recipe["flying-robot-frame"])
|
if (not mods["bobplates"] and not mods["angelssmelting"]) then
|
||||||
util.steel_to_titanium(data.raw.recipe["flying-robot-frame"].normal)
|
util.steel_to_titanium(data.raw.recipe["flying-robot-frame"])
|
||||||
util.steel_to_titanium(data.raw.recipe["flying-robot-frame"].expensive)
|
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"])
|
util.add_titanium_prerequisite(data.raw.technology["robotics"])
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Memory storage changes
|
-- Memory storage changes
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,18 @@
|
||||||
--
|
--
|
||||||
local util = require("__bztitanium__.data-util");
|
local util = require("__bztitanium__.data-util");
|
||||||
|
|
||||||
util.steel_to_titanium(data.raw.recipe["power-armor"])
|
if (not mods["bobplates"] and not mods["angelssmelting"]) then
|
||||||
util.add_titanium_prerequisite(data.raw.technology["power-armor"])
|
util.steel_to_titanium(data.raw.recipe["power-armor"])
|
||||||
|
util.add_titanium_prerequisite(data.raw.technology["power-armor"])
|
||||||
|
|
||||||
-- All equipment that uses steel now uses titanium. Who wants to carry around steel!
|
-- All equipment that uses steel now uses titanium. Who wants to carry around steel!
|
||||||
for name, recipe in pairs(data.raw.recipe) do
|
for name, recipe in pairs(data.raw.recipe) do
|
||||||
if recipe.result ~= nil and recipe.result:find("equipment") then
|
if recipe.result ~= nil and recipe.result:find("equipment") then
|
||||||
util.steel_to_titanium(recipe)
|
util.steel_to_titanium(recipe)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Generally, steel-based equipment techs require solar panel tech, so only require
|
-- Generally, steel-based equipment techs require solar panel tech, so only require
|
||||||
-- titanium processing for that.
|
-- titanium processing for that.
|
||||||
util.add_titanium_prerequisite(data.raw.technology["solar-panel-equipment"])
|
util.add_titanium_prerequisite(data.raw.technology["solar-panel-equipment"])
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ if mods["modmashsplinterresources"] then
|
||||||
util.remove_raw("recipe", "titanium-extraction-process")
|
util.remove_raw("recipe", "titanium-extraction-process")
|
||||||
end
|
end
|
||||||
|
|
||||||
if not mods["pyrawores"] then
|
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then
|
||||||
data:extend(
|
data:extend(
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue