From 47453164a4c4955125c96e97fd0cd1a7234db12f Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 28 Feb 2021 20:19:23 -0800 Subject: [PATCH] rich rocks requiem --- changelog.txt | 6 ++++++ data-final-fixes.lua | 1 + info.json | 3 ++- lead-recipe-final-rrr.lua | 16 ++++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lead-recipe-final-rrr.lua diff --git a/changelog.txt b/changelog.txt index 789f350..c8764b3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,7 +1,13 @@ --------------------------------------------------------------------------------------------------- +Version: 0.2.1 +Date: 2021-01-27 + Fixes: + - Rich Rocks Requiem dependency +--------------------------------------------------------------------------------------------------- Version: 0.2.0 Date: 2021-01-25 Features: + - Rich Rocks Requiem for K2 compatibility - 5dims compatibility --------------------------------------------------------------------------------------------------- Version: 0.1.4 diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 0b64b8b..7678122 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -2,6 +2,7 @@ require("lead-recipe-final-stacking") require("lead-recipe-modules") require("lead-recipe-colors") require("lead-recipe-final-5d") +require("lead-recipe-final-rrr") ---- diff --git a/info.json b/info.json index cc49b37..86163af 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "0.2.0", + "version": "0.2.1", "factorio_version": "1.1", "title": "Lead", "author": "Brevven", @@ -10,6 +10,7 @@ "base >= 1.1.0", "? space-exploration", "? Krastorio2", + "? Rich-Rocks-Requiem", "? deadlock-beltboxes-loaders", "? DeadlockCrating" ], diff --git a/lead-recipe-final-rrr.lua b/lead-recipe-final-rrr.lua new file mode 100644 index 0000000..d7d20e5 --- /dev/null +++ b/lead-recipe-final-rrr.lua @@ -0,0 +1,16 @@ +local util = require("__bzlead__.util"); + +if mods["Rich-Rocks-Requiem"] then + if data.raw.recipe["rrr-stone-processing"] then + table.insert(data.raw.recipe["rrr-stone-processing"].results, + {name = "lead-ore", probability = 0.25, amount = 1} + ) + end + + if data.raw.recipe["rrr-raw-ores-processing"] then + table.insert(data.raw.recipe["rrr-raw-ores-processing"].results, + {name = "lead-ore", probability = 0.75, amount = 10} + ) + end + +end