SimpleCompress support
This commit is contained in:
parent
f20b7f8848
commit
998221eef2
5 changed files with 37 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.10.1
|
||||
Date: 2021-03-09
|
||||
Features:
|
||||
- SimpleCompress support
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.10.0
|
||||
Date: 2021-03-08
|
||||
Changes:
|
||||
|
|
|
|||
1
data.lua
1
data.lua
|
|
@ -3,4 +3,5 @@ require("titanium-ore-particle")
|
|||
require("titanium-recipe")
|
||||
require("titanium-enriched") -- Enriched Ti for Krastorio 2
|
||||
require("titanium-recipe-se") -- Space Exploration special recipes (depends on K2 if present)
|
||||
require("titanium-compressed")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bztitanium",
|
||||
"version": "0.10.0",
|
||||
"version": "0.10.1",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Titanium",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ titanium-dust=Titanium dust
|
|||
titanium-plate=Titanium plate
|
||||
titanium-alloy=__ITEM__titanium-plate__
|
||||
enriched-titanium=Enriched titanium
|
||||
compressed-titanium-ore=Compressed titanium ore
|
||||
|
||||
[item-description]
|
||||
titanium-ore=Can be smelted into titanium plates
|
||||
|
|
|
|||
29
titanium-compressed.lua
Normal file
29
titanium-compressed.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
if simpleCompress then
|
||||
if simpleCompress.ores then
|
||||
simpleCompress.currentSubgroup = "intermediate-product"
|
||||
if data.raw.item["titanium-ore"] then
|
||||
SimpleCompress_AddTintedItem("titanium-ore", "ore4-titanium", "ore", {r=0.85, g=0.85, b=0.75})
|
||||
SimpleCompress_UnlockOreTechAndRecipe("titanium-ore")
|
||||
end
|
||||
end
|
||||
if simpleCompress.plates then
|
||||
simpleCompress.currentSubgroup = "intermediate-product"
|
||||
if data.raw.item["titanium-plate"] then
|
||||
SimpleCompress_AddTintedItem("titanium-plate", "plates4-titanium", "plate3", {r=0.85, g=0.85, b=0.75})
|
||||
SimpleCompress_UnlockPlateTechAndRecipe("titanium-plate")
|
||||
end
|
||||
local titaniumRecipe = data.raw.recipe["decompress-titanium-plate"]
|
||||
titaniumRecipe.order = "d[titanium-plate]"
|
||||
end
|
||||
if simpleCompress.smelting then
|
||||
if data.raw.item["titanium-plate"] and data.raw.item["titanium-plate"] then
|
||||
SimpleCompress_AddSmeltingRecipe("titanium-ore", "titanium-plate")
|
||||
SimpleCompress_UnlockOreSmeltingTech("titanium-ore")
|
||||
local titaniumRecipe = data.raw.recipe["smelt-compressed-titanium-ore"]
|
||||
titaniumRecipe.ingredients = {{"compressed-titanium-ore", 5}}
|
||||
titaniumRecipe.order = "d[titanium-plate]"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue