From 01ac485a0d6ee6269912ae042a499d838397d91d Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 20 Sep 2020 19:10:18 -0700 Subject: [PATCH] support memory units --- changelog.txt | 4 ++-- info.json | 2 +- titanium-recipe-final.lua | 11 ++++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index af2c8bd..9514901 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,8 +1,8 @@ --------------------------------------------------------------------------------------------------- Version: 0.5.2 Date: 2020-09-20 - Changes: - - Krastorio 2 compatibility: dirty water filtration for titanium. + Features: + - Use in memory storage units, because why not. --------------------------------------------------------------------------------------------------- Version: 0.5.1 Date: 2020-09-19 diff --git a/info.json b/info.json index 948b8ca..18ee348 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "0.5.1", + "version": "0.5.2", "factorio_version": "1.0", "title": "Titanium", "author": "Brevven", diff --git a/titanium-recipe-final.lua b/titanium-recipe-final.lua index 27bf740..86057ba 100644 --- a/titanium-recipe-final.lua +++ b/titanium-recipe-final.lua @@ -50,7 +50,6 @@ if mods["Krastorio2"] then end -- Aircraft changes - if mods["Aircraft"] then util.steel_to_titanium(data.raw.recipe["gunship"]) util.steel_to_titanium(data.raw.recipe["gunship"].normal) @@ -70,3 +69,13 @@ if mods["Aircraft"] then util.steel_to_titanium(data.raw.recipe["jet"].normal) util.steel_to_titanium(data.raw.recipe["jet"].expensive) end + +-- Memory storage changes +if data.raw.item["memory-unit"] then + util.steel_to_titanium(data.raw.recipe["memory-unit"]) + util.steel_to_titanium(data.raw.recipe["memory-unit"].normal) + util.steel_to_titanium(data.raw.recipe["memory-unit"].expensive) +end + + +