prod modules for vulcanite smelting
This commit is contained in:
parent
864034d3d7
commit
56b9231b3e
3 changed files with 21 additions and 7 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,24 @@
|
||||||
|
|
||||||
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
|
||||||
for j, module in pairs(data.raw.module) do
|
if data.raw.recipe[recipe] then
|
||||||
if module.effect then
|
for j, module in pairs(data.raw.module) do
|
||||||
for effect_name, effect in pairs(module.effect) do
|
if module.effect then
|
||||||
if effect_name == "productivity" and effect.bonus > 0 and module.limitation and #module.limitation > 0 then
|
for effect_name, effect in pairs(module.effect) do
|
||||||
table.insert(module.limitation, recipe)
|
if effect_name == "productivity" and effect.bonus > 0 and module.limitation and #module.limitation > 0 then
|
||||||
|
table.insert(module.limitation, recipe)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue