refactor, move to updates
This commit is contained in:
parent
b21b54e319
commit
30de78fd3e
6 changed files with 130 additions and 68 deletions
|
|
@ -1,50 +1,2 @@
|
|||
-- Titanium recipe & tech changes
|
||||
-- These are in "final" for compatibility with other mods such as Space Exploration, AAI and Krastorio 2
|
||||
|
||||
local util = require("__bztitanium__.data-util");
|
||||
|
||||
util.me.steel_to_titanium("low-density-structure")
|
||||
if mods["modmashsplintergold"] then
|
||||
util.me.steel_to_titanium("low-density-structure-with-gold")
|
||||
end
|
||||
|
||||
if not mods["bobrevamp"] then
|
||||
util.me.add_titanium_prerequisite("low-density-structure")
|
||||
end
|
||||
|
||||
if (not mods["bobplates"]) then
|
||||
util.me.steel_to_titanium("flying-robot-frame")
|
||||
util.me.add_titanium_prerequisite("robotics")
|
||||
end
|
||||
|
||||
if (mods["bobrevamp"] and not mods["bobplates"] and not mods["angelssmelting"]) then
|
||||
util.me.steel_to_titanium("flying-robot-frame-2")
|
||||
util.me.steel_to_titanium("flying-robot-frame-3")
|
||||
util.me.steel_to_titanium("flying-robot-frame-4")
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- Memory storage changes
|
||||
if data.raw.item["memory-unit"] then
|
||||
util.me.steel_to_titanium("memory-unit")
|
||||
end
|
||||
|
||||
-- Underwater pipes changes
|
||||
if data.raw.item["underwater-pipe"] then
|
||||
if data.raw.technology["underwater-pipes"] then
|
||||
local index = -1
|
||||
for i, elem in pairs(data.raw.technology["underwater-pipes"].prerequisites) do
|
||||
if elem == "steel-processing" then
|
||||
index = i
|
||||
end
|
||||
end
|
||||
if index > -1 then
|
||||
table.remove(data.raw.technology["underwater-pipes"].prerequisites, index)
|
||||
end
|
||||
end
|
||||
util.me.add_titanium_prerequisite("underwater-pipes")
|
||||
|
||||
util.me.steel_to_titanium("underwater-pipe")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue