omni compat
This commit is contained in:
parent
f5c89ced19
commit
cd0ec1cbd6
4 changed files with 25 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.3.7
|
||||||
|
Date: 2021-03-18
|
||||||
|
Features:
|
||||||
|
- Omnimatter initial compatibility
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.3.6
|
Version: 0.3.6
|
||||||
Date: 2021-03-15
|
Date: 2021-03-15
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
require("lead-recipe-updates")
|
require("lead-recipe-updates")
|
||||||
require("lead-matter")
|
require("lead-matter")
|
||||||
|
require("omni")
|
||||||
require("map-gen-preset-updates")
|
require("map-gen-preset-updates")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzlead",
|
"name": "bzlead",
|
||||||
"version": "0.3.6",
|
"version": "0.3.7",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Lead",
|
"title": "Lead",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
18
omni.lua
Normal file
18
omni.lua
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue