diff --git a/README.md b/README.md index 4f46a3f..509c2bc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Adds titanium ore and plates to the base game. It requires lubricant to mine. Most recipes that should be lightweight that use steel now use titanium. Other minor recipe tweaks as well. ## Version History +- 0.4.1 Some more flavorful recipe changes for Krastorio2. + - 0.4.0 Support Krastorio2 including enriched titanium - 0.3.0 Update to support alternate lds in space exploration diff --git a/info.json b/info.json index 433930f..592cdbb 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "0.4.0", + "version": "0.4.1", "factorio_version": "1.0", "title": "Titanium", "author": "Brevven", diff --git a/titanium-recipe-final.lua b/titanium-recipe-final.lua index ff13eec..4cd8285 100644 --- a/titanium-recipe-final.lua +++ b/titanium-recipe-final.lua @@ -1,5 +1,5 @@ -- Titanium recipe & tech changes --- These are in "final" for compatibility with other mods such as Space Exploration and AAI +-- These are in "final" for compatibility with other mods such as Space Exploration, AAI and Krastorio 2 local util = require("__bztitanium__.data-util"); @@ -34,3 +34,17 @@ if data.raw.recipe["se-space-pipe"] then util.add_titanium_prerequisite(data.raw.technology["se-space-platform-scaffold"]) end + +-- Krastorio 2 changes +if mods["Krastorio2"] then + -- Titanium modifies flying robot frames, so use them in a reasonable tech card in Krastorio 2 + util.replace_ingredient(data.raw.recipe["advanced-tech-card"], "electric-engine-unit", "flying-robot-frame") + + -- Flavor changes + util.rare_to_titanium(data.raw.recipe["kr-electric-mining-drill-mk2"]) + util.rare_to_titanium(data.raw.recipe["kr-advanced-transport-belt"]) + util.rare_to_titanium(data.raw.recipe["kr-advanced-loader"]) + + util.steel_to_titanium(data.raw.recipe["kr-quarry-drill"]) + util.steel_to_titanium(data.raw.recipe["kr-singularity-lab"]) +end diff --git a/titanium-recipe-updates.lua b/titanium-recipe-updates.lua index ec9bb55..6d93de0 100644 --- a/titanium-recipe-updates.lua +++ b/titanium-recipe-updates.lua @@ -19,3 +19,9 @@ util.add_titanium_prerequisite(data.raw.technology["solar-panel-equipment"]) -- Also add titanium to steam turbines util.add_titanium_ingredient(20, data.raw.recipe["steam-turbine"]) util.add_titanium_prerequisite(data.raw.technology["nuclear-power"]) + +-- Krastorio 2 changes +if mods["Krastorio2"] then + util.add_titanium_prerequisite(data.raw.technology["kr-electric-mining-drill-mk2"]) + util.add_titanium_prerequisite(data.raw.technology["kr-quarry-minerals-extraction"]) +end