diff --git a/changelog.txt b/changelog.txt index 2b1854f..8499237 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.9.10 +Date: 2021-01-09 + Changes: + - More very minor compatibility tweaks for py + - Remove some logspam +--------------------------------------------------------------------------------------------------- Version: 0.9.9 Date: 2021-01-09 Changes: diff --git a/data-util.lua b/data-util.lua index 8f5fa24..b02f051 100644 --- a/data-util.lua +++ b/data-util.lua @@ -28,7 +28,6 @@ end function data_util.check_for_ingredient(recipe, name) if recipe ~= nil and recipe.ingredients ~= nil then - log(serpent.dump(recipe)) for i, ingredient in pairs(recipe.ingredients) do if ingredient.name == name then return true @@ -59,7 +58,7 @@ end --- removes a prerequisite tech function data_util.remove_prerequisite(tech, prereq) if data.raw.technology[tech] then - for i=1, #data.raw.technology[tech].prerequisites, 1 do + for i, prerequisite in pairs(data.raw.technology[tech].prerequisites) do if data.raw.technology[tech].prerequisites[i] == prereq then table.remove(data.raw.technology[tech].prerequisites, i) break diff --git a/info.json b/info.json index 581dc6e..c2dbfc9 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "0.9.9", + "version": "0.9.10", "factorio_version": "1.1", "title": "Titanium", "author": "Brevven", diff --git a/titanium-recipe-final-transport.lua b/titanium-recipe-final-transport.lua index 25ed893..e994868 100644 --- a/titanium-recipe-final-transport.lua +++ b/titanium-recipe-final-transport.lua @@ -67,3 +67,7 @@ if mods["Hover-Car"] then util.steel_to_titanium(data.raw.recipe["hover-car-mk2-recipe"].expensive) end +-- Just a general compatiblity improvement with py alien life enabled alongside jetpack or other equipment mods +if mods["pyalienlife"] then + util.remove_prerequisite("modular-armor", "advanced-electronics") +end