prod modules for vulcanite smelting

This commit is contained in:
Brevven 2020-12-03 12:51:06 -08:00
parent 864034d3d7
commit 56b9231b3e
3 changed files with 21 additions and 7 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.8.2
Date: 2020-12-03
Fixes:
- Allow prod modules in vulcanite block smelting
---------------------------------------------------------------------------------------------------
Version: 0.8.1 Version: 0.8.1
Date: 2020-12-03 Date: 2020-12-03
Features: Features:

View file

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

View file

@ -2,10 +2,18 @@
recipes = {"titanium-plate"} recipes = {"titanium-plate"}
if mods["Krastorio2"] then if mods["Krastorio2"] then
recipes = {"titanium-plate", "enriched-titanium-plate", "enriched-titanium"} table.insert(recipes, "enriched-titanium-plate")
table.insert(recipes, "enriched-titanium")
end
if mods["space-exploration"] then
table.insert(recipes, "titanium-smelting-vulcanite")
if mods["Krastorio2"] then
table.insert(recipes, "enriched-titanium-smelting-vulcanite")
end
end end
for i, recipe in pairs(recipes) do for i, recipe in pairs(recipes) do
if data.raw.recipe[recipe] then
for j, module in pairs(data.raw.module) do for j, module in pairs(data.raw.module) do
if module.effect then if module.effect then
for effect_name, effect in pairs(module.effect) do for effect_name, effect in pairs(module.effect) do
@ -16,3 +24,4 @@ for i, recipe in pairs(recipes) do
end end
end end
end end
end