fix lds recipe, add nanotube casting recipe

This commit is contained in:
Brevven 2025-02-12 18:18:06 -08:00
parent a76120675d
commit 21e4017b1e
4 changed files with 22 additions and 8 deletions

View file

@ -11,11 +11,19 @@ function cutil.nanotube_recipe(recipe_name, item_name, tech)
local new_recipe = futil.table.deepcopy(data.raw.recipe[recipe_name])
new_recipe.name = recipe_name.."-nanotubes"
new_recipe.localised_name = {"item-name."..item_name}
new_recipe.icons = {
{ icon = data.raw.item[item_name].icon, icon_size = data.raw.item[item_name].icon_size},
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
}
if new_recipe.subgroup == "vulcanus-processes" then
new_recipe.localised_name = {"recipe-name."..recipe_name}
new_recipe.icons = {
{ icon = data.raw.recipe[recipe_name].icon, icon_size = data.raw.recipe[recipe_name].icon_size},
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
}
else
new_recipe.localised_name = {"item-name."..item_name}
new_recipe.icons = {
{ icon = data.raw.item[item_name].icon, icon_size = data.raw.item[item_name].icon_size},
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
}
end
new_recipe.icon = nil
new_recipe.icon_size = nil
new_recipe.icon_mipmaps = nil

View file

@ -1,7 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.7
Date: 2025-02-13
Fixes:
- Space Age: Fix LDS recipes, plastic was not supposed to be removed.
Changes:
- Space Age: Add nanotubes recipe for casting LDS.
- Space Age: Show asteroid crushing recipe in signal GUI
- Space Age: Show alternative nanotube recipes in signal GUI
---------------------------------------------------------------------------------------------------

View file

@ -71,9 +71,11 @@ if data.raw.recipe["low-density-structure"] and
end
if util.me.use_fiber() then
util.remove_ingredient("low-density-structure", "plastic-bar")
util.remove_ingredient("low-density-structure-nanotubes", "plastic-bar")
util.remove_ingredient("se-low-density-structure-beryllium", "plastic-bar")
if not mods["space-age"] then
util.remove_ingredient("low-density-structure", "plastic-bar")
util.remove_ingredient("low-density-structure-nanotubes", "plastic-bar")
util.remove_ingredient("se-low-density-structure-beryllium", "plastic-bar")
end
end

View file

@ -3,5 +3,6 @@ local cutil = require("carbon-util")
if util.me.use_fullerenes() then
cutil.nanotube_recipe("low-density-structure")
cutil.nanotube_recipe("casting-low-density-structure", "low-density-structure")
cutil.nanotube_recipe("space-platform-foundation")
end