k2 matter price

This commit is contained in:
Brevven 2021-01-09 23:12:16 -08:00
parent aabe7bd3d2
commit ade23d7b2a
4 changed files with 20 additions and 2 deletions

View file

@ -1,4 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 0.9.9
Date: 2021-01-09
Changes:
- Matter to titanium ore recipe cost
- Very minor compatibility tweaks for py
---------------------------------------------------------------------------------------------------
Version: 0.9.8
Date: 2021-01-07
Fixes:

View file

@ -56,6 +56,18 @@ function data_util.add_titanium_prerequisite(technology)
table.insert(technology.prerequisites, data_util.titanium_processing)
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
if data.raw.technology[tech].prerequisites[i] == prereq then
table.remove(data.raw.technology[tech].prerequisites, i)
break
end
end
end
end
--- Change all occurances of steel plates to titanium plates in a given recipe
function data_util.steel_to_titanium(recipe)
data_util.replace_ingredient(recipe, "steel-plate", data_util.titanium_plate)

View file

@ -1,6 +1,6 @@
{
"name": "bztitanium",
"version": "0.9.8",
"version": "0.9.9",
"factorio_version": "1.1",
"title": "Titanium",
"author": "Brevven",

View file

@ -40,7 +40,7 @@ local titanium_ore_matter =
minimum_conversion_quantity = 10,
matter_value = 8,
energy_required = 1,
need_stabilizer = true,
need_stabilizer = false,
unlocked_by_technology = "titanium-matter-processing"
}
matter.createMatterRecipe(titanium_ore_matter)