From 13b901511d1b0be17773010505a4229ebe55b17d Mon Sep 17 00:00:00 2001 From: Brevven Date: Thu, 9 Jan 2025 01:34:19 -0800 Subject: [PATCH] aai unlock crusher --- changelog.txt | 5 +++++ info.json | 2 +- prototypes/basic-crusher.lua | 7 ++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index a1c2733..f9261a2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.2 +Date: 2025-01-09 + Changes: + - With AAI Industry, unlock crusher with sand, slight change to tech tree +--------------------------------------------------------------------------------------------------- Version: 2.0.1 Date: 2025-01-07 Changes: diff --git a/info.json b/info.json index 90fd966..fc82e9e 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzsilicon", - "version": "2.0.1", + "version": "2.0.2", "factorio_version": "2.0", "title": "Silica & Silicon", "author": "Brevven", diff --git a/prototypes/basic-crusher.lua b/prototypes/basic-crusher.lua index 0d14261..81874a4 100644 --- a/prototypes/basic-crusher.lua +++ b/prototypes/basic-crusher.lua @@ -171,6 +171,11 @@ data:extend({ results = {{type="item", name="basic-crusher", amount=1}} }, }) -util.add_unlock("automation-2", "basic-crusher") +if mods["aai-industry"] then + util.add_unlock("sand-processing", "basic-crusher") + util.add_prerequisite("sand-processing", "steel-processing") +else + util.add_unlock("automation-2", "basic-crusher") +end util.add_prerequisite("silica-processing", "automation-2") end