diff --git a/changelog.txt b/changelog.txt index 3c5f402..648cbfe 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.5.8 +Date: 2021-08-05 + Changes: + - SE Vulcanite lead recipe balanced + - SE meteor defense recipes updated +--------------------------------------------------------------------------------------------------- Version: 0.5.7 Date: 2021-07-26 Changes: diff --git a/data-util.lua b/data-util.lua index 60edbfb..e6e7451 100644 --- a/data-util.lua +++ b/data-util.lua @@ -34,7 +34,7 @@ end -- Add a prerequisite to a given technology function util.add_prerequisite(technology_name, prerequisite) - technology = data.raw.technology[technology_name] + local technology = data.raw.technology[technology_name] if technology and data.raw.technology[prerequisite] then if technology.prerequisites then table.insert(technology.prerequisites, prerequisite) @@ -46,7 +46,7 @@ end -- Remove a prerequisite from a given technology function util.remove_prerequisite(technology_name, prerequisite) - technology = data.raw.technology[technology_name] + local technology = data.raw.technology[technology_name] local index = -1 if technology and data.raw.technology[prerequisite] then for i, prereq in pairs(technology.prerequisites) do @@ -63,7 +63,7 @@ end -- Add an effect to a given technology function util.add_effect(technology_name, effect) - technology = data.raw.technology[technology_name] + local technology = data.raw.technology[technology_name] if technology then table.insert(technology.effects, effect) end @@ -71,7 +71,7 @@ end -- Set technology ingredients function util.set_tech_recipe(technology_name, ingredients) - technology = data.raw.technology[technology_name] + local technology = data.raw.technology[technology_name] if technology then technology.unit.ingredients = ingredients end @@ -363,7 +363,7 @@ end function add_to_ingredient(recipe, it, amount) if recipe ~= nil and recipe.ingredients ~= nil then - for i, ingredient in pairs(recipe.ingredients) do + for i, ingredient in pairs(recipe.ingredients) do if ingredient.name == it then ingredient.amount = ingredient.amount + amount return diff --git a/info.json b/info.json index 07c96b5..0bc7adb 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "0.5.7", + "version": "0.5.8", "factorio_version": "1.1", "title": "Lead", "author": "Brevven", diff --git a/lead-recipe-se.lua b/lead-recipe-se.lua index e01768d..e5c6ffa 100644 --- a/lead-recipe-se.lua +++ b/lead-recipe-se.lua @@ -40,17 +40,19 @@ if mods["space-exploration"] then type = "recipe", name = "lead-smelting-vulcanite", category = "smelting", + subgroup = "plates", order = "d[lead-plate]", - energy_required = 48, + energy_required = 24, enabled = false, always_show_made_in = true, allow_as_intermediate = false, ingredients = { - {name = "lead-ore", amount = 20}, + {name = "lead-ore", amount = 8}, {name = "se-vulcanite-block", amount = 1}, }, results = { - {name = util.me.lead_plate, amount = 6}, + {name = util.me.lead_plate, amount = 10}, + {name = "copper-ore", amount=2}, }, icons = { diff --git a/lead-recipe-updates.lua b/lead-recipe-updates.lua index 0b1f1a6..4901973 100644 --- a/lead-recipe-updates.lua +++ b/lead-recipe-updates.lua @@ -44,7 +44,9 @@ util.add_ingredient("industrial-furnace", "lead-plate", 16) -- AAII util.add_ingredient("se-material-testing-pack", "lead-plate", 1) util.add_ingredient("se-space-radiation-laboratory", "lead-plate", 100) -util.add_ingredient("se-delivery-cannon", "lead-plate", 20) +util.add_ingredient("se-delivery-cannon", "lead-plate", 16) +util.add_ingredient("se-meteor-point-defence", "lead-plate", 16) +util.add_ingredient("se-meteor-defence", "lead-plate", 64) util.add_ingredient("se-experimental-alloys-data", "lead-plate", 1) util.add_to_product("se-experimental-alloys-data", "se-experimental-alloys-data", 1)