diff --git a/changelog.txt b/changelog.txt index eee5c99..285f8a3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.3.7 +Date: 2021-03-18 + Features: + - Omnimatter initial compatibility +--------------------------------------------------------------------------------------------------- Version: 0.3.6 Date: 2021-03-15 Fixes: diff --git a/data-updates.lua b/data-updates.lua index 91ec489..7288c0a 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -1,3 +1,4 @@ require("lead-recipe-updates") require("lead-matter") +require("omni") require("map-gen-preset-updates") diff --git a/info.json b/info.json index 0c6dfb4..e24a88a 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "0.3.6", + "version": "0.3.7", "factorio_version": "1.1", "title": "Lead", "author": "Brevven", diff --git a/omni.lua b/omni.lua new file mode 100644 index 0000000..f047704 --- /dev/null +++ b/omni.lua @@ -0,0 +1,18 @@ +local util = require("__bzlead__.util"); + +if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then +if omni and omni.matter then + omni.matter.add_resource("lead-ore", omni.matter.get_ore_tier("iron-ore")) + omni.matter.add_initial("lead-ore", 1, 5) + util.replace_ingredient("omnicium-plate-mix", "copper-ore", "lead-ore") + if data.raw.recipe["omnicium-plate-mix"] then + data.raw.recipe["omnicium-plate-mix"].icon = nil + data.raw.recipe["omnicium-plate-mix"].icons = + { + {icon = data.raw.item["omnicium-plate"].icons[1].icon}, + {icon = "__bzlead__/graphics/icons/lead-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {8, -8}}, + {icon = "__base__/graphics/icons/iron-ore.png", scale =0.25, icon_size=64, shift={-6, 6}}, + } + end +end +end