248k fixes
This commit is contained in:
parent
c4a67a38ca
commit
546d193253
3 changed files with 21 additions and 13 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.2.13
|
||||||
|
Date: 2023-12-22
|
||||||
|
Fixes:
|
||||||
|
- Minor mod compatibility fixes.
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 1.2.12
|
Version: 1.2.12
|
||||||
Date: 2023-02-12
|
Date: 2023-02-12
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,18 @@
|
||||||
local util = require("data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
local ti2 = "fi_materials_titan"
|
if mods["248k"] then
|
||||||
|
local ti2 = "fi_materials_titan"
|
||||||
|
|
||||||
-- Swap out all 248k titanium for BZ titanium_plate
|
-- Swap out all 248k titanium for BZ titanium_plate
|
||||||
for i, recipe in pairs(data.raw.recipe) do
|
for i, recipe in pairs(data.raw.recipe) do
|
||||||
util.replace_ingredient(recipe.name, ti2, util.titanium_plate)
|
util.replace_ingredient(recipe.name, ti2, util.titanium_plate)
|
||||||
util.replace_product(recipe.name, ti2, util.titanium_plate)
|
util.replace_product(recipe.name, ti2, util.titanium_plate)
|
||||||
|
end
|
||||||
|
|
||||||
|
if mods.LootingRemnants and data.raw.recipe.gr_white_hole_cycle_fi_materials_titan_recipe~=nil then
|
||||||
|
data.raw.recipe.gr_white_hole_cycle_fi_materials_titan_recipe.exception_mods = {"Deconstruction", "LootingRemnants"}
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Remove 248k titanium plate
|
||||||
|
util.remove_raw("item", ti2)
|
||||||
end
|
end
|
||||||
|
|
||||||
if mods.LootingRemnants and data.raw.recipe.gr_white_hole_cycle_fi_materials_titan_recipe~=nil then
|
|
||||||
data.raw.recipe.gr_white_hole_cycle_fi_materials_titan_recipe.exception_mods = {"Deconstruction", "LootingRemnants"}
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Remove 248k titanium plate
|
|
||||||
util.remove_raw("item", ti2)
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bztitanium",
|
"name": "bztitanium",
|
||||||
"version": "1.2.12",
|
"version": "1.2.13",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Titanium",
|
"title": "Titanium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue