diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 723ef36..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.idea \ No newline at end of file diff --git a/Chromium2/.editorconfig b/Chromium2/.editorconfig deleted file mode 100644 index bbf3e21..0000000 --- a/Chromium2/.editorconfig +++ /dev/null @@ -1,3 +0,0 @@ -[*] -indent_style = space -indent_size = 2 \ No newline at end of file diff --git a/Chromium2/LICENSE.md b/Chromium2/LICENSE.md deleted file mode 100644 index ee22ee9..0000000 --- a/Chromium2/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2023 Timeken - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Chromium2/README.md b/Chromium2/README.md deleted file mode 100644 index 7db4260..0000000 --- a/Chromium2/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# MetalsForYou - -## Version History -See changelog.txt - -## Created by - - -## Thanks to - -### Compatibility - - -### Localization - - diff --git a/Chromium2/changelog.txt b/Chromium2/changelog.txt deleted file mode 100644 index dea249b..0000000 --- a/Chromium2/changelog.txt +++ /dev/null @@ -1,63 +0,0 @@ ---------------------------------------------------------------------------------------------------- -Version: 0.3.2 -Date: 2024-07-30 - Features: - - Added inconel-718 to SE heavy composite. ---------------------------------------------------------------------------------------------------- -Version: 0.3.1 -Date: 2024-07-16 - Features: - - Added stainless steel plate to SE corrosion resistance data. - - Added air bearing to SE friction data. - - Added chromel-r fabric to SE thermodynamics data. - - Increased heat resistant low density structure SE space recipe 2 -> 4 ---------------------------------------------------------------------------------------------------- -Version: 0.3.0 -Date: 2024-07-05 - Features: - - Added heat resistant low density structure SE space recipe. - - Added heat resistant low density structure SE delivery cannon. - - Fixed air bearing not having an unlock. ---------------------------------------------------------------------------------------------------- -Version: 0.2.6 -Date: 2024-01-21 - Features: - - Removed old unused files. ---------------------------------------------------------------------------------------------------- -Version: 0.2.5 -Date: 2023-01-13 - Features: - - Added heat resistant low density structure to SE space radiator. ---------------------------------------------------------------------------------------------------- -Version: 0.2.4 -Date: 2023-01-06 - Features: - - Fixed advanced electric motor unlock when not playing SE. ---------------------------------------------------------------------------------------------------- -Version: 0.2.3 -Date: 2023-01-01 - Features: - - Fixed inconel-718 not using niobium plate. ---------------------------------------------------------------------------------------------------- -Version: 0.2.2 -Date: 2023-12-27 - Features: - - Fixed turbine blade and automation core 3 unlock when not using SE. ---------------------------------------------------------------------------------------------------- -Version: 0.2.1 -Date: 2023-12-24 - Features: - - Changed advanced electric motors subgroup to engine components if If I Had A Nickel is installed. ---------------------------------------------------------------------------------------------------- -Version: 0.2.0 -Date: 2023-12-19 - Features: - - Added 248k support (molten, pure and cast chromium) - - Added an earlier chromium plate recipe. - - Moved stainless steel plate to unlock earlier. - - Fixed Indium cryogenic seal not using stainless steel plate. ---------------------------------------------------------------------------------------------------- -Version: 0.1.0 -Date: 2023-11-23 - Features: - - Alpha release. \ No newline at end of file diff --git a/Chromium2/data-final-fixes.lua b/Chromium2/data-final-fixes.lua deleted file mode 100644 index b95c07f..0000000 --- a/Chromium2/data-final-fixes.lua +++ /dev/null @@ -1 +0,0 @@ -local util = require("recipe-final-fix") \ No newline at end of file diff --git a/Chromium2/data-updates.lua b/Chromium2/data-updates.lua deleted file mode 100644 index 9c197d4..0000000 --- a/Chromium2/data-updates.lua +++ /dev/null @@ -1,2 +0,0 @@ -require("recipe-modify") -require("prototypes.chromium-matter") \ No newline at end of file diff --git a/Chromium2/data-util.lua b/Chromium2/data-util.lua deleted file mode 100644 index b9b8228..0000000 --- a/Chromium2/data-util.lua +++ /dev/null @@ -1,1047 +0,0 @@ -local util = {} - -function util.get_stack_size(default) - if mods["Krastorio2"] then - size = tonumber(settings.startup["kr-stack-size"].value) - return size or default - end - return default -end - --- se landfill --- params: ore, icon_size -function util.se_landfill(params) - if mods["space-exploration"] then - if not params.icon_size then params.icon_size = 64 end - local lname="landfill-"..params.ore - data:extend({ - { - type = "recipe", - icons = { - { icon = "__base__/graphics/icons/landfill.png", icon_size = 64, icon_mipmaps = 3 }, - { icon = "__Chromium__/graphics/icons/"..params.ore..".png", icon_size = params.icon_size, scale = 0.33*64/params.icon_size}, - }, - energy_required = 1, - enabled=false, - name = lname, - category = "hard-recycling", - order = "z-b-"..params.ore, - subgroup = "terrain", - results = {{type="item", name="landfill", amount=1}}, - ingredients = {{type="item", name=params.ore, amount=50}}, - } - }) - util.add_unlock("se-recycling-facility", lname) - end -end - --- se matter --- params: ore, energy_required, quant_out, quant_in, icon_size, stream_out -function util.se_matter(params) - if not params.quant_in then params.quant_in = params.quant_out end - if not params.icon_size then params.icon_size = 64 end - local fname = "matter-fusion-"..params.ore - local sedata = mods["Krastorio2"] and "se-kr-matter-synthesis-data" or "se-fusion-test-data" - local sejunk = mods["Krastorio2"] and "se-broken-data" or "se-junk-data" - data:extend({ - { - type = "recipe", - name = fname, - localised_name = {"recipe-name.se-matter-fusion-to", {"item-name."..params.ore}}, - category = "space-materialisation", - subgroup = "materialisation", - order = "a-b-z", - icons = { - {icon = "__space-exploration-graphics__/graphics/blank.png", - icon_size = 64, scale = 0.5}, - {icon = "__space-exploration-graphics__/graphics/icons/fluid/particle-stream.png", - icon_size = 64, scale = 0.33, shift = {8,-8}}, - {icon = "__Chromium__/graphics/icons/"..params.ore..".png", - icon_size = params.icon_size, scale = 0.33 * 64/params.icon_size, shift={-8, 8}}, - {icon = "__space-exploration-graphics__/graphics/icons/transition-arrow.png", - icon_size = 64, scale = 0.5}, - }, - energy_required = params.energy_required, - enabled = false, - ingredients = { - {sedata, 1}, - {type="fluid", name="se-particle-stream", amount=50}, - {type="fluid", name="se-space-coolant-supercooled", amount=25}, - }, - results = { - {type = "item", name = params.ore, amount = params.quant_out}, - {type="item", name="se-contaminated-scrap", amount=1}, - {type=item, name=sedata, amount=1, probability=.99}, - {type=item, name=sejunk, amount=1, probability=.01}, - {type="fluid", name="se-space-coolant-hot", amount=25, catalyst_amount=25}, - } - } - }) - util.add_unlock("se-space-matter-fusion", fname) - - if mods["Krastorio2"] then - local lname = params.ore.."-to-particle-stream" - data:extend({ - enabled = false, - { - type = "recipe", - name = lname, - localised_name = {"recipe-name.se-kr-matter-liberation", {"item-name."..params.ore}}, - category = "space-materialisation", - subgroup = "advanced-particle-stream", - order = "a-b-z", - icons = { - {icon = "__space-exploration-graphics__/graphics/blank.png", - icon_size = 64, scale = 0.5}, - {icon = "__space-exploration-graphics__/graphics/icons/fluid/particle-stream.png", - icon_size = 64, scale = 0.33, shift = {-8,8}}, - {icon = "__Chromium__/graphics/icons/"..params.ore..".png", - icon_size = params.icon_size, scale = 0.33 * 64/params.icon_size, shift={8, -8}}, - {icon = "__space-exploration-graphics__/graphics/icons/transition-arrow.png", - icon_size = 64, scale = 0.5}, - }, - energy_required = 30, - enabled = false, - ingredients = { - {type="item", name="se-kr-matter-liberation-data", amount=1}, - {type="item", name=params.ore, amount=params.quant_in}, - {type="fluid", name="se-particle-stream", amount=50}, - }, - results = { - {type=item, name="se-kr-matter-liberation-data", amount=1, probability=.99}, - {type=item, name=sejunk, amount=1, probability=.01}, - {type="fluid", name="se-particle-stream", amount=params.stream_out, catalyst_amount=50}, - } - } - }) - if not data.raw.technology["bz-advanced-stream-production"] then - data:extend({ - { - type = "technology", - name ="bz-advanced-stream-production", - localised_name = {"", {"technology-name.se-kr-advanced-stream-production"}, " 2"}, - icon = "__space-exploration-graphics__/graphics/technology/material-fabricator.png", - icon_size = 128, - effects = {}, - unit = { - count = 100, - time = 15, - ingredients = { - {"automation-science-pack", 1}, - {"logistic-science-pack", 1}, - {"chemical-science-pack", 1}, - {"se-rocket-science-pack", 1}, - {"space-science-pack", 1}, - {"production-science-pack", 1}, - {"utility-science-pack", 1}, - {"se-astronomic-science-pack-4", 1}, - {"se-energy-science-pack-4", 1}, - {"se-material-science-pack-4", 1}, - {"matter-tech-card", 1}, - {"se-deep-space-science-pack-1", 1}, - } - }, - prerequisites = {"se-kr-advanced-stream-production"}, - }, - }) - end - util.add_unlock("bz-advanced-stream-production", lname) - end -end - --- Get the normal prototype for a recipe -- either .normal or the recipe itself -function util.get_normal(recipe_name) - if data.raw.recipe[recipe_name] then - recipe = data.raw.recipe[recipe_name] - if recipe.normal and recipe.normal.ingredients then - return recipe.normal - elseif recipe.ingredients then - return recipe - end - end -end - --- Set/override a technology's prerequisites -function util.set_prerequisite(technology_name, prerequisites) - local technology = data.raw.technology[technology_name] - if technology then - technology.prerequisites = {} - for i, prerequisite in pairs(prerequisites) do - if data.raw.technology[prerequisite] then - table.insert(technology.prerequisites, prerequisite) - end - end - end -end - --- Add a prerequisite to a given technology -function util.add_prerequisite(technology_name, prerequisite) - local technology = data.raw.technology[technology_name] - if technology and data.raw.technology[prerequisite] then - if technology.prerequisites then - for i, pre in pairs(technology.prerequisites) do - if pre == prerequisite then return end - end - table.insert(technology.prerequisites, prerequisite) - else - technology.prerequisites = {prerequisite} - end - end -end - --- Remove a prerequisite from a given technology -function util.remove_prerequisite(technology_name, prerequisite) - local technology = data.raw.technology[technology_name] - local index = -1 - if technology then - for i, prereq in pairs(technology.prerequisites) do - if prereq == prerequisite then - index = i - break - end - end - if index > -1 then - table.remove(technology.prerequisites, index) - end - end -end - - --- Add an effect to a given technology -function util.add_effect(technology_name, effect) - local technology = data.raw.technology[technology_name] - if technology then - if not technology.effects then technology.effects = {} end - if effect and effect.type == "unlock-recipe" then - if not data.raw.recipe[effect.recipe] then - return - end - table.insert(technology.effects, effect) - end - end -end - --- Add an effect to a given technology to unlock recipe -function util.add_unlock(technology_name, recipe) - util.add_effect(technology_name, {type="unlock-recipe", recipe=recipe}) -end - --- remove recipe unlock effect from a given technology, multiple times if necessary -function util.remove_recipe_effect(technology_name, recipe_name) - local technology = data.raw.technology[technology_name] - local index = -1 - local cnt = 0 - if technology and technology.effects then - for i, effect in pairs(technology.effects) do - if effect.type == "unlock-recipe" and effect.recipe == recipe_name then - index = i - cnt = cnt + 1 - end - end - if index > -1 then - table.remove(technology.effects, index) - if cnt > 1 then -- not over yet, do it again - util.remove_recipe_effect(technology_name, recipe_name) - end - end - end -end - --- Set technology ingredients -function util.set_tech_recipe(technology_name, ingredients) - local technology = data.raw.technology[technology_name] - if technology then - technology.unit.ingredients = ingredients - end -end - -function util.set_enabled(recipe_name, enabled) - if data.raw.recipe[recipe_name] then - if data.raw.recipe[recipe_name].normal then data.raw.recipe[recipe_name].normal.enabled = enabled end - if data.raw.recipe[recipe_name].expensive then data.raw.recipe[recipe_name].expensive.enabled = enabled end - if not data.raw.recipe[recipe_name].normal then data.raw.recipe[recipe_name].enabled = enabled end - end -end - -function util.set_hidden(recipe_name) - if data.raw.recipe[recipe_name] then - if data.raw.recipe[recipe_name].normal then data.raw.recipe[recipe_name].normal.hidden = true end - if data.raw.recipe[recipe_name].expensive then data.raw.recipe[recipe_name].expensive.hidden = true end - if not data.raw.recipe[recipe_name].normal then data.raw.recipe[recipe_name].hidden = true end - end -end - --- Add a given quantity of ingredient to a given recipe -function util.add_or_add_to_ingredient(recipe_name, ingredient, quantity) - if data.raw.recipe[recipe_name] and data.raw.item[ingredient] then - add_or_add_to_ingredient(data.raw.recipe[recipe_name], ingredient, quantity) - add_or_add_to_ingredient(data.raw.recipe[recipe_name].normal, ingredient, quantity) - add_or_add_to_ingredient(data.raw.recipe[recipe_name].expensive, ingredient, quantity) - end -end - -function add_or_add_to_ingredient(recipe, ingredient, quantity) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, existing in pairs(recipe.ingredients) do - if existing[1] == ingredient or existing.name == ingredient then - add_to_ingredient(recipe, ingredient, quantity) - return - end - end - table.insert(recipe.ingredients, {ingredient, quantity}) - end -end - --- Add a given quantity of ingredient to a given recipe -function util.add_ingredient(recipe_name, ingredient, quantity) - local is_fluid = not not data.raw.fluid[ingredient] - if data.raw.recipe[recipe_name] and (data.raw.item[ingredient] or is_fluid) then - add_ingredient(data.raw.recipe[recipe_name], ingredient, quantity, is_fluid) - add_ingredient(data.raw.recipe[recipe_name].normal, ingredient, quantity, is_fluid) - add_ingredient(data.raw.recipe[recipe_name].expensive, ingredient, quantity, is_fluid) - end -end - -function add_ingredient(recipe, ingredient, quantity, is_fluid) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, existing in pairs(recipe.ingredients) do - if existing[1] == ingredient or existing.name == ingredient then - return - end - end - if is_fluid then - table.insert(recipe.ingredients, {type="fluid", name=ingredient, amount=quantity}) - else - table.insert(recipe.ingredients, {ingredient, quantity}) - end - end -end - --- Add a given ingredient prototype to a given recipe -function util.add_ingredient_raw(recipe_name, ingredient) - if data.raw.recipe[recipe_name] and (data.raw.item[ingredient.name] or data.raw.item[ingredient[1]]) then - add_ingredient_raw(data.raw.recipe[recipe_name], ingredient) - add_ingredient_raw(data.raw.recipe[recipe_name].normal, ingredient) - add_ingredient_raw(data.raw.recipe[recipe_name].expensive, ingredient) - end -end - -function add_ingredient_raw(recipe, ingredient) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, existing in pairs(recipe.ingredients) do - if ( - (existing[1] and (existing[1] == ingredient[1] or existing[1] == ingredient.name)) or - (existing.name and (existing.name == ingredient[1] or existing.name == ingredient.name)) - ) then - return - end - end - table.insert(recipe.ingredients, ingredient) - end -end - --- Set an ingredient to a given quantity -function util.set_ingredient(recipe_name, ingredient, quantity) - if data.raw.recipe[recipe_name] and data.raw.item[ingredient] then - set_ingredient(data.raw.recipe[recipe_name], ingredient, quantity) - set_ingredient(data.raw.recipe[recipe_name].normal, ingredient, quantity) - set_ingredient(data.raw.recipe[recipe_name].expensive, ingredient, quantity) - end -end - -function set_ingredient(recipe, ingredient, quantity) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, existing in pairs(recipe.ingredients) do - if existing[1] == ingredient then - existing[2] = quantity - return - elseif existing.name == ingredient then - existing.amount = quantity - existing.amount_min = nil - existing.amount_max = nil - return - end - end - table.insert(recipe.ingredients, {ingredient, quantity}) - end -end --- Add a given quantity of product to a given recipe. --- Only works for recipes with multiple products -function util.add_product(recipe_name, product) - if data.raw.recipe[recipe_name] and - (data.raw.item[product[1]] or data.raw.item[product.name] or - data.raw.fluid[product[1]] or data.raw.fluid[product.name] - ) then - add_product(data.raw.recipe[recipe_name], product) - add_product(data.raw.recipe[recipe_name].normal, product) - add_product(data.raw.recipe[recipe_name].expensive, product) - end -end - -function add_product(recipe, product) - if recipe ~= nil then - if not recipe.normal then - if recipe.results == nil then - recipe.results = {{recipe.result, recipe.result_count and recipe.result_count or 1}} - end - recipe.result = nil - recipe.result_count = nil - table.insert(recipe.results, product) - end - end -end - --- Get the amount of the ingredient, will check base/normal not expensive -function util.get_ingredient_amount(recipe_name, ingredient_name) - local recipe = data.raw.recipe[recipe_name] - if recipe then - if recipe.normal and recipe.normal.ingredients then - for i, ingredient in pairs(recipe.normal.ingredients) do - if ingredient[1] == ingredient_name then return ingredient[2] end - if ingredient.name == ingredient_name then return ingredient.amount end - end - elseif recipe.ingredients then - for i, ingredient in pairs(recipe.ingredients) do - if ingredient[1] == ingredient_name then return ingredient[2] end - if ingredient.name == ingredient_name then return ingredient.amount end - end - end - return 1 - end - return 0 -end - --- Get the amount of the result, will check base/normal not expensive -function util.get_amount(recipe_name, product) - if not product then product = recipe_name end - local recipe = data.raw.recipe[recipe_name] - if recipe then - if recipe.normal and recipe.normal.results then - for i, result in pairs(recipe.normal.results) do - if result[1] == product then return result[2] end - if result.name == product then return result.amount end - end - elseif recipe.normal and recipe.normal.result_count then - return recipe.normal.result_count - elseif recipe.results then - for i, result in pairs(recipe.results) do - if result[1] == product then return result[2] end - if result.name == product then return result.amount end - end - elseif recipe.result_count then - return recipe.result_count - end - return 1 - end - return 0 -end - --- Get the count of results -function util.get_result_count(recipe_name, product) - if not product then product = recipe_name end - local recipe = data.raw.recipe[recipe_name] - if recipe then - if recipe.normal and recipe.normal.results then - return #(recipe.normal.results) - elseif recipe.results then - return #(recipe.results) - end - return 1 - end - return 0 -end - --- Replace one ingredient with another in a recipe --- Use amount to set an amount. If that amount is a multiplier instead of an exact amount, set multiply true. -function util.replace_ingredient(recipe_name, old, new, amount, multiply) - if data.raw.recipe[recipe_name] and (data.raw.item[new] or data.raw.fluid[new]) then - replace_ingredient(data.raw.recipe[recipe_name], old, new, amount, multiply) - replace_ingredient(data.raw.recipe[recipe_name].normal, old, new, amount, multiply) - replace_ingredient(data.raw.recipe[recipe_name].expensive, old, new, amount, multiply) - end -end - -function replace_ingredient(recipe, old, new, amount, multiply) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, existing in pairs(recipe.ingredients) do - if existing[1] == new or existing.name == new then - return - end - end - for i, ingredient in pairs(recipe.ingredients) do - if ingredient.name == old then - ingredient.name = new - if amount then - if multiply then - ingredient.amount = amount * ingredient.amount - else - ingredient.amount = amount - end - end - end - if ingredient[1] == old then - ingredient[1] = new - if amount then - if multiply then - ingredient[2] = amount * ingredient[2] - else - ingredient[2] = amount - end - end - end - end - end -end - --- Remove an ingredient from a recipe -function util.remove_ingredient(recipe_name, old) - if data.raw.recipe[recipe_name] then - remove_ingredient(data.raw.recipe[recipe_name], old) - remove_ingredient(data.raw.recipe[recipe_name].normal, old) - remove_ingredient(data.raw.recipe[recipe_name].expensive, old) - end -end - -function remove_ingredient(recipe, old) - index = -1 - if recipe ~= nil and recipe.ingredients ~= nil then - for i, ingredient in pairs(recipe.ingredients) do - if ingredient.name == old or ingredient[1] == old then - index = i - break - end - end - if index > -1 then - table.remove(recipe.ingredients, index) - end - end -end - --- Replace an amount of an ingredient in a recipe. Keep at least 1 of old. -function util.replace_some_ingredient(recipe_name, old, old_amount, new, new_amount) - local is_fluid = not not data.raw.fluid[new] - if data.raw.recipe[recipe_name] and (data.raw.item[new] or is_fluid) then - replace_some_ingredient(data.raw.recipe[recipe_name], old, old_amount, new, new_amount, is_fluid) - replace_some_ingredient(data.raw.recipe[recipe_name].normal, old, old_amount, new, new_amount, is_fluid) - replace_some_ingredient(data.raw.recipe[recipe_name].expensive, old, old_amount, new, new_amount, is_fluid) - end -end - -function replace_some_ingredient(recipe, old, old_amount, new, new_amount, is_fluid) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, existing in pairs(recipe.ingredients) do - if existing[1] == new or existing.name == new then - return - end - end - for i, ingredient in pairs(recipe.ingredients) do - if ingredient.name == old then - ingredient.amount = math.max(1, ingredient.amount - old_amount) - end - if ingredient[1] == old then - ingredient[2] = math.max(1, ingredient[2] - old_amount) - end - end - add_ingredient(recipe, new, new_amount, is_fluid) - end -end - --- set the amount of a product. -function util.set_product_amount(recipe_name, product, amount) - if data.raw.recipe[recipe_name] then - set_product_amount(data.raw.recipe[recipe_name], product, amount) - set_product_amount(data.raw.recipe[recipe_name].normal, product, amount) - set_product_amount(data.raw.recipe[recipe_name].expensive, product, amount) - end -end - -function set_product_amount(recipe, product, amount) - if recipe then - if recipe.result_count then - recipe.result_count = amount - end - if recipe.results then - for i, result in pairs(recipe.results) do - if result.name == product then - if result.amount then - result.amount = amount - end - if result.amount_min ~= nil then - result.amount_min = nil - result.amount_max = nil - result.amount = amount - end - end - if result[1] == product then - result[2] = amount - end - end - end - if not recipe.results and not recipe.result_count then - -- implicit one item result - recipe.result_count = amount - end - end -end - --- multiply the cost, energy, and results of a recipe by a multiple -function util.multiply_recipe(recipe_name, multiple) - if data.raw.recipe[recipe_name] then - multiply_recipe(data.raw.recipe[recipe_name], multiple) - multiply_recipe(data.raw.recipe[recipe_name].normal, multiple) - multiply_recipe(data.raw.recipe[recipe_name].expensive, multiple) - end -end - -function multiply_recipe(recipe, multiple) - if recipe then - if recipe.energy_required then - recipe.energy_required = recipe.energy_required * multiple - end - if recipe.result_count then - recipe.result_count = recipe.result_count * multiple - end - if recipe.results then - for i, result in pairs(recipe.results) do - if result.name then - if result.amount then - result.amount = result.amount * multiple - end - if result.amount_min ~= nil then - result.amount_min = result.amount_min * multiple - result.amount_max = result.amount_max * multiple - end - if result.catalyst_amount then - result.catalyst_amount = result.catalyst_amount * multiple - end - end - if result[1] then - result[2] = result[2] * multiple - end - end - end - if not recipe.results and not recipe.result_count then - -- implicit one item result - recipe.result_count = multiple - end - if recipe.ingredients then - for i, ingredient in pairs(recipe.ingredients) do - if ingredient.name then - ingredient.amount = ingredient.amount * multiple - end - if ingredient[1] then - ingredient[2] = ingredient[2] * multiple - end - end - end - end -end - --- Returns true if a recipe has an ingredient -function util.has_ingredient(recipe_name, ingredient) - return data.raw.recipe[recipe_name] and ( - has_ingredient(data.raw.recipe[recipe_name], ingredient) or - has_ingredient(data.raw.recipe[recipe_name].normal, ingredient)) -end - -function has_ingredient(recipe, ingredient) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, existing in pairs(recipe.ingredients) do - if existing[1] == ingredient or existing.name == ingredient then - return true - end - end - end - return false -end - --- Remove a product from a recipe, WILL NOT remove the only product -function util.remove_product(recipe_name, old) - if data.raw.recipe[recipe_name] then - remove_product(data.raw.recipe[recipe_name], old) - remove_product(data.raw.recipe[recipe_name].normal, old) - remove_product(data.raw.recipe[recipe_name].expensive, old) - end -end - -function remove_product(recipe, old) - index = -1 - if recipe ~= nil and recipe.results ~= nil then - for i, result in pairs(recipe.results) do - if result.name == old or result[1] == old then - index = i - break - end - end - if index > -1 then - table.remove(recipe.results, index) - end - end -end - -function util.set_main_product(recipe_name, product) - if data.raw.recipe[recipe_name] then - set_main_product(data.raw.recipe[recipe_name], product) - set_main_product(data.raw.recipe[recipe_name].normal, product) - set_main_product(data.raw.recipe[recipe_name].expensive, product) - end -end - -function set_main_product(recipe, product) - if recipe then - recipe.main_product = product - end -end - --- Replace one product with another in a recipe -function util.replace_product(recipe_name, old, new) - if data.raw.recipe[recipe_name] then - replace_product(data.raw.recipe[recipe_name], old, new) - replace_product(data.raw.recipe[recipe_name].normal, old, new) - replace_product(data.raw.recipe[recipe_name].expensive, old, new) - end -end - -function replace_product(recipe, old, new) - if recipe then - if recipe.main_product == old then - recipe.main_product = new - end - if recipe.result == old then - recipe.result = new - return - end - if recipe.results then - for i, result in pairs(recipe.results) do - if result.name == old then result.name = new end - if result[1] == old then result[1] = new end - end - end - end -end - --- Remove an element of type t and name from data.raw -function util.remove_raw(t, name) - if not data.raw[t] then - log(t.." not found in data.raw") - return - end - if data.raw[t][name] then - for i, elem in pairs(data.raw[t]) do - if elem.name == name then - data.raw[t][i] = nil - break - end - end - end -end - --- Set energy required -function util.set_recipe_time(recipe_name, time) - if data.raw.recipe[recipe_name] then - set_recipe_time(data.raw.recipe[recipe_name], time) - set_recipe_time(data.raw.recipe[recipe_name].normal, time) - set_recipe_time(data.raw.recipe[recipe_name].expensive, time) - end -end - -function set_recipe_time(recipe, time) - if recipe then - if recipe.energy_required then - recipe.energy_required = time - end - end -end - --- Multiply energy required -function util.multiply_time(recipe_name, factor) - if data.raw.recipe[recipe_name] then - multiply_time(data.raw.recipe[recipe_name], factor) - multiply_time(data.raw.recipe[recipe_name].normal, factor) - multiply_time(data.raw.recipe[recipe_name].expensive, factor) - end -end - -function multiply_time(recipe, factor) - if recipe then - if recipe.energy_required then - recipe.energy_required = recipe.energy_required * factor - end - end -end - --- Add to energy required -function util.add_time(recipe_name, amount) - if data.raw.recipe[recipe_name] then - add_time(data.raw.recipe[recipe_name], amount) - add_time(data.raw.recipe[recipe_name].normal, amount) - add_time(data.raw.recipe[recipe_name].expensive, amount) - end -end - -function add_time(recipe, amount) - if recipe then - if recipe.energy_required then - recipe.energy_required = recipe.energy_required + amount - end - end -end - --- Set recipe category -function util.set_category(recipe_name, category) - if data.raw.recipe[recipe_name] and data.raw["recipe-category"][category] then - data.raw.recipe[recipe_name].category = category - end -end - --- Set recipe subgroup -function util.set_subgroup(recipe_name, subgroup) - if data.raw.recipe[recipe_name] then - data.raw.recipe[recipe_name].subgroup = subgroup - end -end - --- Set item subgroup -function util.set_item_subgroup(item, subgroup) - if data.raw.item[item] and data.raw["item-subgroup"][subgroup] then - data.raw.item[item].subgroup = subgroup - end -end - -function util.add_icon(recipe_name, icon) - if data.raw.recipe[recipe_name] then - if not (data.raw.recipe[recipe_name].icons and #(data.raw.recipe[recipe_name].icons) > 0) then - data.raw.recipe[recipe_name].icons = {{ - icon=data.raw.recipe[recipe_name].icon, - icon_size=data.raw.recipe[recipe_name].icon_size, - icon_mipmaps=data.raw.recipe[recipe_name].icon_mipmaps, - }} - data.raw.recipe[recipe_name].icon = nil - data.raw.recipe[recipe_name].icon_size = nil - end - table.insert(data.raw.recipe[recipe_name].icons, icon) - end -end - --- Set recipe icons -function util.set_icons(recipe_name, icons) - if data.raw.recipe[recipe_name] then - data.raw.recipe[recipe_name].icons = icons - data.raw.recipe[recipe_name].icon = nil - data.raw.recipe[recipe_name].icon_size = nil - end -end - --- Set recipe icons -function util.set_item_icons(item_name, icons) - if data.raw.item[item_name] then - data.raw.item[item_name].icons = icons - data.raw.item[item_name].icon = nil - data.raw.item[item_name].icon_size = nil - end -end - --- Gets an item or fluid icon -function util.get_item_or_fluid_icon(name) - icon = "" - if data.raw.item[name] then - icon = data.raw.item[name].icon - if not icon then icon = data.raw.item[name].icons[1].icon end - elseif data.raw.fluid[name] then - icon = data.raw.fluid[name].icon - if not icon then icon = data.raw.fluid[name].icons[1].icon end - end - return icon -end - -function util.set_to_founding(recipe) - util.set_category(recipe, "founding") - util.set_subgroup(recipe, "foundry-intermediate") -end - --- Add crafting category to an entity -function util.add_crafting_category(entity_type, entity, category) - if data.raw[entity_type][entity] and data.raw["recipe-category"][category] then - for i, existing in pairs(data.raw[entity_type][entity].crafting_categories) do - if existing == category then - return - end - end - table.insert(data.raw[entity_type][entity].crafting_categories, category) - end -end - -function util.add_to_ingredient(recipe, ingredient, amount) - if data.raw.recipe[recipe] then - add_to_ingredient(data.raw.recipe[recipe], ingredient, amount) - add_to_ingredient(data.raw.recipe[recipe].normal, ingredient, amount) - add_to_ingredient(data.raw.recipe[recipe].expensive, ingredient, amount) - end -end - -function add_to_ingredient(recipe, it, amount) - if recipe ~= nil and recipe.ingredients ~= nil then - for i, ingredient in pairs(recipe.ingredients) do - if ingredient.name == it then - ingredient.amount = ingredient.amount + amount - return - end - if ingredient[1] == it then - ingredient[2] = ingredient[2] + amount - return - end - end - end -end - -function util.add_to_product(recipe_name, product, amount) - if data.raw.recipe[recipe_name] then - add_to_product(data.raw.recipe[recipe_name], product, amount) - add_to_product(data.raw.recipe[recipe_name].normal, product, amount) - add_to_product(data.raw.recipe[recipe_name].expensive, product, amount) - end -end - -function add_to_product(recipe, product, amount) - if recipe ~= nil and recipe.results ~= nil then - if recipe.result == product then - recipe.result_count = recipe.result_count + amount - return - end - for i, result in pairs(recipe.results) do - if result.name == product then - result.amount = result.amount + amount - return - end - if result[1] == product then - result[2] = result[2] + amount - return - end - end - end -end - --- Adds a result to a mineable type -function util.add_minable_result(t, name, result) - if data.raw[t] and data.raw[t][name] and data.raw[t][name].minable then - if data.raw[t][name].minable.result and not data.raw[t][name].minable.results then - data.raw[t][name].minable.results = { - {data.raw[t][name].minable.result ,data.raw[t][name].minable.count}} - data.raw[t][name].minable.result = nil - data.raw[t][name].minable.result_count = nil - end - if data.raw[t][name].minable.results then - table.insert(data.raw[t][name].minable.results, result) - end - end -end - -function util.remove_prior_unlocks(tech, recipe) - if data.raw.technology[tech].prerequisites then - for i, prerequisite in pairs(data.raw.technology[tech].prerequisites) do - remove_prior_unlocks(prerequisite, recipe) - end - end -end - -function remove_prior_unlocks(tech, recipe) - local technology = data.raw.technology[tech] - if technology then - util.remove_recipe_effect(tech, recipe) - if technology.prerequisites then - for i, prerequisite in pairs(technology.prerequisites) do - -- log("BZZZ removing prior unlocks for " .. tech ..", checking " .. prerequisite) -- Handy Debug :| - remove_prior_unlocks(prerequisite, recipe) - end - end - end -end - -function util.replace_ingredients_prior_to(tech, old, new, multiplier) - if not data.raw.technology[tech] then - log("Not replacing ingredient "..old.." with "..new.." because tech "..tech.." was not found") - return - end - util.remove_prior_unlocks(tech, old) - for i, recipe in pairs(data.raw.recipe) do - if (recipe.enabled and recipe.enabled ~= 'false') - and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes - and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :( - then - -- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :| - util.replace_ingredient(recipe.name, old, new, multiplier, true) - end - end - if data.raw.technology[tech].prerequisites then - for i, prerequisite in pairs(data.raw.technology[tech].prerequisites) do - replace_ingredients_prior_to(prerequisite, old, new, multiplier) - end - end -end - -function replace_ingredients_prior_to(tech, old, new, multiplier) - local technology = data.raw.technology[tech] - if technology then - if technology.effects then - for i, effect in pairs(technology.effects) do - if effect.type == "unlock-recipe" then - -- log("BZZZ replacing " .. old .. " with " .. new .." in " .. effect.recipe) -- Handy Debug :| - util.replace_ingredient(effect.recipe, old, new, multiplier, true) - end - end - end - if technology.prerequisites then - for i, prerequisite in pairs(technology.prerequisites) do - -- log("BZZZ checking " .. prerequisite) -- Handy Debug :| - replace_ingredients_prior_to(prerequisite, old, new, multiplier) - end - end - end -end - -function util.remove_all_recipe_effects(recipe_name) - for name, _ in pairs(data.raw.technology) do - util.remove_recipe_effect(name, recipe_name) - end -end - -function util.add_unlock_force(technology_name, recipe) - util.set_enabled(recipe, false) - util.remove_all_recipe_effects(recipe) - util.add_unlock(technology_name, recipe) -end - --- sum the products of a recipe -function util.sum_products(recipe_name) - -- this is going to end up approximate in some cases, integer division is probs fine - if data.raw.recipe[recipe_name] then - local recipe = data.raw.recipe[recipe_name] - if not recipe.results then return recipe.result_count end - local sum = 0 - for i, result in pairs(recipe.results) do - local amt = 0 - if result[2] then amt = result[2] - elseif result.amount then amt = result.amount - elseif result.amount_min then amt = (result.amount_min + result.amount_max)/2 - end - if result.probability then amt = amt * result.probability end - sum = sum + amt - end - return sum - end - return 0 -end - -function util.add_productivity(recipe) - for i, module in pairs(data.raw.module) do - if module.effect then - for effect_name, effect in pairs(module.effect) do - if effect_name == "productivity" and effect.bonus > 0 and module.limitation and #module.limitation > 0 then - table.insert(module.limitation, recipe) - end - end - end - end -end - -return util \ No newline at end of file diff --git a/Chromium2/data.lua b/Chromium2/data.lua deleted file mode 100644 index 3488b14..0000000 --- a/Chromium2/data.lua +++ /dev/null @@ -1,7 +0,0 @@ -require("prototypes.chromite-ore") -require("prototypes.chromium-recipe") -require("prototypes.technology") - -require("prototypes.chromium-enriched") -- Enriched Al for Krastorio 2 -require("prototypes.chromium-recipe-se") -- Space Exploration -require("prototypes.chromium-248k") -- 248k \ No newline at end of file diff --git a/Chromium2/graphics/entity/ores/hr-chromite-ore.png b/Chromium2/graphics/entity/ores/hr-chromite-ore.png deleted file mode 100644 index 56ada08..0000000 Binary files a/Chromium2/graphics/entity/ores/hr-chromite-ore.png and /dev/null differ diff --git a/Chromium2/graphics/icons/advanced-electric-motor.png b/Chromium2/graphics/icons/advanced-electric-motor.png deleted file mode 100644 index 89c381c..0000000 Binary files a/Chromium2/graphics/icons/advanced-electric-motor.png and /dev/null differ diff --git a/Chromium2/graphics/icons/air-bearing.png b/Chromium2/graphics/icons/air-bearing.png deleted file mode 100644 index d68717d..0000000 Binary files a/Chromium2/graphics/icons/air-bearing.png and /dev/null differ diff --git a/Chromium2/graphics/icons/automation-core-3.png b/Chromium2/graphics/icons/automation-core-3.png deleted file mode 100644 index 6a5c062..0000000 Binary files a/Chromium2/graphics/icons/automation-core-3.png and /dev/null differ diff --git a/Chromium2/graphics/icons/basic-vehicle-frame.png b/Chromium2/graphics/icons/basic-vehicle-frame.png deleted file mode 100644 index 3f853cf..0000000 Binary files a/Chromium2/graphics/icons/basic-vehicle-frame.png and /dev/null differ diff --git a/Chromium2/graphics/icons/chromel-r-fabric.png b/Chromium2/graphics/icons/chromel-r-fabric.png deleted file mode 100644 index e269388..0000000 Binary files a/Chromium2/graphics/icons/chromel-r-fabric.png and /dev/null differ diff --git a/Chromium2/graphics/icons/chromite-ore.png b/Chromium2/graphics/icons/chromite-ore.png deleted file mode 100644 index 3bba78d..0000000 Binary files a/Chromium2/graphics/icons/chromite-ore.png and /dev/null differ diff --git a/Chromium2/graphics/icons/chromium-ingot.png b/Chromium2/graphics/icons/chromium-ingot.png deleted file mode 100644 index 2fcaf90..0000000 Binary files a/Chromium2/graphics/icons/chromium-ingot.png and /dev/null differ diff --git a/Chromium2/graphics/icons/chromium-plate.png b/Chromium2/graphics/icons/chromium-plate.png deleted file mode 100644 index 30b9088..0000000 Binary files a/Chromium2/graphics/icons/chromium-plate.png and /dev/null differ diff --git a/Chromium2/graphics/icons/enriched-chromium.png b/Chromium2/graphics/icons/enriched-chromium.png deleted file mode 100644 index 4f3067a..0000000 Binary files a/Chromium2/graphics/icons/enriched-chromium.png and /dev/null differ diff --git a/Chromium2/graphics/icons/fi-arc-pure-chrome.png b/Chromium2/graphics/icons/fi-arc-pure-chrome.png deleted file mode 100644 index 78eac9f..0000000 Binary files a/Chromium2/graphics/icons/fi-arc-pure-chrome.png and /dev/null differ diff --git a/Chromium2/graphics/icons/fi-materials-pure-chrome.png b/Chromium2/graphics/icons/fi-materials-pure-chrome.png deleted file mode 100644 index 4c07be0..0000000 Binary files a/Chromium2/graphics/icons/fi-materials-pure-chrome.png and /dev/null differ diff --git a/Chromium2/graphics/icons/heat-resistant-low-density-structure.png b/Chromium2/graphics/icons/heat-resistant-low-density-structure.png deleted file mode 100644 index 3ee401e..0000000 Binary files a/Chromium2/graphics/icons/heat-resistant-low-density-structure.png and /dev/null differ diff --git a/Chromium2/graphics/icons/heatsink.png b/Chromium2/graphics/icons/heatsink.png deleted file mode 100644 index 9941a50..0000000 Binary files a/Chromium2/graphics/icons/heatsink.png and /dev/null differ diff --git a/Chromium2/graphics/icons/inconel-718.png b/Chromium2/graphics/icons/inconel-718.png deleted file mode 100644 index 310fff2..0000000 Binary files a/Chromium2/graphics/icons/inconel-718.png and /dev/null differ diff --git a/Chromium2/graphics/icons/molten-chromium.png b/Chromium2/graphics/icons/molten-chromium.png deleted file mode 100644 index 65ba884..0000000 Binary files a/Chromium2/graphics/icons/molten-chromium.png and /dev/null differ diff --git a/Chromium2/graphics/icons/stainless-steel-plate.png b/Chromium2/graphics/icons/stainless-steel-plate.png deleted file mode 100644 index 7019966..0000000 Binary files a/Chromium2/graphics/icons/stainless-steel-plate.png and /dev/null differ diff --git a/Chromium2/graphics/icons/turbine-blades.png b/Chromium2/graphics/icons/turbine-blades.png deleted file mode 100644 index 5439ce7..0000000 Binary files a/Chromium2/graphics/icons/turbine-blades.png and /dev/null differ diff --git a/Chromium2/graphics/icons/vehicle-frame.png b/Chromium2/graphics/icons/vehicle-frame.png deleted file mode 100644 index d2942a3..0000000 Binary files a/Chromium2/graphics/icons/vehicle-frame.png and /dev/null differ diff --git a/Chromium2/graphics/technology/polyethylene.png b/Chromium2/graphics/technology/polyethylene.png deleted file mode 100644 index 5607d1e..0000000 Binary files a/Chromium2/graphics/technology/polyethylene.png and /dev/null differ diff --git a/Chromium2/info.json b/Chromium2/info.json deleted file mode 100644 index 115e0db..0000000 --- a/Chromium2/info.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "Chromium", - "version": "2.0.0", - "factorio_version": "2.0", - "title": "Chromium", - "author": "Timeken, cackling fiend", - "homepage": "https://discord.gg/ufvFUJtVwk", - "dependencies": [ - "base >= 1.1.0", - "? 248k-Redux", - "? aai-industry", - "? BrassTacks-Updated", - "? bobassembly", - "? bzaluminum", - "? bzfoundry", - "? bzgas", - "? bzsilicon", - "? IfNickel-Updated", - "? Indium", - "? Krastorio2", - "? RampantArsenal", - "? space-exploration", - "? Tantalite", - "? ThemTharHills-Updated" - ], - "description": "Chromium is a mod adding the element chromium.\n\nThis mod is inspired by Brevven's BZ mods. \n\n Most if not all art is placeholder." -} \ No newline at end of file diff --git a/Chromium2/locale/en/Chromium.cfg b/Chromium2/locale/en/Chromium.cfg deleted file mode 100644 index 671c197..0000000 --- a/Chromium2/locale/en/Chromium.cfg +++ /dev/null @@ -1,62 +0,0 @@ -[technology-name] -chromium-processing=Chromium processing -polyethylene-plastic=Polyethylene plastic -stainless-steel-processing=Stainless steel processing -basic-vehicle-frame-production=Basic vehicle frame production -vehicle-frame-production=Vehicle frame production -chromel-r-fabric=Chromel-R fabric -chrome-alloys=Chrome alloys -heat-resistant-low-density-structure=Heat resistant low density structure -beryllium-heat-resistant-low-density-structure=Beryllium heat resistant low density structure - -[technology-description] - -[autoplace-control-names] -chromite-ore=[item=chromite-ore] Chromite ore - -[item-name] -chromite-ore=Chromite ore -chromium-plate=Chromium plate -enriched-chromium=Enriched chromium -chromium-ingot=Chromium ingot - -chromium-matter-processing=Chromium matter processing -stainless-steel-plate=Stainless steel plate -chromel-r-fabric=Chromel-R fabric - -basic-vehicle-frame=Basic vehicle frame -vehicle-frame=Vehicle frame - -automation-core-3=Automation core MK3 - -inconel-718=Inconel 718 alloy - -turbine-blades=Turbine blades - -heat-resistant-low-density-structure=Heat resistant low density structure - -air-bearing=Air bearing -advanced-electric-motor=Advanced electric motor - -fi-materials-pure-chrome=Pure chromium -[fluid-name] -molten-chromium=Molten chromium -fi-arc-pure-chrome=Molten chromium - -[entity-name] -chromite-ore=Chromite ore - -[mod-setting-name] - -[mod-setting-description] - -[recipe-name] -dirty-water-filtration-chromium=Filter dirty water [item=chromite-ore] -chromium-plate=Chromium plate -chromium-electrolysis=Chromium electrolysis -fi-purify-chrome-recipe=Purify chromimu -fi-arc-pure-chrome-recipe=Molten chromium -fi-cast-pure-chrome-recipe=Cast pure chromium -beryllium-heat-resistant-low-density-structure=Beryllium heat resistant low density structure - -[recipe-description] \ No newline at end of file diff --git a/Chromium2/prototypes/chromite-ore.lua b/Chromium2/prototypes/chromite-ore.lua deleted file mode 100644 index 7303b54..0000000 --- a/Chromium2/prototypes/chromite-ore.lua +++ /dev/null @@ -1,70 +0,0 @@ -local resource_autoplace = require('resource-autoplace') - -local util = require("data-util") - -data:extend({ - { - type = "autoplace-control", - category = "resource", - name = "chromite-ore", - richness = true, - order = "b-e" - }, - { - type = "noise-layer", - name = "chromite-ore" - }, - { - type = "resource", - icon_size = 64, - icon_mipmaps = 3, - name = "chromite-ore", - icon = "__Chromium__/graphics/icons/chromite-ore.png", - flags = { "placeable-neutral" }, - order = "a-b-a", - map_color = { r = 0.90, g = 0.80, b = 1.00 }, - minable = - { - hardness = 1, - mining_particle = "copper-ore-particle", - mining_time = 1, - result = "chromite-ore" - }, - collision_box = { { -0.1, -0.1 }, { 0.1, 0.1 } }, - selection_box = { { -0.5, -0.5 }, { 0.5, 0.5 } }, - - autoplace = resource_autoplace.resource_autoplace_settings { - name = "chromite-ore", - order = "b-z", - base_density = 2, - base_spots_per_km2 = 1, - has_starting_area_placement = true, - regular_rq_factor_multiplier = 1.0, - starting_rq_factor_multiplier = 1.0, - }, - - stage_counts = { 15000, 9500, 5500, 2900, 1300, 400, 150, 80 }, - stages = - { - sheet = - { - filename = "__Chromium__/graphics/entity/ores/hr-chromite-ore.png", - priority = "extra-high", - size = 128, - frame_count = 8, - variation_count = 8, - scale = 0.5 - } - }, - }, - { - type = "item", - name = "chromite-ore", - icon_size = 64, - icon_mipmaps = 3, - icon = "__Chromium__/graphics/icons/chromite-ore.png", - subgroup = "raw-resource", - order = "t-c-a", - stack_size = util.get_stack_size(50) - }, -}) diff --git a/Chromium2/prototypes/chromium-248k.lua b/Chromium2/prototypes/chromium-248k.lua deleted file mode 100644 index b808d25..0000000 --- a/Chromium2/prototypes/chromium-248k.lua +++ /dev/null @@ -1,93 +0,0 @@ -local util = require("data-util") - -if mods["248k-Redux"] then -data:extend({ - { - type = "fluid", - name = "fi-arc-pure-chrome", - default_temperature = 1900, - max_temperature = 2650, - heat_capacity = "100kJ", - base_color = { r=0.92, g=0.29, b=0.22 }, - flow_color = { r=0.92, g=0.29, b=0.22 }, - pressure_to_speed_ratio = 0.400, - flow_to_energy_ratio = 0, - icon = "__Chromium__/graphics/icons/fi-arc-pure-chrome.png", - icon_size = 64, icon_mipmaps = 4, - order = "a-a" - }, - { - type = "item", - name = "fi-materials-pure-chrome", - icon = "__Chromium__/graphics/icons/fi-materials-pure-chrome.png", - icon_size = 64, - stack_size = 100, - subgroup = "fi_item_subgroup_a-c", - order = "b-a", - }, - { - type = "recipe", - name = "fi-purify-chrome-recipe", - enabled = false, - category = "el_purifier_category", - main_product = "el_dirty_water", - ingredients = { - {type="fluid", name="water", amount=50}, - {type="item", name="chromite-ore", amount=10} - }, - results = { - {type="fluid", name="el_dirty_water", amount=50}, - {type="item", name="fi-materials-pure-chrome", amount=5}, - }, - energy_required = 1, - always_show_made_in = true, - icon_size = 64, - icons = (mods["Krastorio2"] and - { - { icon = "__248k__/ressources/fluids/el_dirty_water.png", icon_size = 64}, - { icon = "__Chromium__/graphics/icons/chromite-ore.png", icon_size = 64, scale=0.2, shift= {-8, -8}}, - } or { - { icon = "__Chromium__/graphics/icons/chromite-ore.png", icon_size = 64}, - }), - group = "fi_item_group", - subgroup = "fi_item_subgroup_f", - order = "f-a", - }, - { - type = "recipe", - name = "fi-arc-pure-chrome-recipe", - enabled = false, - category = "el_arc_furnace_category", - ingredients = { - {type="item", name="fi-materials-pure-chrome", amount=1}, - }, - results = { - {type="fluid", name="fi-arc-pure-chrome", amount=200}, - }, - energy_required = 0.2, - order = "a-b", - group = "fi_item_group", - subgroup = "fi_item_subgroup_f", - always_show_made_in = true - }, - { - type = "recipe", - name = "fi-cast-pure-chrome-recipe", - enabled = false, - category = "el_caster_category", - ingredients = { - {type="fluid", name="fi-arc-pure-chrome", amount=100}, - }, - results = { - {type="item", name="chromium-plate", amount=1}, - }, - energy_required = 0.2, - order = "a-b", - always_show_made_in = true, - allow_decomposition = false - } -}) -util.add_unlock("fi_caster_tech","fi-arc-pure-chrome-recipe") -util.add_unlock("fi_caster_tech","fi-cast-pure-chrome-recipe") -util.add_unlock("fi_purifier_tech","fi-purify-chrome-recipe") -end \ No newline at end of file diff --git a/Chromium2/prototypes/chromium-enriched.lua b/Chromium2/prototypes/chromium-enriched.lua deleted file mode 100644 index f5569a5..0000000 --- a/Chromium2/prototypes/chromium-enriched.lua +++ /dev/null @@ -1,116 +0,0 @@ -local util = require("data-util") - -if mods["Krastorio2"] then -data:extend( -{ - { - type = "item", - name = "enriched-chromium", - icon_size = 64, - icon = "__Chromium__/graphics/icons/enriched-chromium.png", - group ="raw-material", - subgroup = "chromium", - order = "a", - stack_size = util.get_stack_size(100) - }, - { - type = "recipe", - name = "enriched-chromium", - main_product="enriched-chromium", - icon = "__Chromium__/graphics/icons/enriched-chromium.png", - icon_size = 64, - category = "chemistry", - energy_required = 3, - enabled = false, - always_show_made_in = true, - always_show_products = true, - group ="raw-material", - subgroup = "chromium", - ingredients = - { - {type = "fluid", name = "sulfuric-acid", amount = 3}, - {type = "fluid", name = "water", amount = 25, catalyst_amount = 25}, - {type = "item", name = "chromite-ore", amount = 9} - }, - results = - { - {type = "item", name = "enriched-chromium", amount = 6}, - {type = "item", name = "iron-ore", amount = 1}, - {type = "fluid", name = "dirty-water", amount = 25, catalyst_amount = 25} - }, - crafting_machine_tint = - { - primary = {r = 0.721, g = 0.525, b = 0.043, a = 0.000}, - secondary = {r = 0.200, g = 0.680, b = 0.300, a = 0.357}, - tertiary = {r = 0.690, g = 0.768, b = 0.870, a = 0.000}, - quaternary = {r = 0.0, g = 0.980, b = 0.603, a = 0.900} - }, - order = "e03[enriched-chromium]" - }, - { - type = "recipe", - name = "enriched-chromium-plate", - icons = - { - { icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64 }, - { icon = "__Chromium__/graphics/icons/enriched-chromium.png", icon_size = 64, scale=0.125, shift= {-8, -8}}, - }, - category = "smelting", - energy_required = 16, - enabled = false, - always_show_made_in = true, - always_show_products = true, - ingredients = { {type="item", name="enriched-chromium", amount=5} }, - results = { {type="item", name="chromium-plate", amount=5} }, - order = "a", - }, - { - type = "recipe", - name = "dirty-water-filtration-chromium", - category = "fluid-filtration", - icons = - { - { - icon = data.raw.fluid["dirty-water"].icon, - icon_size = data.raw.fluid["dirty-water"].icon_size - }, - { - icon = data.raw.item["chromite-ore"].icon, - icon_size = data.raw.item["chromite-ore"].icon_size, - scale = 0.20, - shift = {0, 4} - } - }, - icon_size = data.raw.fluid["dirty-water"].icon_size, - energy_required = 2, - enabled = false, - allow_as_intermediate = false, - always_show_made_in = true, - always_show_products = true, - ingredients = - { - {type = "fluid", name = "dirty-water", amount = 100, catalyst_amount = 100}, - }, - results = - { - {type = "fluid", name = "water", amount = 90, catalyst_amount = 90}, - {type = "item", name = "stone", probability = 0.40, amount = 1}, - {type = "item", name = "chromite-ore", probability = 0.10, amount = 1}, - }, - crafting_machine_tint = - { - primary = {r = 0.60, g = 0.20, b = 0, a = 0.6}, - secondary = {r = 1.0, g = 0.843, b = 0.0, a = 0.9} - }, - group ="raw-material", - subgroup = "chromium", - order = "w013[dirty-water-filtration-chromium]" - } -}) -util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "enriched-chromium" }) -util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "enriched-chromium-plate" }) -util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "dirty-water-filtration-chromium" }) - -util.add_productivity("enriched-chromium") -util.add_productivity("enriched-chromium-plate") -end diff --git a/Chromium2/prototypes/chromium-matter.lua b/Chromium2/prototypes/chromium-matter.lua deleted file mode 100644 index 90513e5..0000000 --- a/Chromium2/prototypes/chromium-matter.lua +++ /dev/null @@ -1,53 +0,0 @@ --- Matter recipes for Krastorio2 -if mods["Krastorio2"] then - local matter = require("__Krastorio2__/prototypes/libraries/matter") - - data:extend( - { - { - type = "technology", - name = "chromium-matter-processing", - icons = - { - { - icon = "__Krastorio2Assets__/technologies/matter-coal.png", - icon_size = 256, - }, - { - icon = "__Chromium__/graphics/icons/chromite-ore.png", - icon_size = 64, - scale = 1.4, - } - }, - prerequisites = { "kr-matter-processing" }, - unit = - { - count = 350, - ingredients = - { - { "production-science-pack", 1 }, - { "utility-science-pack", 1 }, - { "matter-tech-card", 1 } - }, - time = 45 - } - }, - }) - - matter.createMatterRecipe({ - material = { type = "item", name = "chromite-ore", amount = 10 }, - matter_count = 5, - energy_required = 1, - need_stabilizer = false, - unlocked_by_technology = "chromium-matter-processing" - }) - - matter.createMatterRecipe({ - material = { type = "item", name = "chromium-plate", amount = 10 }, - matter_count = 10, - energy_required = 3, - only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "chromium-matter-processing" - }) -end diff --git a/Chromium2/prototypes/chromium-recipe-se.lua b/Chromium2/prototypes/chromium-recipe-se.lua deleted file mode 100644 index 57f6380..0000000 --- a/Chromium2/prototypes/chromium-recipe-se.lua +++ /dev/null @@ -1,109 +0,0 @@ --- Additional recipes if Space Exploration mod is enabled -local util = require("data-util") - -if mods["space-exploration"] then - se_delivery_cannon_recipes["chromite-ore"] = {name= "chromite-ore"} - se_delivery_cannon_recipes["chromium-plate"] = {name= "chromium-plate"} - se_delivery_cannon_recipes["heat-resistant-low-density-structure"] = {name= "heat-resistant-low-density-structure"} - util.se_landfill({ore="chromite-ore"}) - - util.se_matter({ore="chromite-ore", energy_required=1, quant_out=10, stream_out=60}) - data:extend({ - { - type = "item-subgroup", - name = "chromium", - group = "resources", - order = "a-h-z-a", - } - }) - util.set_item_subgroup("chromium-plate", "chromium") - data:extend({ - { - type = "item", - name = "chromium-ingot", - icons = {{icon = "__Chromium__/graphics/icons/chromium-ingot.png", icon_size = 64}}, - order = "b-b", - stack_size = 50, - subgroup = "chromium", - }, - { - type = "fluid", - name = "molten-chromium", - default_temperature = 232, - max_temperature = 232, - base_color = {r=191, g=219, b=233}, - flow_color = {r=191, g=219, b=233}, - icons = {{icon = "__Chromium__/graphics/icons/molten-chromium.png", icon_size = 64}}, - order = "a[molten]-a", - pressure_to_speed_ratio = 0.4, - flow_to_energy_ratio = 0.59, - auto_barrel = false, - subgroup = "fluid", - }, - { - type = "recipe", - category = "smelting", - name = "molten-chromium", - subgroup = "chromium", - results = { - {type = "fluid", name = "molten-chromium", amount = mods["Krastorio2"] and 750 or 900}, - }, - energy_required = 45, - ingredients = { - {name = mods["Krastorio2"] and "enriched-chromium" or "chromite-ore", amount = 24}, - {type = "fluid", name = "se-pyroflux", amount = 10}, - }, - enabled = false, - always_show_made_in = true, - allow_as_intermediate = false, - order = "a-a" - }, - { - type = "recipe", - name = "chromium-ingot", - category = "casting", - results = {{type="item", name="chromium-ingot", amount=1}}, - energy_required = 18.75, - ingredients = { - {type = "fluid", name = "molten-chromium", amount = 250}, - }, - enabled = false, - always_show_made_in = true, - allow_as_intermediate = false, - }, - { - type = "recipe", - category = "crafting", - name = "chromium-ingot-to-plate", - - icons = { - {icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64}, - {icon = "__Chromium__/graphics/icons/chromium-ingot.png", icon_size = 32, scale = 0.125, shift = {-8, -8}}, - }, - results = { - {name = "chromium-plate", amount = 10}, - }, - energy_required = 3.75, - ingredients = { - {name = "chromium-ingot", amount = 1} - }, - enabled = false, - always_show_made_in = true, - allow_decomposition = false, - order = "a-c-b" - }, - }) - util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "molten-chromium"}) - util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "chromium-ingot"}) - util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "chromium-ingot-to-plate"}) - util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-chromium"}) - util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "chromium-ingot"}) - util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "chromium-ingot-to-plate"}) - if mods["Krastorio2"] then - util.set_item_subgroup("enriched-chromium", "chromium") - data.raw.recipe["enriched-chromium-plate"].order= "d[chromium-plate]" - se_delivery_cannon_recipes["enriched-chromium"] = {name= "enriched-chromium"} - end - se_delivery_cannon_recipes["chromium-ingot"] = {name= "chromium-ingot"} - -end \ No newline at end of file diff --git a/Chromium2/prototypes/chromium-recipe.lua b/Chromium2/prototypes/chromium-recipe.lua deleted file mode 100644 index dbffbcd..0000000 --- a/Chromium2/prototypes/chromium-recipe.lua +++ /dev/null @@ -1,429 +0,0 @@ -local util = require("data-util") - -data:extend({{ - type = "item-subgroup", - name = "chromium", - group = "intermediate-products", - order = "c" -}, -{ -type = "item-subgroup", -name = "frame-components", -group = "intermediate-products", -order = "f" -} -}) - -data:extend({ - { - type = "item", - name = "chromium-plate", - icon = "__Chromium__/graphics/icons/chromium-plate.png", - icon_size = 64, - subgroup = "chromium", - order = "b[chromium-plate]", - stack_size = util.get_stack_size(100) - }, - { - type = "recipe", - name = "chromium-plate", - category = "smelting", - order = "a[chromium-plate]", - icons = (mods["Krastorio2"] and - { - { icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64}, - { icon = "__Chromium__/graphics/icons/chromite-ore.png", icon_size = 64, scale=0.125, shift= {-8, -8}}, - } or { - { icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64}, - } -), - main_product = "chromium-plate", - enabled = false, - energy_required = 24, - ingredients = {{type="item", name="chromite-ore", amount=15}}, - results = { - {type="item", name = "chromium-plate", amount=5} - } - } -}) - -if mods["Krastorio2"] then - data:extend({ - { - type = "recipe", - name = "chromium-electrolysis", - icons = { - { icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64}, - { icon = "__Chromium__/graphics/icons/chromite-ore.png", icon_size = 64, scale=0.125, shift= {-8, -8}} - }, - category = "electrolysis", - order = "a[chromium-plate]", - energy_required = 25, - enabled = false, - always_show_made_in = true, - ingredients = { - {type = "fluid", name = "sulfuric-acid", amount = 25}, - {type = "fluid", name = "ammonia", amount = 50}, - {type = "item", name = "chromite-ore", amount = 20} - }, - results = { - {type="item", name = "chromium-plate", amount=10}, - {type="item", name = "iron-plate", amount=5} - }, - subgroup = "chromium", - } - }) -end - -local stainless_steel_ingredients = {{type="item", name="steel-plate", amount=8}, {type="item", name="chromium-plate", amount=2}} -if mods["IfNickel-Updated"] then - stainless_steel_ingredients = {{type="item", name="steel-plate", amount=8}, {type="item", name="chromium-plate", amount=1}, {type="item", name="nickel-plate", amount=1}} -end -local stainless_steel_category = "crafting" -if mods["bzfoundry"] then - stainless_steel_category = "founding" -end -data:extend({ - { - type = "item", - name = "stainless-steel-plate", - icon = "__Chromium__/graphics/icons/stainless-steel-plate.png", - icon_size = 64, - subgroup = "chromium", - order = "b[stainless-steel-plate]", - stack_size = util.get_stack_size(100), - }, - { - type = "recipe", - name = "stainless-steel-plate", - category = stainless_steel_category, - order = "d[stainless-steel-plate]", - enabled = false, - energy_required = 4, - ingredients = stainless_steel_ingredients, - results = {{type="item", name="stainless-steel-plate", amount=10}}, - } -}) - -local polyethylene_plastic_ingredients = { - {type = "fluid", name = "petroleum-gas", amount = 50}, - {type = "fluid", name = "steam", amount = 50}, - {type = "item", name = "chromium-plate", amount = 2} -} -if mods["bzgas"] and mods["bzsilicon"] then - polyethylene_plastic_ingredients = { - {type = "fluid", name = "gas", amount = 50}, - {type = "fluid", name = "steam", amount = 50}, - {type = "item", name = "chromium-plate", amount = 2}, - {type = "item", name = "silica", amount = 2} - } -end -data:extend({ - { - type = "recipe", - name = "polyethylene-plastic", - category = "chemistry", - order = "d[plastic-bar]", - enabled = false, - energy_required = 8, - ingredients = polyethylene_plastic_ingredients, - results = {{type="item", name="plastic-bar", amount=15}}, - } - }) - -local chromel_r_fabric_ingredients = {{type="item", name="copper-plate", amount=8}, {type="item", name="chromium-plate", amount=2}} -if mods["IfNickel-Updated"] then - chromel_r_fabric_ingredients = {{type="item", name="nickel-plate", amount=8}, {type="item", name="chromium-plate", amount=2}} -end -local chromel_r_fabric_crafting = "crafting" -if mods["248k-Redux"] then - chromel_r_fabric_crafting = "fi_fiberer_category" -end -data:extend({ - { - type = "item", - name = "chromel-r-fabric", - icon = "__Chromium__/graphics/icons/chromel-r-fabric.png", - icon_size = 64, - subgroup = "chromium", - order = "c[chromel-r-fabric]", - stack_size = util.get_stack_size(100), - }, - { - type = "recipe", - name = "chromel-r-fabric", - category = chromel_r_fabric_crafting, - order = "c[chromel-r-fabric]", - enabled = false, - energy_required = 5, - ingredients = chromel_r_fabric_ingredients, - results = {{type="item", name="chromel-r-fabric", amount=5}}, - } -}) - -local basic_vehicle_frame_ingredients = {{type="item", name="steel-plate", amount=5}, {type="item", name="copper-plate", amount=10}} -if mods["bzaluminum"] then - basic_vehicle_frame_ingredients = {{type="item", name="steel-plate", amount=5}, {type="item", name="alumina", amount=10}} -end -data:extend({ - { - type = "item", - name = "basic-vehicle-frame", - icon = "__Chromium__/graphics/icons/basic-vehicle-frame.png", - icon_size = 128, - subgroup = "intermediate-product", - order = "v[basic-vehicle-frame]", - stack_size = util.get_stack_size(100), - }, - { - type = "recipe", - name = "basic-vehicle-frame", - category = "crafting", - order = "v[basic-vehicle-frame]", - enabled = false, - energy_required = 4, - ingredients = basic_vehicle_frame_ingredients, - results = {{type="item", name="basic-vehicle-frame", amount=1}}, - } -}) - -local vehicle_frame_ingredients = {{type="item", name="basic-vehicle-frame", amount=1}, {type="item", name="stainless-steel-plate", amount=15}, {type="item", name="copper-plate", amount=20}} -if mods["bzaluminum"] then - vehicle_frame_ingredients = {{type="item", name="basic-vehicle-frame", amount=1}, {type="item", name="stainless-steel-plate", amount=15}, {type="item", name="aluminum-6061", amount=20}} -end -data:extend({ - { - type = "item", - name = "vehicle-frame", - icon = "__Chromium__/graphics/icons/vehicle-frame.png", - icon_size = 128, - subgroup = "intermediate-product", - order = "v[vehicle-frame]", - stack_size = util.get_stack_size(100), - }, - { - type = "recipe", - name = "vehicle-frame", - category = "crafting", - order = "v[vehicle-frame]", - enabled = false, - energy_required = 6, - ingredients = vehicle_frame_ingredients, - results = {{type="item", name="vehicle-frame", amount=1}}, - } -}) - -local inconel_ingredients = {{type="item", name="steel-plate", amount=5}, {type="item", name="chromium-plate", amount=3}, {type="item", name="iron-plate", amount=1}, mods["Tantalite"] and {type="item", name="niobium-plate", amount=1}} -if mods["IfNickel-Updated"] then - inconel_ingredients = {{type="item", name="nickel-plate", amount=5}, {type="item", name="chromium-plate", amount=3}, {type="item", name="iron-plate", amount=1}, mods["Tantalite"] and {type="item", name="niobium-plate", amount=1}} -end -local inconel_category = "crafting" -local inconel_subgroup = "intermediate-product" -if mods["bzfoundry"] then - inconel_category = "founding" - inconel_subgroup = "foundry-intermediate" -end -data:extend({ - { - type = "item", - name = "inconel-718", - icon = "__Chromium__/graphics/icons/inconel-718.png", - icon_size = 64, - group = "intermediate-products", - subgroup = inconel_subgroup, - order = "i", - stack_size = util.get_stack_size(100), - }, - { - type = "recipe", - name = "inconel-718", - category = inconel_category, - order = "i", - enabled = false, - energy_required = 30, - ingredients = inconel_ingredients, - results = {{type="item", name="inconel-718", amount=10}}, - } -}) - -local automation_core3_ingredients = {(data.raw.item["automation-core-2"] and {type="item", name="automation-core-2", amount=1}) or {type="item", name="steel-plate", amount=5}, {type="item", name="inconel-718", amount=10}} -local automation_core3_subgroup = "intermediate-product" -if (mods["BrassTacks-Updated"] and data.raw.item["advanced-gearbox"]) and (mods["IfNickel-Updated"] and data.raw.item["advanced-machining-tool"]) then --check for hardmode - automation_core3_ingredients = {data.raw.item["automation-core-2"] and {type="item", name="automation-core-2", amount=1}, {type="item", name="advanced-gearbox", amount=1}, {type="item", name="complex-joint", amount=2}, {type="item", name="advanced-machining-tool", amount=2}, {type="item", name="inconel-718", amount=4}} - automation_core3_subgroup = "articulated-components" -end - data:extend({ - { - type = "item", - name = "automation-core-3", - icon = "__Chromium__/graphics/icons/automation-core-3.png", - icon_size = 64, - group = "intermediate-product", - subgroup = automation_core3_subgroup, - order = "d", - stack_size = util.get_stack_size(50), - }, - { - type = "recipe", - name = "automation-core-3", - category = "crafting", - order = "d", - enabled = false, - energy_required = 5, - ingredients = automation_core3_ingredients, - results = {{type="item", name="automation-core-3", amount=1}}, - } - }) - if mods["space-exploration"] then - util.add_unlock("se-space-assembling","automation-core-3") - else - util.add_unlock("automation-3","automation-core-3") - end - util.add_productivity("automation-core-3") - -local turbines_blade_ingredients = {{type="item", name="inconel-718", amount=10}, mods["248k-Redux"] and {type="item", name="fi_materials_GFK", amount=5}, {type="item", name="air-bearing", amount=2}} -local turbines_blade_subgroup = "intermediate-product" -if mods["IfNickel-Updated"] then - turbines_blade_subgroup = "engine-components" -end -data:extend({ - { - type = "item", - name = "turbine-blades", - icon = "__Chromium__/graphics/icons/turbine-blades.png", - icon_size = 64, - group = "intermediate-products", - subgroup = turbines_blade_subgroup, - order = "t", - stack_size = util.get_stack_size(50), - }, - { - type = "recipe", - name = "turbine-blades", - category = "crafting", - order = "t", - enabled = false, - energy_required = 15, - ingredients = turbines_blade_ingredients, - results = {{type="item", name="turbine-blades", amount=1}}, - } -}) -if mods["space-exploration"] then - util.add_unlock("steam-turbine","turbine-blades") -else - util.add_unlock("nuclear-power","turbine-blades") -end -local hrld_structure_subgroup = "intermediate-product" -if mods["IfNickel-Updated"] then - hrld_structure_subgroup ="frame-components" -end -data:extend({ - { - type = "item", - name = "heat-resistant-low-density-structure", - icon = "__Chromium__/graphics/icons/heat-resistant-low-density-structure.png", - icon_size = 64, - group = "intermediate-products", - subgroup = hrld_structure_subgroup, - order = "h", - stack_size = util.get_stack_size(50), - }, - { - type = "recipe", - name = "heat-resistant-low-density-structure", - category = "crafting", - order = "h", - enabled = false, - energy_required = 8, - ingredients = {{type="item", name="inconel-718", amount=1}, {type="item", name="low-density-structure", amount=1}, mods["space-exploration"] and {type="item", name="se-heat-shielding", amount=1}}, - results = {{type="item", name="heat-resistant-low-density-structure", amount=2}}, - } -}) - -data:extend({ - { - type = "item", - name = "air-bearing", - icon = "__Chromium__/graphics/icons/air-bearing.png", - icon_size = 64, - group = "intermediate-products", - subgroup = "intermediate-product", - order = "h", - stack_size = util.get_stack_size(100), - }, - { - type = "recipe", - name = "air-bearing", - category = "crafting-with-fluid", - order = "h", - enabled = false, - energy_required = 5, - ingredients = {{type="item", name="stainless-steel-plate", amount=2},data.raw.item["cryogenic-seal"] and {type="item", name="cryogenic-seal", amount=1}, { type = "fluid", name = "lubricant", amount = 5 }}, - results = {{type="item", name="air-bearing", amount=1}}, - } -}) -if mods["Krastorio2"] then - util.add_unlock("steam-turbine","air-bearing") -else - util.add_unlock("nuclear-power","air-bearing") -end -local advanced_electric_motor_subgroup = "intermediate-product" -if mods["IfNickel-Updated"] then - advanced_electric_motor_subgroup = "engine-components" -end -data:extend({ - { - type = "item", - name = "advanced-electric-motor", - icon = "__Chromium__/graphics/icons/advanced-electric-motor.png", - icon_size = 64, - group = "intermediate-products", - subgroup = advanced_electric_motor_subgroup, - order = "g", - stack_size = util.get_stack_size(50), - }, - { - type = "recipe", - name = "advanced-electric-motor", - category = "crafting-with-fluid", - order = "g", - enabled = false, - energy_required = 12, - ingredients = {{type="item", name="inconel-718", amount=2}, {type="item", name="air-bearing", amount=1}, {type="item", name="electric-engine-unit", amount=2}, mods["ThemTharHills-Updated"] and {type="item", name="hv-power-regulator", amount=1}, { type = "fluid", name = "lubricant", amount = 40 }}, - results = {{type="item", name="advanced-electric-motor", amount=1}}, - } -}) -if mods["space-exploration"] then - util.add_unlock("se-space-assembling","advanced-electric-motor") - else - util.add_unlock("automation-3","advanced-electric-motor") -end - -if mods["space-exploration"] then - data:extend({ - { - type = "recipe", - name = "beryllium-heat-resistant-low-density-structure", - icons = { - { icon = "__Chromium__/graphics/icons/heat-resistant-low-density-structure.png", icon_size = 64}, - { icon = "__space-exploration-graphics__/graphics/icons/astronomic/planet-orbit.png", icon_size = 64, scale=0.25, shift= {-8, -8}} - }, - category = "space-crafting", - order = "h", - enabled = false, - energy_required = 10, - ingredients = {{type="item", name="inconel-718", amount=1}, {type="item", name="se-beryllium-plate", amount=1}, {type="item", name="se-heat-shielding", amount=1}}, - results = {{type="item", name="heat-resistant-low-density-structure", amount=4}}, - } - }) -end - -util.add_productivity("chromium-plate") -util.add_productivity("stainless-steel-plate") -util.add_productivity("polyethylene-plastic") -util.add_productivity("chromel-r-fabric") -util.add_productivity("basic-vehicle-frame") -util.add_productivity("vehicle-frame") -util.add_productivity("heat-resistant-low-density-structure") -util.add_productivity("advanced-electric-motor") -util.add_productivity("air-bearing") \ No newline at end of file diff --git a/Chromium2/prototypes/technology.lua b/Chromium2/prototypes/technology.lua deleted file mode 100644 index 2219f6d..0000000 --- a/Chromium2/prototypes/technology.lua +++ /dev/null @@ -1,309 +0,0 @@ -local util = require("data-util") - -if mods["Krastorio2"] then -data:extend( - { - { - type = "technology", - name = "chromium-processing", - icon_size = 64, - icon = "__Chromium__/graphics/icons/chromite-ore.png", - prerequisites = {"kr-advanced-chemistry"}, - effects = { - { - type = "unlock-recipe", - recipe = "chromium-electrolysis", - }, - }, - unit = - { - count = 150, - ingredients = - { - { "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - mods["Krastorio2"] and { "chemical-science-pack", 1 } - }, - time = 30 - } - }, - }) - if mods["IfNickel-Updated"] and data.raw.item["gimbaled-thruster"] then - util.add_prerequisite("gimbaled-thruster", "chromium-processing") - --not sure why gimbaled thrusters don't need rocketry - util.add_prerequisite("gimbaled-thruster", "rocketry") - end -end -local polyethylene_plastic_prerequisites = {"advanced-material-processing-2"} -if mods["Krastorio2"] then - polyethylene_plastic_prerequisites = {"chromium-processing"} -end -data:extend( -{ - { - type = "technology", - name = "polyethylene-plastic", - icons = { - { icon = "__Chromium__/graphics/technology/polyethylene.png", icon_size = 64} - }, - prerequisites = polyethylene_plastic_prerequisites, - effects = { - { - type = "unlock-recipe", - recipe = "polyethylene-plastic", - }, - }, - unit = - { - count = 200, - ingredients = - { - { "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 } - }, - time = 45 - } - }, -}) - -data:extend( - { - { - type = "technology", - name = "stainless-steel-processing", - icons = { - { icon = "__Chromium__/graphics/icons/stainless-steel-plate.png", icon_size = 64} - }, - prerequisites = { "advanced-material-processing"}, - effects = { - { - type = "unlock-recipe", - recipe = "stainless-steel-plate", - }, - { - type = "unlock-recipe", - recipe = "chromium-plate", - }, - { - type = "unlock-recipe", - recipe = "air-bearing", - } - }, - unit = - { - count = 75, - ingredients = - { - { "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - }, - time = 30 - } - }, - }) - local chrome_alloys_prerequisites = {"advanced-material-processing-2"} - if mods["Krastorio2"] then - chrome_alloys_prerequisites = {"chromium-processing"} - end - data:extend( - { - { - type = "technology", - name = "chrome-alloys", - icons = { - { icon = "__Chromium__/graphics/icons/inconel-718.png", icon_size = 64} - }, - prerequisites = chrome_alloys_prerequisites, - effects = { - { - type = "unlock-recipe", - recipe = "inconel-718", - }, - }, - unit = - { - count = 150, - ingredients = - { - { "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 } - }, - time = 30 - } - }, - }) - util.add_prerequisite("steam-turbine","chrome-alloys") - data:extend( - { - { - type = "technology", - name = "basic-vehicle-frame-production", - icons = { - { icon = "__Chromium__/graphics/icons/basic-vehicle-frame.png", icon_size = 128} - }, - prerequisites = {"steel-processing"}, - effects = { - { - type = "unlock-recipe", - recipe = "basic-vehicle-frame", - } - }, - unit = - { - count = 75, - ingredients = - { - { "automation-science-pack", 1 } - }, - time = 10 - } - }, - }) - util.add_prerequisite("automobilism", "basic-vehicle-frame-production") - - data:extend( - { - { - type = "technology", - name = "vehicle-frame-production", - icons = { - { icon = "__Chromium__/graphics/icons/vehicle-frame.png", icon_size = 128} - }, - prerequisites = { "stainless-steel-processing", "automobilism"}, - effects = { - { - type = "unlock-recipe", - recipe = "vehicle-frame", - } - }, - unit = - { - count = 175, - ingredients = - { - { "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 } - }, - time = 30 - } - }, - }) - util.add_prerequisite("tank", "vehicle-frame-production") - - local chromel_r_fabric_prerequisites = {"rocket-silo"} - local chromel_r_fabric_tech = {{ "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 }, - { "production-science-pack", 1 }} - - if mods["space-exploration"] then - chromel_r_fabric_prerequisites = {"se-rocket-science-pack"} - chromel_r_fabric_tech = {{ "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 }, - { "se-rocket-science-pack", 1 }} - end - - data:extend( - { - { - type = "technology", - name = "chromel-r-fabric", - icons = { - { icon = "__Chromium__/graphics/icons/chromel-r-fabric.png", icon_size = 64} - }, - prerequisites = chromel_r_fabric_prerequisites, - effects = { - { - type = "unlock-recipe", - recipe = "chromel-r-fabric", - } - }, - unit = - { - count = 200, - ingredients = chromel_r_fabric_tech, - time = 30 - } - }, - }) - if mods["space-exploration"] then - util.add_prerequisite("se-thruster-suit", "chromel-r-fabric") - end - if mods["IfNickel-Updated"] and data.raw.item["nitinol-plate"] then - util.add_prerequisite("nitinol-processing", "chromel-r-fabric") - end - local hr_low_density_structure_prerequisites = {"rocket-silo"} - local hr_low_density_structure_tech = {{ "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 }, - { "production-science-pack", 1 }} - - if mods["space-exploration"] then - hr_low_density_structure_prerequisites = {"se-rocket-science-pack"} - hr_low_density_structure_tech = {{ "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 }, - { "se-rocket-science-pack", 1 }} - end - - data:extend( - { - { - type = "technology", - name = "heat-resistant-low-density-structure", - icons = { - { icon = "__Chromium__/graphics/icons/heat-resistant-low-density-structure.png", icon_size = 64} - }, - prerequisites = hr_low_density_structure_prerequisites, - effects = { - { - type = "unlock-recipe", - recipe = "heat-resistant-low-density-structure", - } - }, - unit = - { - count = 150, - ingredients = hr_low_density_structure_tech, - time = 30 - } - }, - }) - if mods["space-exploration"] then - data:extend( - { - { - type = "technology", - name = "beryllium-heat-resistant-low-density-structure", - icons = { - { icon = "__Chromium__/graphics/icons/heat-resistant-low-density-structure.png", icon_size = 64}, - { icon = "__space-exploration-graphics__/graphics/icons/astronomic/planet-orbit.png", icon_size = 64, scale=0.25, shift= {-8, -8}} - }, - prerequisites = {"se-astronomic-science-pack-1"}, - effects = { - { - type = "unlock-recipe", - recipe = "beryllium-heat-resistant-low-density-structure", - } - }, - unit = - { - count = 100, - ingredients = - {{ "automation-science-pack", 1 }, - { "logistic-science-pack", 1 }, - { "chemical-science-pack", 1 }, - { "se-rocket-science-pack", 1 }, - { "space-science-pack", 1 }, - { "utility-science-pack", 1 }, - { "se-astronomic-science-pack-1", 1 } - }, - time = 45 - } - }, - }) - end \ No newline at end of file diff --git a/Chromium2/recipe-final-fix.lua b/Chromium2/recipe-final-fix.lua deleted file mode 100644 index 357674d..0000000 --- a/Chromium2/recipe-final-fix.lua +++ /dev/null @@ -1,43 +0,0 @@ -local util = require("data-util") - - -if mods["IfNickel-Updated"] and data.raw["nitinol-plate"] then - util.replace_ingredient("nitinol-plate", "nickel-plate", "chromel-r-fabric") - - if mods["space-exploration"] then - util.add_prerequisite("se-rocket-launch-pad", "nitinol-processing") - end -end - -if mods["BrassTacks-Updated"] then - util.remove_ingredient("steam-turbine", "bearing") -end - -if mods["Krastorio2"] then - util.remove_ingredient("assembling-machine-3", "steel-gear-wheel") - --not very nice but it works - if mods["BrassTacks-Updated"] and "advanced-gearbox" then - util.remove_ingredient("assembling-machine-3", "concrete") - util.replace_ingredient("assembling-machine-3", mods["BrassTacks-Updated"] and "complex-joint", "concrete", 8) - util.replace_ingredient("assembling-machine-3", mods["BrassTacks-Updated"] and "advanced-gearbox", "advanced-electric-motor", 4) - else - util.add_ingredient("assembling-machine-3", "advanced-electric-motor", 4) - end - - if mods["IfNickel-Updated"] and "advanced-machining-tool" then - util.replace_ingredient("assembling-machine-3", mods["IfNickel-Updated"] and "advanced-machining-tool", "automation-core-3", 2) - else - util.add_ingredient("assembling-machine-3", "automation-core-3", 2) - end - - if mods["ThemTharHills-Updated"] then - util.remove_ingredient("assembling-machine-3", "hv-power-regulator") - end - - if mods["space-exploration"] then - util.add_ingredient("se-space-assembling-machine", "automation-core-3", 2) - util.remove_ingredient("se-space-assembling-machine", mods["BrassTacks-Updated"] and "advanced-gearbox") - util.remove_ingredient("se-space-assembling-machine", mods["IfNickel-Updated"] and "advanced-machining-tool") - util.remove_ingredient("se-space-assembling-machine", mods["BrassTacks-Updated"] and "complex-joint") - end -end \ No newline at end of file diff --git a/Chromium2/recipe-modify.lua b/Chromium2/recipe-modify.lua deleted file mode 100644 index 36e7407..0000000 --- a/Chromium2/recipe-modify.lua +++ /dev/null @@ -1,163 +0,0 @@ -local util = require("data-util") - --- Main vanilla changes -util.replace_ingredient("car", "steel-plate", "basic-vehicle-frame",1) -util.replace_ingredient("tank", "steel-plate", "vehicle-frame",1) - -util.add_ingredient("steam-turbine", "turbine-blades", 4) -util.remove_ingredient("steam-turbine", "copper-plate") - -util.remove_ingredient("assembling-machine-3", "electric-engine-unit") - --- Mod changes -if mods["248k-Redux"] then - util.replace_ingredient("fi_low-density-structure_recipe", "copper-plate", "chromel-r-fabric", 10) - util.remove_ingredient("steam-turbine", "fi_materials_GFK") -end - -if mods["bzaluminum"] then - util.remove_ingredient("car", "aluminum-6061") - util.remove_ingredient("vehicle-warden", "aluminum-6061") - util.add_ingredient("vehicle-warden", "vehicle-frame", 1) - - util.remove_ingredient("tank", "alumina") -end - -if mods["RampantArsenal"] then - util.replace_ingredient("advanced-car-vehicle-rampant-arsenal", "copper-plate", "vehicle-frame",1) - util.add_prerequisite("rampant-arsenal-technology-cars-2", "vehicle-frame-production") -end - -if mods["aai-industry"] then - util.remove_ingredient("area-mining-drill", "electric-engine-unit") - util.remove_ingredient("area-mining-drill", "hv-power-regulator") - util.add_ingredient("area-mining-drill", "advanced-electric-motor", 4) -end - -if mods["space-exploration"] then - util.replace_ingredient("se-thruster-suit", "low-density-structure", "chromel-r-fabric") -end - -if mods["Indium"] then - util.replace_ingredient("cryogenic-seal", "steel-plate", "stainless-steel-plate") -end - -if mods["bobassembly"] then - util.add_ingredient("centrifuge-2", "air-bearing", 20) -end - -if mods["space-exploration"] then - util.add_product(mods["space-exploration"] and "se-scrap-recycling", {name="chromium-ore", amount=1, probability=0.05}) - - util.remove_ingredient("se-space-assembling-machine", "low-density-structure") - util.remove_ingredient("se-space-assembling-machine", "se-heat-shielding") - util.remove_ingredient("se-space-assembling-machine", "hv-power-regulator") - util.add_ingredient("se-space-assembling-machine", "heat-resistant-low-density-structure", 12) - util.replace_ingredient("se-space-assembling-machine", "electric-engine-unit", "advanced-electric-motor", 8) - - util.remove_ingredient("se-space-manufactory", "low-density-structure") - util.remove_ingredient("se-space-manufactory", "se-heat-shielding") - util.remove_ingredient("se-space-manufactory", "electric-engine-unit") - util.add_ingredient("se-space-manufactory", "heat-resistant-low-density-structure", 88) - util.add_ingredient("se-space-manufactory", "advanced-electric-motor", 32) - - util.remove_ingredient("se-space-biochemical-laboratory", "electric-engine-unit") - util.add_ingredient("se-space-biochemical-laboratory", "advanced-electric-motor", 32) - - util.remove_ingredient("se-space-thermodynamics-laboratory", "low-density-structure") - util.remove_ingredient("se-space-thermodynamics-laboratory", "se-heat-shielding") - util.add_ingredient("se-space-thermodynamics-laboratory", "heat-resistant-low-density-structure", 120) - - util.remove_ingredient("se-delivery-cannon-capsule", "low-density-structure") - util.remove_ingredient("se-delivery-cannon-capsule", "se-heat-shielding") - util.add_ingredient("se-delivery-cannon-capsule", "heat-resistant-low-density-structure", 2) - - util.remove_ingredient("se-cargo-rocket-section", "low-density-structure") - util.remove_ingredient("se-cargo-rocket-section", "se-heat-shielding") - util.add_ingredient("se-cargo-rocket-section", "heat-resistant-low-density-structure", 8) - - util.remove_ingredient("se-cargo-rocket-section-beryllium", "low-density-structure") - util.remove_ingredient("se-cargo-rocket-section-beryllium", "se-heat-shielding") - util.add_ingredient("se-cargo-rocket-section-beryllium", "heat-resistant-low-density-structure", 8) - - util.remove_ingredient("se-space-capsule", "low-density-structure") - util.remove_ingredient("se-space-capsule", "se-heat-shielding") - util.add_ingredient("se-space-capsule", "heat-resistant-low-density-structure", 200) - - util.remove_ingredient("se-space-capsule-refurbish", "low-density-structure") - util.remove_ingredient("se-space-capsule-refurbish", "se-heat-shielding") - util.add_ingredient("se-space-capsule-refurbish", "heat-resistant-low-density-structure", 75) - - util.remove_ingredient("se-spaceship-wall", "low-density-structure") - util.remove_ingredient("se-spaceship-wall", "se-heat-shielding") - util.add_ingredient("se-spaceship-wall", "heat-resistant-low-density-structure", 8) - - util.remove_ingredient("se-spaceship-antimatter-booster-tank", "low-density-structure") - util.remove_ingredient("se-spaceship-antimatter-booster-tank", "se-heat-shielding") - util.add_ingredient("se-spaceship-antimatter-booster-tank", "heat-resistant-low-density-structure", 100) - - util.remove_ingredient("se-space-platform-scaffold", "low-density-structure") - util.remove_ingredient("se-space-platform-scaffold", "se-heat-shielding") - util.add_ingredient("se-space-platform-scaffold", "heat-resistant-low-density-structure", 2) - - util.remove_ingredient("se-space-mirror", "low-density-structure") - util.remove_ingredient("se-space-mirror", "se-heat-shielding") - util.add_ingredient("se-space-mirror", "heat-resistant-low-density-structure", 2) - - util.remove_ingredient("fusion-reactor-equipment", "low-density-structure") - util.remove_ingredient("fusion-reactor-equipment", "se-heat-shielding") - util.add_ingredient("fusion-reactor-equipment", "heat-resistant-low-density-structure", 100) - - util.remove_ingredient("se-delivery-cannon-weapon-capsule", "low-density-structure") - util.remove_ingredient("se-delivery-cannon-weapon-capsule", "se-heat-shielding") - util.add_ingredient("se-delivery-cannon-weapon-capsule", "heat-resistant-low-density-structure", 20) - - util.remove_ingredient("se-space-telescope-xray", "low-density-structure") - util.remove_ingredient("se-space-telescope-xray", "se-heat-shielding") - util.add_ingredient("se-space-telescope-xray", "heat-resistant-low-density-structure", 65) - - util.remove_ingredient("se-space-telescope-gammaray", "low-density-structure") - util.remove_ingredient("se-space-telescope-gammaray", "se-heat-shielding") - util.add_ingredient("se-space-telescope-gammaray", "heat-resistant-low-density-structure", 65) - - util.remove_ingredient("se-space-plasma-generator", "low-density-structure") - util.remove_ingredient("se-space-plasma-generator", "se-heat-shielding") - util.add_ingredient("se-space-plasma-generator", "heat-resistant-low-density-structure", 80) - - util.remove_ingredient("se-space-particle-collider", "low-density-structure") - util.remove_ingredient("se-space-particle-collider", "se-heat-shielding") - util.add_ingredient("se-space-particle-collider", "heat-resistant-low-density-structure", 140) - - util.remove_ingredient("se-space-particle-accelerator", "low-density-structure") - util.remove_ingredient("se-space-particle-accelerator", "se-heat-shielding") - util.add_ingredient("se-space-particle-accelerator", "heat-resistant-low-density-structure", 80) - - util.remove_ingredient("se-antimatter-reactor", "low-density-structure") - util.remove_ingredient("se-antimatter-reactor", "se-heat-shielding") - util.add_ingredient("se-antimatter-reactor", "heat-resistant-low-density-structure", 1000) - - util.remove_ingredient("se-space-radiation-laboratory", "low-density-structure") - util.remove_ingredient("se-space-radiation-laboratory", "se-heat-shielding") - util.add_ingredient("se-space-radiation-laboratory", "heat-resistant-low-density-structure", 80) - - util.remove_ingredient("se-space-pipe-to-ground", "lead-plate") - util.remove_ingredient("se-space-pipe-to-ground", "tin-plate") - util.add_ingredient("se-space-pipe-to-ground", "indium-solder", 1) - - util.remove_ingredient("se-space-radiator", "steel-plate") - util.remove_ingredient("se-space-radiator", "cuw") - util.add_ingredient("se-space-radiator", "heat-resistant-low-density-structure", 20) - - util.add_ingredient("se-corrosion-resistance-data", "stainless-steel-plate", 1) - util.set_ingredient("se-corrosion-resistance-data", "se-empty-data", 2) - util.set_product_amount("se-corrosion-resistance-data", "se-corrosion-resistance-data", 2) - - util.add_ingredient("se-friction-data", "air-bearing", 1) - util.set_ingredient("se-friction-data", "se-empty-data", 2) - util.set_product_amount("se-friction-data", "se-friction-data", 2) - - util.add_ingredient("se-hot-thermodynamics-data","chromel-r-fabric", 1) - - util.add_ingredient("se-heavy-composite","inconel-718", 6) - util.set_ingredient("se-heavy-composite", "se-iridium-plate", 10) -end \ No newline at end of file diff --git a/Chromium2/thumbnail.png b/Chromium2/thumbnail.png deleted file mode 100644 index 79ff703..0000000 Binary files a/Chromium2/thumbnail.png and /dev/null differ