From 4d263122157d96553af716471bd7b7460432a59d Mon Sep 17 00:00:00 2001 From: Brevven Date: Wed, 30 Jun 2021 22:54:45 -0700 Subject: [PATCH] strange matter --- changelog.txt | 5 +++++ data-updates.lua | 4 ++-- info.json | 2 +- strange-matter.lua | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 strange-matter.lua diff --git a/changelog.txt b/changelog.txt index f88979e..2b42bd6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.12 +Date: 2021-07-01 + Features: + - Strange Matter compatibility +--------------------------------------------------------------------------------------------------- Version: 0.0.11 Date: 2021-06-29 Features: diff --git a/data-updates.lua b/data-updates.lua index 84d44d8..157581b 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -1,6 +1,6 @@ require("tech-updates") require("zirconium-recipe-updates") require("zircon-matter") -require("omni") require("map-gen-preset-updates") --- require("tungsten-recipe-5d") +require("omni") +require("strange-matter") diff --git a/info.json b/info.json index 8be30b7..4090d00 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzzirconium", - "version": "0.0.11", + "version": "0.0.12", "factorio_version": "1.1", "title": "Zirconium", "author": "Brevven", diff --git a/strange-matter.lua b/strange-matter.lua new file mode 100644 index 0000000..5599e56 --- /dev/null +++ b/strange-matter.lua @@ -0,0 +1,48 @@ +local util = require("__bzzirconium__.data-util"); + + +local ore = "zircon" +local ore_icon = "__bzzirconium__/graphics/icons/zircon.png" + +if mods["StrangeMatter"] then +data:extend({ + { + type = "recipe", + name = ore.."-synthesis", + icons = { + { icon = ore_icon, icon_size = 64 }, + { icon = "__StrangeMatter__/graphics/icons/fluid/matter.png", icon_size = 32, scale=0.5, shift= {-8, -8}}, + }, + enabled = false, + energy_required = 1, + ingredients = {{type="fluid", name="strange-matter", amount = 2}}, + result = ore, + category = "crafting-with-fluid", + }, + { + type = "technology", + name = ore.."-synthesis", + icons = { + { icon = "__StrangeMatter__/graphics/icons/fluid/matter.png", icon_size = 32, shift= {-6, 0}}, + { icon = ore_icon, icon_size = 64, scale=0.25, shift={8, 8}}, + }, + prerequisites = {"stone-synthesis"}, + effects = { + { + type = "unlock-recipe", + recipe = ore.."-synthesis", + }, + }, + unit = { + count = 800, + time = 30, + ingredients = { + {"automation-science-pack", 1}, + {"logistic-science-pack", 1}, + {"chemical-science-pack", 1}, + {"production-science-pack", 1}, + } + } + } +}) +end