diff --git a/changelog.txt b/changelog.txt index d4e9e3b..9f59aff 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 1.0.5 +Date: 2022-02-11 + Fixes: + - Fix for Endgame Combat + Power Armor Mk3 +--------------------------------------------------------------------------------------------------- Version: 1.0.4 Date: 2022-02-04 Fixes: diff --git a/compatibility/titanium-endgame-combat-final.lua b/compatibility/titanium-endgame-combat-final.lua index 9f2d8b9..d03c28a 100644 --- a/compatibility/titanium-endgame-combat-final.lua +++ b/compatibility/titanium-endgame-combat-final.lua @@ -30,6 +30,7 @@ util.remove_prerequisite("acid-turrets", "aluminium-processing") util.remove_ingredient("power-armor-mk3", "copper-tungsten-alloy") util.remove_prerequisite("power-armor-mk3", "nitinol-processing") + if not mods.bztungsten then util.remove_prerequisite("power-armor-mk3", "tungsten-processing") diff --git a/data-util.lua b/data-util.lua index 38e91d0..b1ecbfc 100644 --- a/data-util.lua +++ b/data-util.lua @@ -70,7 +70,7 @@ end function util.remove_prerequisite(technology_name, prerequisite) local technology = data.raw.technology[technology_name] local index = -1 - if technology and data.raw.technology[prerequisite] then + if technology then for i, prereq in pairs(technology.prerequisites) do if prereq == prerequisite then index = i diff --git a/info.json b/info.json index 743c725..315efeb 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "1.0.4", + "version": "1.0.5", "factorio_version": "1.1", "title": "Titanium", "author": "Brevven", @@ -19,6 +19,7 @@ "? DeadlockCrating", "? modmashsplinterresources", "? EndgameCombat", + "(?) Power Armor MK3", "! nullius" ], "description": "Adds titanium to the base game.\n\nTitanium is used in Low Density Structures, Flying Robot Frames and a few other places.\n\nCompatible with Krastorio 2, Space Exploration, Aircraft, 5Dim's, FE+ and other mods. A standalone piece of BZ Mods.\n\nWith graphics by snouz."