angels basic compat
This commit is contained in:
parent
1b9fcf7642
commit
4d9b02be22
7 changed files with 29 additions and 16 deletions
|
|
@ -1,4 +1,12 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.10.10
|
||||||
|
Date: 2021-05-01
|
||||||
|
Fixes:
|
||||||
|
- Fixed startup error with angels smelting.
|
||||||
|
- Fixed equipment not using titanium
|
||||||
|
Features:
|
||||||
|
- Some basic compatibility with angels smelting (without bobs)
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.10.9
|
Version: 0.10.9
|
||||||
Date: 2021-04-30
|
Date: 2021-04-30
|
||||||
Features:
|
Features:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bztitanium",
|
"name": "bztitanium",
|
||||||
"version": "0.10.9",
|
"version": "0.10.10",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Titanium",
|
"title": "Titanium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then
|
local base_ore = "iron-ore"
|
||||||
|
if mods["angelssmelting"] then
|
||||||
|
base_ore = "angels-ore1"
|
||||||
|
end
|
||||||
|
if (not mods["pyrawores"] and not mods["bobplates"]) then
|
||||||
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
|
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
|
||||||
for name, preset in pairs(data.raw["map-gen-presets"].default) do
|
for name, preset in pairs(data.raw["map-gen-presets"].default) do
|
||||||
if type(preset) == "table" and
|
if type(preset) == "table" and
|
||||||
preset.basic_settings and
|
preset.basic_settings and
|
||||||
preset.basic_settings.autoplace_controls and
|
preset.basic_settings.autoplace_controls and
|
||||||
preset.basic_settings.autoplace_controls["iron-ore"] then
|
preset.basic_settings.autoplace_controls[base_ore] then
|
||||||
preset.basic_settings.autoplace_controls["titanium-ore"] = preset.basic_settings.autoplace_controls["iron-ore"]
|
preset.basic_settings.autoplace_controls["titanium-ore"] = preset.basic_settings.autoplace_controls[base_ore]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,9 @@ elseif mining_fluid == "sulfuric-acid" then
|
||||||
data.raw.technology[util.titanium_processing].unit.ingredients = {
|
data.raw.technology[util.titanium_processing].unit.ingredients = {
|
||||||
{"automation-science-pack", 1}, {"logistic-science-pack", 1}}
|
{"automation-science-pack", 1}, {"logistic-science-pack", 1}}
|
||||||
else
|
else
|
||||||
data.raw.technology[util.titanium_processing].prerequisites = {"lubricant"}
|
if data.raw.technology["titanium-processing"] then
|
||||||
|
data.raw.technology["titanium-processing"].prerequisites = {"lubricant"}
|
||||||
|
end
|
||||||
if not mods["Pre0-17-60Oil"] then
|
if not mods["Pre0-17-60Oil"] then
|
||||||
data.raw.technology["solar-panel-equipment"].unit.ingredients = {
|
data.raw.technology["solar-panel-equipment"].unit.ingredients = {
|
||||||
{"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}}
|
{"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ if not mods["bobrevamp"] then
|
||||||
util.add_titanium_prerequisite("low-density-structure")
|
util.add_titanium_prerequisite("low-density-structure")
|
||||||
end
|
end
|
||||||
|
|
||||||
if (not mods["bobplates"] and not mods["angelssmelting"]) then
|
if (not mods["bobplates"]) then
|
||||||
util.steel_to_titanium("flying-robot-frame")
|
util.steel_to_titanium("flying-robot-frame")
|
||||||
util.add_titanium_prerequisite("robotics")
|
util.add_titanium_prerequisite("robotics")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,15 @@
|
||||||
--
|
--
|
||||||
local util = require("__bztitanium__.data-util");
|
local util = require("__bztitanium__.data-util");
|
||||||
|
|
||||||
if (not mods["bobplates"] and not mods["angelssmelting"]) then
|
if (not mods["bobplates"]) then
|
||||||
util.replace_ingredient("power-armor", "steel", "titanium")
|
util.replace_ingredient("power-armor", "steel", "titanium")
|
||||||
util.add_prerequisite("power-armor", util.titanium_processing)
|
util.add_prerequisite("power-armor", util.titanium_processing)
|
||||||
|
|
||||||
|
-- Generally, steel-based equipment techs require solar panel tech, so only require
|
||||||
|
-- titanium processing for that.
|
||||||
|
util.add_prerequisite("solar-panel-equipment", util.titanium_processing)
|
||||||
|
|
||||||
|
|
||||||
-- 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
|
||||||
|
|
@ -14,10 +19,6 @@ if (not mods["bobplates"] and not mods["angelssmelting"]) then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Generally, steel-based equipment techs require solar panel tech, so only require
|
|
||||||
-- titanium processing for that.
|
|
||||||
util.add_prerequisite("solar-panel-equipment", util.titanium_processing)
|
|
||||||
|
|
||||||
|
|
||||||
-- Also add titanium to some nuclear steam-handling stuff
|
-- Also add titanium to some nuclear steam-handling stuff
|
||||||
util.add_titanium_ingredient(20, "steam-turbine")
|
util.add_titanium_ingredient(20, "steam-turbine")
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,8 @@ if (mods["bobrevamp"] and not mods["bobores"]) then
|
||||||
util.remove_raw("technology", "titanium-processing")
|
util.remove_raw("technology", "titanium-processing")
|
||||||
end
|
end
|
||||||
|
|
||||||
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then
|
if (not mods["pyrawores"] and not mods["bobplates"]) then
|
||||||
data:extend(
|
data:extend({
|
||||||
{
|
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = util.titanium_plate,
|
name = util.titanium_plate,
|
||||||
|
|
@ -117,7 +116,6 @@ data:extend(
|
||||||
result_count = 10,
|
result_count = 10,
|
||||||
}
|
}
|
||||||
} or nil,
|
} or nil,
|
||||||
}
|
})
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue