update
This commit is contained in:
parent
7f61825b87
commit
740ba5a5ae
2 changed files with 5 additions and 12 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.11.8
|
Version: 0.11.8
|
||||||
Date: 2023-01-15
|
Date: 2023-01-17
|
||||||
Fixes:
|
Fixes:
|
||||||
- Add optional depenency on aai-industry to fix some mod load order discrepancies
|
- Add optional depenency on aai-industry to fix some mod load order discrepancies
|
||||||
Features:
|
Features:
|
||||||
- Support for Crafting Efficieny mod
|
- (Beta) Support for Crafting Efficieny mod
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.11.7
|
Version: 0.11.7
|
||||||
Date: 2023-01-01
|
Date: 2023-01-01
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,14 @@ local util = require("data-util");
|
||||||
|
|
||||||
if mods["crafting-efficiency-2"] then
|
if mods["crafting-efficiency-2"] then
|
||||||
|
|
||||||
local recipes = util.me.recipes
|
|
||||||
local eff_data = {
|
local eff_data = {
|
||||||
-- ["synthetic-diamond"] = {
|
|
||||||
-- max = 15,
|
|
||||||
-- icon = data.raw.item["diamond"].icon,
|
|
||||||
-- crafting = { efficiency = 10 },
|
|
||||||
-- research = { level = 6 },
|
|
||||||
-- },
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, recipe in pairs(recipes) do
|
for i, recipe in pairs(util.me.recipes) do
|
||||||
-- add remaining recipes with direct items to find the icons
|
-- add remaining recipes with direct items to find the icons
|
||||||
if data.raw.recipe[recipe] and data.raw.item[recipe] and not eff_data[recipe] then
|
if data.raw.recipe[recipe] and data.raw.item[recipe] and not eff_data[recipe] and
|
||||||
|
(data.raw.recipe[recipe].main_product or util.get_result_count(recipe) == 1) then
|
||||||
eff_data[recipe] = {
|
eff_data[recipe] = {
|
||||||
name = recipe.." efficiency",
|
|
||||||
max = 15,
|
max = 15,
|
||||||
icon = data.raw.item[recipe].icon,
|
icon = data.raw.item[recipe].icon,
|
||||||
crafting = { efficiency = 10 },
|
crafting = { efficiency = 10 },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue