allow productivity modules
This commit is contained in:
parent
3f1c0ada8a
commit
76a64c22db
4 changed files with 27 additions and 3 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.6.8
|
||||||
|
Date: 2020-11-16
|
||||||
|
Changes:
|
||||||
|
- K2: Enriched titanium smelting now allows prod modules.
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.6.7
|
Version: 0.6.7
|
||||||
Date: 2020-11-14
|
Date: 2020-11-14
|
||||||
Changes:
|
Changes:
|
||||||
|
|
@ -11,12 +16,12 @@ Date: 2020-11-09
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.6.5
|
Version: 0.6.5
|
||||||
Date: 2020-11-08
|
Date: 2020-11-08
|
||||||
Changes:
|
Features:
|
||||||
- Deadlock stacking & crating recipes
|
- Deadlock stacking & crating recipes
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.6.4
|
Version: 0.6.4
|
||||||
Date: 2020-11-08
|
Date: 2020-11-08
|
||||||
Changes:
|
Features:
|
||||||
- Recipe for space loader/beltbox from Deadlock beltbox crate-Space Exploration bridge
|
- Recipe for space loader/beltbox from Deadlock beltbox crate-Space Exploration bridge
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.6.3
|
Version: 0.6.3
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
require("titanium-recipe-final")
|
require("titanium-recipe-final")
|
||||||
|
require("titanium-recipe-modules")
|
||||||
require("titanium-recipe-final-stacking")
|
require("titanium-recipe-final-stacking")
|
||||||
require("titanium-recipe-final-transport")
|
require("titanium-recipe-final-transport")
|
||||||
require("titanium-data-final-settings")
|
require("titanium-data-final-settings")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bztitanium",
|
"name": "bztitanium",
|
||||||
"version": "0.6.7",
|
"version": "0.6.8",
|
||||||
"factorio_version": "1.0",
|
"factorio_version": "1.0",
|
||||||
"title": "Titanium",
|
"title": "Titanium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
18
titanium-recipe-modules.lua
Normal file
18
titanium-recipe-modules.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
|
||||||
|
recipes = {"titanium-plate"}
|
||||||
|
if mods["Krastorio2"] then
|
||||||
|
recipes = {"titanium-plate", "enriched-titanium-plate", "enriched-titanium"}
|
||||||
|
end
|
||||||
|
|
||||||
|
for i, recipe in pairs(recipes) do
|
||||||
|
for j, module in pairs(data.raw.module) do
|
||||||
|
if module.effect then
|
||||||
|
for effect_name, effect in pairs(module.effect) do
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue