From 2189f2440b77028dc93b3b7199592de60ac0b637 Mon Sep 17 00:00:00 2001 From: Brevven Date: Wed, 31 Jul 2019 01:13:47 -0700 Subject: [PATCH] Add minor compatibility change with Pre 0.17.60 Oil mod --- info.json | 5 +++-- titanium-recipe.lua | 16 ++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/info.json b/info.json index e56ddf1..c729abd 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "0.1.1", + "version": "0.1.2", "factorio_version": "0.17", "title": "Titanium", "author": "Brevven", @@ -9,7 +9,8 @@ "dependencies": [ "base >= 0.17", "? aai-industry", - "? space-exploration" + "? space-exploration", + "? Pre0-17-60Oil" ], "description": "Adds titanium to the base game" } diff --git a/titanium-recipe.lua b/titanium-recipe.lua index e0cdd41..fd06713 100644 --- a/titanium-recipe.lua +++ b/titanium-recipe.lua @@ -44,12 +44,16 @@ data:extend( unit = { count = 75, - ingredients = - { - {"automation-science-pack", 1}, - {"logistic-science-pack", 1}, - {"chemical-science-pack", 1} - }, + ingredients = (mods["Pre0-17-60Oil"] and + { + {"automation-science-pack", 1}, + {"logistic-science-pack", 1} + } or + { + {"automation-science-pack", 1}, + {"logistic-science-pack", 1}, + {"chemical-science-pack", 1} + }), time = 30 }, prerequisites = {"lubricant"},