Restructure repository
20
bzaluminum2/LICENSE.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2021 Brevven
|
||||
|
||||
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.
|
||||
134
bzaluminum2/aluminum-burner-phase.lua
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if not mods.Krastorio2 and not mods["aai-industry"] then
|
||||
util.replace_ingredient("offshore-pump", "electronic-circuit", "aluminum-cable")
|
||||
util.replace_ingredient("lab", "electronic-circuit", "aluminum-cable")
|
||||
util.replace_ingredient("electric-mining-drill", "electronic-circuit", "aluminum-cable")
|
||||
util.replace_ingredient("assembling-machine-1", "electronic-circuit", "aluminum-cable")
|
||||
util.replace_ingredient("radar", "electronic-circuit", "aluminum-cable")
|
||||
util.replace_ingredient("splitter", "electronic-circuit", "aluminum-cable")
|
||||
|
||||
-- Keep repair pack raw ingredients close to the same
|
||||
util.remove_ingredient("repair-pack", "electronic-circuit")
|
||||
util.remove_ingredient("repair-pack", "copper-cable")
|
||||
util.add_ingredient("repair-pack", "aluminum-cable", 3)
|
||||
util.set_ingredient("repair-pack", "iron-gear-wheel", 3)
|
||||
|
||||
util.add_effect("electronics", { type = "unlock-recipe", recipe = "electronic-circuit" })
|
||||
util.add_effect("electronics", { type = "unlock-recipe", recipe = "inserter" })
|
||||
util.add_effect("electronics", { type = "unlock-recipe", recipe = "long-handed-inserter" })
|
||||
util.remove_recipe_effect("automation", "long-handed-inserter")
|
||||
util.set_enabled("electronic-circuit", false)
|
||||
util.set_enabled("inserter", false)
|
||||
util.add_prerequisite("logistic-science-pack", "electronics")
|
||||
end
|
||||
|
||||
util.replace_ingredient("lab", "copper-plate", "aluminum-plate")
|
||||
util.replace_ingredient("lab", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("lab", "basic-circuit-board", "aluminum-cable") -- Bob's
|
||||
|
||||
if mods.Krastorio2 then
|
||||
util.replace_ingredient("kr-automation-core", "copper-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kr-wind-turbine", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("kr-crusher", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("kr-sentinel", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("repair-pack", "copper-plate", "aluminum-plate")
|
||||
|
||||
util.remove_ingredient("kr-basic-tech-card", "copper-cable")
|
||||
util.add_ingredient("kr-basic-tech-card", "aluminum-cable", 1)
|
||||
|
||||
util.add_prerequisite("automation-science-pack", "copper-processing")
|
||||
if mods.bobassembly then
|
||||
util.set_prerequisite("basic-automation", {"kr-automation-core"})
|
||||
util.set_tech_recipe("basic-automation", {{"kr-basic-tech-card", 1}})
|
||||
end
|
||||
util.remove_prerequisite("automation", "smelting") -- Bitumen mod
|
||||
|
||||
-- For warptorio2 expansion with K2
|
||||
util.remove_prerequisite("laboratory", "automation-science-pack")
|
||||
util.set_tech_recipe("laboratory", {{"kr-basic-tech-card", 1}})
|
||||
end
|
||||
|
||||
|
||||
if mods.bobpower then
|
||||
util.remove_prerequisite("automation-science-pack", "copper-processing")
|
||||
end
|
||||
|
||||
if mods["aai-industry"] then
|
||||
util.replace_ingredient("burner-assembling-machine", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("small-iron-electric-pole", "copper-cable", "aluminum-cable")
|
||||
util.set_ingredient("small-iron-electric-pole", "aluminum-cable", 1)
|
||||
util.remove_ingredient("electric-motor", "copper-cable")
|
||||
util.add_ingredient("electric-motor", "aluminum-cable", 1)
|
||||
util.replace_ingredient("electric-motor", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("motor", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("repair-pack", "copper-plate", "aluminum-plate")
|
||||
util.replace_ingredient("burner-lab", "copper-plate", "aluminum-plate")
|
||||
end
|
||||
|
||||
if mods["aai-industry"] and mods.Krastorio2 then
|
||||
util.remove_prerequisite("copper-processing", "automation")
|
||||
util.add_prerequisite("copper-processing", "electricity")
|
||||
|
||||
util.remove_prerequisite("logistics", "automation-science-pack")
|
||||
util.remove_prerequisite("fuel-processing", "automation-science-pack")
|
||||
util.remove_prerequisite("electricity", "automation-science-pack")
|
||||
util.remove_prerequisite("kr-sentinel", "automation-science-pack")
|
||||
util.set_tech_recipe("logistics", {{"kr-basic-tech-card", 1}})
|
||||
util.set_tech_recipe("fuel-processing", {{"kr-basic-tech-card", 1}})
|
||||
util.set_tech_recipe("electricity", {{"kr-basic-tech-card", 1}})
|
||||
util.set_tech_recipe("kr-sentinel", {{"kr-basic-tech-card", 1}})
|
||||
util.set_tech_recipe("kr-basic-fluid-handling", {{"kr-basic-tech-card", 1}})
|
||||
|
||||
util.add_prerequisite("deadlock-stacking-1", "automation-science-pack")
|
||||
util.add_prerequisite("kr-radar", "automation-science-pack")
|
||||
util.add_prerequisite("automation", "automation-science-pack")
|
||||
util.add_prerequisite("kr-steam-engine", "automation-science-pack")
|
||||
|
||||
-- TODO basic fluid handling and grpahite
|
||||
|
||||
end
|
||||
|
||||
util.add_prerequisite("nanobots", "electronics")
|
||||
util.add_unlock_force("electronics", "RTThrower-inserter-Recipe")
|
||||
|
||||
util.remove_prerequisite("smelting", "automation-science-pack") -- Bitumen mod
|
||||
|
||||
-- Industrial Display Plates
|
||||
util.add_unlock_force("copper-processing", "copper-display-small")
|
||||
util.add_unlock_force("copper-processing", "copper-display-medium")
|
||||
util.add_unlock_force("copper-processing", "copper-display")
|
||||
|
||||
util.replace_ingredient("submachine-gun", "copper-plate", "aluminum-plate")
|
||||
util.replace_ingredient("pistol", "copper-plate", "aluminum-plate")
|
||||
util.replace_ingredient("shotgun", "copper-plate", "aluminum-plate")
|
||||
util.replace_ingredient("shotgun-shell", "copper-plate", "stone")
|
||||
util.replace_ingredient("automation-science-pack", "copper-plate", "aluminum-plate")
|
||||
util.replace_ingredient("small-electric-pole", "copper-cable", "aluminum-cable")
|
||||
util.set_ingredient("small-electric-pole", "aluminum-cable", 1)
|
||||
util.replace_ingredient("gun-turret", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("gun-turret", "copper-plate", "aluminum-plate")
|
||||
|
||||
util.set_enabled("copper-plate", false)
|
||||
util.set_enabled("copper-cable", false)
|
||||
util.add_prerequisite("electronics", "copper-processing")
|
||||
util.add_prerequisite("foundry", "copper-processing")
|
||||
util.add_prerequisite("heavy-armor", "copper-processing")
|
||||
|
||||
util.set_enabled("deadlock-copper-lamp", false)
|
||||
util.add_effect("copper-processing", { type = "unlock-recipe", recipe = "deadlock-copper-lamp" })
|
||||
|
||||
require("compatibility/textplates")
|
||||
|
||||
-- All customizations or custom unlocks prior to this block
|
||||
util.add_unlock_force("electronics", "electronic-circuit")
|
||||
-- Disabled for now because replace_ingredients_prior_to has an infinite recursion
|
||||
--util.replace_ingredients_prior_to("electronics", "electronic-circuit", "aluminum-cable")
|
||||
--util.replace_ingredients_prior_to("copper-processing", "copper-cable", "aluminum-cable")
|
||||
--util.replace_ingredients_prior_to("copper-processing", "copper-plate", "aluminum-plate")
|
||||
-- Any post-fixes (eg aluminum back to copper) after this block
|
||||
|
||||
util.remove_prerequisite("copper-processing", "automation")
|
||||
|
||||
|
||||
-- End of file
|
||||
120
bzaluminum2/aluminum-enriched.lua
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
-- Enriched Lead for Krastorio2
|
||||
local util = require("data-util");
|
||||
|
||||
if mods["Krastorio2"] then
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "item",
|
||||
name = "enriched-aluminum",
|
||||
icon_size = 128,
|
||||
icon = "__bzaluminum2__/graphics/icons/enriched-aluminum.png",
|
||||
pictures = {
|
||||
{filename="__bzaluminum2__/graphics/icons/enriched-aluminum.png", size=128, scale=0.25},
|
||||
{filename="__bzaluminum2__/graphics/icons/enriched-aluminum-1.png", size=128, scale=0.25},
|
||||
{filename="__bzaluminum2__/graphics/icons/enriched-aluminum-2.png", size=128, scale=0.25},
|
||||
{filename="__bzaluminum2__/graphics/icons/enriched-aluminum-3.png", size=128, scale=0.25},
|
||||
},
|
||||
subgroup = "raw-material",
|
||||
order = "e05-a[enriched-ores]-a1[enriched-aluminum]",
|
||||
stack_size = 100
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "enriched-aluminum",
|
||||
main_product = "enriched-aluminum",
|
||||
icon = "__bzaluminum2__/graphics/icons/enriched-aluminum.png",
|
||||
icon_size = 128,
|
||||
category = "chemistry",
|
||||
energy_required = 3,
|
||||
enabled = false,
|
||||
always_show_made_in = true,
|
||||
always_show_products = true,
|
||||
allow_productivity = true,
|
||||
subgroup = "raw-material",
|
||||
ingredients =
|
||||
{
|
||||
{type = "fluid", name = "sulfuric-acid", amount = 3},
|
||||
{type = "fluid", name = "water", amount = 25, catalyst_amount = 25},
|
||||
{type = "item", name = "aluminum-ore", amount = 9}
|
||||
},
|
||||
results =
|
||||
{
|
||||
{type = "item", name = "enriched-aluminum", amount = 6},
|
||||
{type = "fluid", name = "kr-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-aluminum]"
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "enriched-alumina",
|
||||
icons =
|
||||
{
|
||||
{ icon = "__bzaluminum2__/graphics/icons/alumina.png", icon_size = 128 },
|
||||
{ icon = "__bzaluminum2__/graphics/icons/enriched-aluminum.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
},
|
||||
category = "smelting",
|
||||
energy_required = 16,
|
||||
enabled = false,
|
||||
always_show_made_in = true,
|
||||
always_show_products = true,
|
||||
allow_productivity = true,
|
||||
ingredients = { {type="item", name="enriched-aluminum", amount=5} },
|
||||
results = { {type="item", name="alumina", amount=5} },
|
||||
order = "b[alumina]-b[enriched-alumina]",
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "dirty-water-filtration-aluminum",
|
||||
category = "kr-fluid-filtration",
|
||||
icons =
|
||||
{
|
||||
{
|
||||
icon = data.raw.fluid["kr-dirty-water"].icon,
|
||||
icon_size = data.raw.fluid["kr-dirty-water"].icon_size
|
||||
},
|
||||
{
|
||||
icon = data.raw.item["aluminum-ore"].icon,
|
||||
icon_size = data.raw.item["aluminum-ore"].icon_size,
|
||||
scale = 0.20,
|
||||
shift = {0, 4}
|
||||
}
|
||||
},
|
||||
icon_size = data.raw.fluid["kr-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 = "kr-dirty-water", amount = 100, catalyst_amount = 100},
|
||||
},
|
||||
results =
|
||||
{
|
||||
{type = "fluid", name = "water", amount = 90, catalyst_amount = 90},
|
||||
mods.bzsilicon and util.me.byproduct() and {type = "item", name = "silica", amount = 1} or
|
||||
{type = "item", name = "stone", probability = 0.40, amount = 1},
|
||||
{type = "item", name = "aluminum-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}
|
||||
},
|
||||
subgroup = "raw-material",
|
||||
order = "w013[dirty-water-filtration-aluminum]"
|
||||
}
|
||||
}
|
||||
)
|
||||
util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "enriched-aluminum" })
|
||||
util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "enriched-alumina" })
|
||||
util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "dirty-water-filtration-aluminum" })
|
||||
end
|
||||
68
bzaluminum2/aluminum-matter.lua
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
-- Matter recipes for Krastorio2
|
||||
if mods["Krastorio2"] then
|
||||
local util = require("data-util");
|
||||
local matter = require("__Krastorio2__/prototypes/libraries/matter")
|
||||
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "technology",
|
||||
name = "aluminum-matter-processing",
|
||||
icons =
|
||||
{
|
||||
{
|
||||
icon = util.k2assets().."/technologies/matter-coal.png",
|
||||
icon_size = 256,
|
||||
},
|
||||
{
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png",
|
||||
icon_size = 64,
|
||||
scale = 1.4,
|
||||
}
|
||||
},
|
||||
prerequisites = {"kr-matter-processing"},
|
||||
unit =
|
||||
{
|
||||
count = 350,
|
||||
ingredients =
|
||||
{
|
||||
{"production-science-pack", 1},
|
||||
{"utility-science-pack", 1},
|
||||
{"kr-matter-tech-card", 1}
|
||||
},
|
||||
time = 45
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
local aluminum_ore_matter =
|
||||
{
|
||||
material = { type = "item", name = "aluminum-ore", amount = 10 },
|
||||
matter_count = 5,
|
||||
energy_required = 1,
|
||||
need_stabilizer = false,
|
||||
unlocked_by_technology = "aluminum-matter-processing"
|
||||
}
|
||||
matter.make_recipes(aluminum_ore_matter)
|
||||
|
||||
local alumina_matter =
|
||||
{
|
||||
material = { type = "item", name = "alumina", amount = 10 },
|
||||
matter_count = 7.5,
|
||||
energy_required = 2,
|
||||
only_deconversion = true,
|
||||
need_stabilizer = true,
|
||||
unlocked_by_technology = "aluminum-matter-processing"
|
||||
}
|
||||
matter.make_recipes(alumina_matter)
|
||||
local aluminum_plate_matter =
|
||||
{
|
||||
material = { type = "item", name = "aluminum-plate", amount = 10 },
|
||||
matter_count = 10,
|
||||
energy_required = 3,
|
||||
only_deconversion = true,
|
||||
need_stabilizer = true,
|
||||
unlocked_by_technology = "aluminum-matter-processing"
|
||||
}
|
||||
matter.make_recipes(aluminum_plate_matter)
|
||||
end
|
||||
76
bzaluminum2/aluminum-ore.lua
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
local resource_autoplace = require('resource-autoplace');
|
||||
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["aluminum-ore"] = {}
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["aluminum-ore"] = {}
|
||||
resource_autoplace.initialize_patch_set("aluminum-ore", true)
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "autoplace-control",
|
||||
category = "resource",
|
||||
name = "aluminum-ore",
|
||||
richness = true,
|
||||
order = "b-e"
|
||||
},
|
||||
{
|
||||
type = "resource",
|
||||
icon_size = 64,
|
||||
icon_mipmaps = 3,
|
||||
name = "aluminum-ore",
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png",
|
||||
flags = { "placeable-neutral" },
|
||||
order = "a-b-a",
|
||||
map_color = { r = 1.00, g = 0.80, b = 0.50 },
|
||||
tree_removal_probability = 0.7,
|
||||
tree_removal_max_distance = 32 * 32,
|
||||
minable =
|
||||
{
|
||||
hardness = 1,
|
||||
mining_particle = mods.bztitanium and "titanium-ore-particle" or "iron-ore-particle",
|
||||
mining_time = 1,
|
||||
result = "aluminum-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 = "aluminum-ore",
|
||||
order = "b-z",
|
||||
base_density = 6,
|
||||
base_spots_per_km2 = 1,
|
||||
has_starting_area_placement = true,
|
||||
regular_rq_factor_multiplier = 1.2,
|
||||
starting_rq_factor_multiplier = 1.7,
|
||||
},
|
||||
|
||||
stage_counts = { 15000, 9500, 5500, 2900, 1300, 400, 150, 80 },
|
||||
stages =
|
||||
{
|
||||
sheet =
|
||||
{
|
||||
filename = "__bzaluminum2__/graphics/entity/ores/hr-aluminum-ore.png",
|
||||
priority = "extra-high",
|
||||
size = 128,
|
||||
frame_count = 8,
|
||||
variation_count = 8,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = "aluminum-ore",
|
||||
icon_size = 64,
|
||||
icon_mipmaps = 3,
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png",
|
||||
pictures = {
|
||||
{ filename = "__bzaluminum2__/graphics/icons/aluminum-ore.png", size = 64, scale = 0.5 },
|
||||
{ filename = "__bzaluminum2__/graphics/icons/aluminum-ore-2.png", size = 64, scale = 0.5 },
|
||||
{ filename = "__bzaluminum2__/graphics/icons/aluminum-ore-3.png", size = 64, scale = 0.5 },
|
||||
{ filename = "__bzaluminum2__/graphics/icons/aluminum-ore-4.png", size = 64, scale = 0.5 },
|
||||
},
|
||||
subgroup = "raw-resource",
|
||||
order = "t-c-a",
|
||||
stack_size = 50
|
||||
},
|
||||
})
|
||||
16
bzaluminum2/aluminum-recipe-final-rrr.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods["Rich-Rocks-Requiem"] then
|
||||
if data.raw.recipe["rrr-stone-processing"] then
|
||||
table.insert(data.raw.recipe["rrr-stone-processing"].results,
|
||||
{name = "aluminum-ore", probability = 0.25, amount = 1}
|
||||
)
|
||||
end
|
||||
|
||||
if data.raw.recipe["rrr-raw-ores-processing"] then
|
||||
table.insert(data.raw.recipe["rrr-raw-ores-processing"].results,
|
||||
{name = "aluminum-ore", probability = 0.75, amount = 10}
|
||||
)
|
||||
end
|
||||
|
||||
end
|
||||
58
bzaluminum2/aluminum-recipe-final-stacking.lua
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
-- Deadlock stacking recipes
|
||||
|
||||
local util = require("data-util");
|
||||
|
||||
if deadlock then
|
||||
deadlock.add_stack("aluminum-ore", "__bzaluminum2__/graphics/icons/stacked/aluminum-ore-stacked.png", "deadlock-stacking-1", 64)
|
||||
deadlock.add_stack("aluminum-plate", "__bzaluminum2__/graphics/icons/stacked/aluminum-plate-stacked.png", "deadlock-stacking-1", 128)
|
||||
deadlock.add_stack("alumina", "__bzaluminum2__/graphics/icons/stacked/alumina-stacked.png" , "deadlock-stacking-1", 128)
|
||||
deadlock.add_stack("aluminum-cable", nil, "deadlock-stacking-1", 128)
|
||||
deadlock.add_stack("acsr-cable", "__bzaluminum2__/graphics/icons/stacked/acsr-cable-stacked.png" , "deadlock-stacking-2", 128)
|
||||
deadlock.add_stack("spark-plug", "__bzaluminum2__/graphics/icons/stacked/spark-plug-stacked.png" , "deadlock-stacking-2", 128)
|
||||
deadlock.add_stack("aluminum-6061", "__bzaluminum2__/graphics/icons/stacked/aluminum-6061-stacked.png" , "deadlock-stacking-2", 128)
|
||||
deadlock.add_stack("aluminum-2219", "__bzaluminum2__/graphics/icons/stacked/aluminum-2219-stacked.png" , "deadlock-stacking-3", 128)
|
||||
if mods.bztitanium then
|
||||
deadlock.add_stack("ti-sapphire", "__bzaluminum2__/graphics/icons/stacked/ti-sapphire-stacked.png" , "deadlock-stacking-3", 128)
|
||||
end
|
||||
|
||||
if mods.Krastorio2 then
|
||||
deadlock.add_stack("enriched-aluminum", "__bzaluminum2__/graphics/icons/stacked/enriched-aluminum-ore-stacked.png" , "deadlock-stacking-3", 128)
|
||||
|
||||
util.set_icons("deadlock-stacks-stack-automation-core", {
|
||||
{icon="__bzaluminum2__/graphics/icons/stacked/automation-core-stacked.png", icon_size=64},
|
||||
{icon="__deadlock-beltboxes-loaders__/graphics/icons/square/arrow-d-64.png", icon_size=64, scale=.25},
|
||||
})
|
||||
util.set_icons("deadlock-stacks-unstack-automation-core", {
|
||||
{icon="__bzaluminum2__/graphics/icons/stacked/automation-core-stacked.png", icon_size=64},
|
||||
{icon="__deadlock-beltboxes-loaders__/graphics/icons/square/arrow-u-64.png", icon_size=64, scale=.25},
|
||||
})
|
||||
util.set_item_icons("deadlock-stack-automation-core", {
|
||||
{icon="__bzaluminum2__/graphics/icons/stacked/automation-core-stacked.png", icon_size=64},
|
||||
})
|
||||
end
|
||||
if mods["space-exploration"] then
|
||||
deadlock.add_stack("aluminum-ingot", nil, "deadlock-stacking-2", nil)
|
||||
end
|
||||
end
|
||||
|
||||
-- Deadlock crating recipes
|
||||
if deadlock_crating then
|
||||
deadlock_crating.add_crate("aluminum-ore", "deadlock-crating-1")
|
||||
deadlock_crating.add_crate("aluminum-plate", "deadlock-crating-1")
|
||||
deadlock_crating.add_crate("alumina", "deadlock-crating-1")
|
||||
deadlock_crating.add_crate("aluminum-cable", "deadlock-crating-1")
|
||||
deadlock_crating.add_crate("acsr-cable", "deadlock-crating-2")
|
||||
deadlock_crating.add_crate("spark-plug", "deadlock-crating-2")
|
||||
deadlock_crating.add_crate("aluminum-6061", "deadlock-crating-2")
|
||||
deadlock_crating.add_crate("aluminum-2219", "deadlock-crating-3")
|
||||
if mods.bztitanium then
|
||||
deadlock_crating.add_crate("ti-sapphire", "deadlock-crating-3")
|
||||
end
|
||||
if mods.Krastorio2 then
|
||||
deadlock_crating.add_crate("enriched-aluminum", "deadlock-crating-2")
|
||||
end
|
||||
if mods["space-exploration"] then
|
||||
deadlock_crating.add_crate("aluminum-ingot", "deadlock-crating-2")
|
||||
end
|
||||
end
|
||||
|
||||
9
bzaluminum2/aluminum-recipe-modules.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Enable prod modules for some recipes
|
||||
-- Recipes with very specific ratios are deliberately excluded
|
||||
local util = require("data-util")
|
||||
|
||||
for i, recipe in pairs(util.me.recipes) do
|
||||
if data.raw.recipe[recipe] then
|
||||
data.raw.recipe[recipe].allow_productivity = true
|
||||
end
|
||||
end
|
||||
128
bzaluminum2/aluminum-recipe-se.lua
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
-- Additional recipes if Space Exploration mod is enabled
|
||||
local util = require("data-util");
|
||||
|
||||
if mods["space-exploration"] then
|
||||
se_delivery_cannon_recipes["aluminum-ore"] = {name= "aluminum-ore"}
|
||||
se_delivery_cannon_recipes["alumina"] = {name= "alumina"}
|
||||
se_delivery_cannon_recipes["aluminum-plate"] = {name= "aluminum-plate"}
|
||||
se_delivery_cannon_recipes["aluminum-2219"] = {name= "aluminum-2219"}
|
||||
se_delivery_cannon_recipes["aluminum-6061"] = {name= "aluminum-6061"}
|
||||
util.se_landfill({ore="aluminum-ore"})
|
||||
|
||||
-- Space Exploration requires more aluminum than copper
|
||||
se_resources["aluminum-ore"] = {
|
||||
order = "b-z",
|
||||
has_starting_area_placement = true,
|
||||
base_density = 12,
|
||||
starting_rq_factor_multiplier = 1.5,
|
||||
}
|
||||
|
||||
se_resources["copper-ore"] = {
|
||||
order = "c-b",
|
||||
has_starting_area_placement = true,
|
||||
base_density = 9,
|
||||
starting_rq_factor_multiplier = 1.5,
|
||||
}
|
||||
|
||||
util.se_matter({ore="aluminum-ore", energy_required=1, quant_out=10, stream_out=60})
|
||||
data:extend({
|
||||
{
|
||||
type = "item-subgroup",
|
||||
name = "aluminum",
|
||||
group = "resources",
|
||||
order = "a-h-z-a",
|
||||
}
|
||||
})
|
||||
util.set_item_subgroup("aluminum-ore", "aluminum")
|
||||
util.set_item_subgroup("alumina", "aluminum")
|
||||
util.set_item_subgroup("aluminum-plate", "aluminum")
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "aluminum-ingot",
|
||||
icons = {{icon = "__bzaluminum2__/graphics/icons/aluminum-ingot.png", icon_size = 128}},
|
||||
order = "b-b",
|
||||
stack_size = 50,
|
||||
subgroup = "aluminum",
|
||||
},
|
||||
{
|
||||
type = "fluid",
|
||||
name = "molten-aluminum",
|
||||
default_temperature = 660,
|
||||
max_temperature = 660,
|
||||
base_color = {r=230, g=230, b=220},
|
||||
flow_color = {r=230, g=230, b=220},
|
||||
icons = {{icon = "__bzaluminum2__/graphics/icons/molten-aluminum.png", icon_size = 128}},
|
||||
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-aluminum",
|
||||
main_product = "molten-aluminum",
|
||||
subgroup = "aluminum",
|
||||
results = {
|
||||
{type = "fluid", name = "molten-aluminum", amount = mods.Krastorio2 and 750 or 900},
|
||||
},
|
||||
energy_required = 60,
|
||||
ingredients = {
|
||||
{ type = "item", name = "alumina", 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 = "aluminum-ingot",
|
||||
category = "casting",
|
||||
results = {{type="item", name="aluminum-ingot", amount=1}},
|
||||
energy_required = 25,
|
||||
ingredients = {
|
||||
{type = "fluid", name = "molten-aluminum", amount = 250},
|
||||
},
|
||||
enabled = false,
|
||||
always_show_made_in = true,
|
||||
allow_as_intermediate = false,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
category = "crafting",
|
||||
name = "aluminum-ingot-to-plate",
|
||||
|
||||
icons = {
|
||||
{icon = "__bzaluminum2__/graphics/icons/aluminum-plate.png", icon_size = 128, icon_mipmaps = 3},
|
||||
{icon = "__bzaluminum2__/graphics/icons/aluminum-ingot.png", icon_size = 128, scale = 0.125, shift = {-8, -8}},
|
||||
},
|
||||
results = {
|
||||
{ type = "item", name = "aluminum-plate", amount = 10},
|
||||
},
|
||||
energy_required = 5,
|
||||
ingredients = {
|
||||
{ type = "item", name = "aluminum-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-aluminum"})
|
||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot"})
|
||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot-to-plate"})
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-aluminum"})
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot"})
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot-to-plate"})
|
||||
if mods["Krastorio2"] then
|
||||
se_delivery_cannon_recipes["enriched-aluminum"] = {name= "enriched-aluminum"}
|
||||
util.set_item_subgroup("enriched-aluminum", "aluminum")
|
||||
end
|
||||
se_delivery_cannon_recipes["aluminum-ingot"] = {name= "aluminum-ingot"}
|
||||
|
||||
end
|
||||
11
bzaluminum2/aluminum-recipe-updates-jetpack.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
local util = require("data-util")
|
||||
|
||||
if mods.jetpack then
|
||||
util.replace_ingredient("jetpack-1", "steel-plate", "aluminum-plate")
|
||||
util.replace_ingredient("jetpack-1", "titanium-plate", "aluminum-plate")
|
||||
util.remove_ingredient("jetpack-1", "titanium-plate")
|
||||
util.remove_prerequisite("jetpack-1", "solar-panel-equipment")
|
||||
util.add_ingredient("jetpack-2", "aluminum-2219", 20)
|
||||
util.add_prerequisite("jetpack-2", "aerospace-alloys")
|
||||
end
|
||||
|
||||
31
bzaluminum2/aluminum-recipe-updates-lds.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
local util = require("data-util");
|
||||
-- LDS
|
||||
util.add_prerequisite("low-density-structure", "aerospace-alloys")
|
||||
util.remove_ingredient("low-density-structure", "copper-plate")
|
||||
util.remove_ingredient("low-density-structure", "steel-plate")
|
||||
util.remove_ingredient("low-density-structure", "titanium-plate")
|
||||
local amount = 20
|
||||
if mods.bzzirconium then
|
||||
if mods.Krastorio2 and data.raw.item["cermet"] then
|
||||
amount = 6
|
||||
else
|
||||
amount = 10
|
||||
end
|
||||
else
|
||||
if mods.Krastorio2 then
|
||||
amount = 14
|
||||
end
|
||||
end
|
||||
util.add_ingredient("low-density-structure", "aluminum-2219", amount)
|
||||
|
||||
if mods["space-exploration"] then
|
||||
util.remove_ingredient("se-low-density-structure-beryllium", "copper-plate")
|
||||
util.remove_ingredient("se-low-density-structure-beryllium", "steel-plate")
|
||||
util.remove_ingredient("se-low-density-structure-beryllium", "titanium-plate")
|
||||
if mods.bzzirconium then
|
||||
amount = 2
|
||||
else
|
||||
amount = 10
|
||||
end
|
||||
util.add_ingredient("se-low-density-structure-beryllium", "aluminum-2219", amount)
|
||||
end
|
||||
44
bzaluminum2/aluminum-recipe-updates-power.lua
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
local util = require("data-util");
|
||||
|
||||
-- most small electric poles handled in burner phase updates.
|
||||
|
||||
-- this also handles modded "large-electric-pole" recipe for basic cases
|
||||
|
||||
-- vanilla
|
||||
util.replace_ingredient("medium-electric-pole", "copper-plate", "acsr-cable")
|
||||
util.replace_ingredient("big-electric-pole", "copper-plate", "acsr-cable")
|
||||
util.replace_ingredient("large-electric-pole", "copper-plate", "acsr-cable")
|
||||
util.replace_ingredient("substation", "copper-plate", "acsr-cable")
|
||||
util.add_ingredient("substation", "aluminum-plate", 4)
|
||||
|
||||
-- aai or k2
|
||||
if mods["aai-industry"] or mods.Krastorio2 then
|
||||
util.add_prerequisite("medium-electric-pole", "reinforced-cable")
|
||||
util.replace_ingredient("medium-electric-pole", "copper-cable", "acsr-cable")
|
||||
util.replace_ingredient("big-electric-pole", "copper-cable", "acsr-cable")
|
||||
util.replace_ingredient("large-electric-pole", "copper-cable", "acsr-cable")
|
||||
util.replace_ingredient("substation", "copper-cable", "acsr-cable")
|
||||
end
|
||||
|
||||
-- SE recycling
|
||||
if mods["space-exploration"] then
|
||||
util.remove_product("se-recycle-small-iron-electric-pole", "copper-cable")
|
||||
util.remove_product("se-recycle-small-electric-pole", "copper-cable")
|
||||
util.remove_product("se-recycle-medium-electric-pole", "copper-cable")
|
||||
util.remove_product("se-recycle-big-electric-pole", "copper-cable")
|
||||
util.remove_product("se-recycle-large-electric-pole", "copper-cable")
|
||||
util.remove_product("se-recycle-substation", "copper-cable")
|
||||
|
||||
util.add_product("se-recycle-small-iron-electric-pole", {type="item", name="aluminum-cable", amount=1})
|
||||
util.add_product("se-recycle-small-electric-pole", {type="item", name="aluminum-cable", amount=1})
|
||||
util.add_product("se-recycle-medium-electric-pole", {type="item", name="acsr-cable", amount=1})
|
||||
util.add_product("se-recycle-big-electric-pole", {type="item", name="acsr-cable", amount=2})
|
||||
util.add_product("se-recycle-large-electric-pole", {type="item", name="acsr-cable", amount=4})
|
||||
util.add_product("se-recycle-substation", {type="item", name="acsr-cable", amount=4})
|
||||
end
|
||||
|
||||
-- final amounts apply to all mod loadouts
|
||||
util.set_ingredient("medium-electric-pole", "acsr-cable", 1)
|
||||
util.set_ingredient("big-electric-pole", "acsr-cable", 2)
|
||||
util.set_ingredient("large-electric-pole", "acsr-cable", 4)
|
||||
util.set_ingredient("substation", "acsr-cable", 4)
|
||||
15
bzaluminum2/aluminum-recipe-updates-storage.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
local util = require("data-util");
|
||||
|
||||
|
||||
-- Angel's storage
|
||||
util.replace_ingredient("silo", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("angels-warehouse", "iron-plate", "aluminum-plate")
|
||||
|
||||
-- Warehousing
|
||||
util.replace_some_ingredient("warehouse-basic", "steel-plate", 100, "aluminum-plate", 100)
|
||||
util.replace_some_ingredient("storehouse-basic", "steel-plate", 25, "aluminum-plate", 25)
|
||||
|
||||
-- AAI
|
||||
util.replace_some_ingredient("aai-warehouse", "steel-plate", 100, "aluminum-plate", 100)
|
||||
util.replace_some_ingredient("aai-storehouse", "steel-plate", 50, "aluminum-plate", 50)
|
||||
util.replace_some_ingredient("aai-strongbox", "steel-plate", 12, "aluminum-plate", 12)
|
||||
202
bzaluminum2/aluminum-recipe-updates-transport.lua
Normal file
|
|
@ -0,0 +1,202 @@
|
|||
local util = require("data-util");
|
||||
|
||||
|
||||
util.replace_ingredient("car", "iron-plate", "aluminum-6061")
|
||||
util.replace_some_ingredient("car", "steel-plate", 3, "aluminum-6061", 6) -- if iron was removed from car already
|
||||
util.add_prerequisite("automobilism", "basic-alloys")
|
||||
util.add_prerequisite("railway", "basic-alloys")
|
||||
util.replace_ingredient("cargo-wagon", "iron-plate", "aluminum-6061")
|
||||
util.replace_some_ingredient("locomotive", "steel-plate", 10, "aluminum-6061", 20)
|
||||
|
||||
util.add_prerequisite("turbo-bike", "basic-alloys")
|
||||
util.replace_ingredient("turbo-bike", "steel-plate", "aluminum-6061")
|
||||
|
||||
util.replace_ingredient("Hualing-Truck", "iron-plate", "aluminum-plate") -- LJD
|
||||
util.replace_ingredient("Hauling-Truck", "iron-plate", "aluminum-plate") -- LJD
|
||||
util.add_prerequisite("trucks", "basic-alloys")
|
||||
util.replace_ingredient("dumper-truck", "iron-plate", "aluminum-6061") -- Heavy Truck
|
||||
|
||||
-- cargo ships
|
||||
util.add_prerequisite("automated_water_transport", "basic-alloys")
|
||||
|
||||
util.replace_ingredient("floating-electric-pole", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("indep-boat", "steel-plate", "aluminum-plate")
|
||||
util.replace_ingredient("buoy", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("chain_buoy", "iron-plate", "aluminum-plate")
|
||||
|
||||
util.replace_ingredient("port", "iron-plate", "aluminum-6061")
|
||||
util.replace_some_ingredient("cargo_ship", "steel-plate", 200, "aluminum-6061", 200)
|
||||
util.replace_some_ingredient("oil_tanker", "steel-plate", 150, "aluminum-6061", 150)
|
||||
|
||||
-- aircraft
|
||||
util.replace_ingredient("gunship", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("gunship", util.titanium_plate, "aluminum-2219")
|
||||
util.replace_ingredient("gunship", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("cargo-plane", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("cargo-plane", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("cargo-plane", util.titanium_plate, "aluminum-2219")
|
||||
util.replace_ingredient("flying-fortress", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("cargo-plane", util.titanium_plate, "aluminum-2219")
|
||||
|
||||
-- helicopters
|
||||
util.replace_ingredient("heli-recipe", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("heli-recipe", util.titanium_plate, "aluminum-2219")
|
||||
|
||||
util.replace_ingredient("adamo-chopper", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("adamo-chopper", util.titanium_plate, "aluminum-2219")
|
||||
|
||||
util.replace_ingredient("raven", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("raven", util.titanium_plate, "aluminum-2219")
|
||||
|
||||
-- AAI Vehicles
|
||||
util.replace_ingredient("vehicle-hauler", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("vehicle-chaingunner", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("vehicle-miner", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("vehicle-miner-mk2", "steel-plate", "aluminum-plate")
|
||||
util.replace_ingredient("vehicle-miner-mk3", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("vehicle-miner-mk4", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("vehicle-miner-mk5", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("vehicle-flame-tumbler", "steel-plate", "aluminum-6061")
|
||||
util.add_ingredient("vehicle-flame-tumbler", "spark-plug", 1)
|
||||
util.replace_ingredient("vehicle-flame-tank", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("vehicle-warden", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("vehicle-laser-tank", "steel-plate", "aluminum-6061")
|
||||
|
||||
util.replace_some_ingredient("grappling-gun", "steel-plate", 9, "aluminum-plate", 10)
|
||||
|
||||
|
||||
-- King Jo's
|
||||
util.replace_ingredient("kj_2a6", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_40kbaneblade", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_40kpredator", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_40kdreadnought", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_40klemanruss", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_aventador", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_fordmustang", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_cybertruck", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_delorean", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_gigahorse", "steel-plate", "aluminum-6061")
|
||||
util.replace_some_ingredient("kj_pak", "steel-plate", 20, "aluminum-6061", 20)
|
||||
util.replace_ingredient("kj_maustank", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_panzer4", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_rattetank", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_rex", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_utilitarian", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_warrig", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kj_wirbelwind", "steel-plate", "aluminum-6061")
|
||||
|
||||
util.replace_ingredient("kj_bf109", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kj_ju52", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kj_b17", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kj_ju87", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kj_jug38", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kj_ho229", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kj_b2", "steel-plate", "aluminum-plate")
|
||||
|
||||
|
||||
|
||||
util.replace_ingredient("tiger-1", "steel-plate", "aluminum-6061")
|
||||
|
||||
|
||||
|
||||
-- Dirigible
|
||||
util.add_prerequisite("dirigible-blimps", "basic-alloys")
|
||||
util.replace_ingredient("dirigible-blimp", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("dirigible-vacuum", "iron-plate", "aluminum-6061")
|
||||
|
||||
|
||||
-- Angel's Mass Transit
|
||||
util.add_prerequisite("angels-crawler-train-3", "aerospace-alloys")
|
||||
util.add_prerequisite("angels-petro-train-3", "aerospace-alloys")
|
||||
util.add_prerequisite("angels-smelting-train-3", "aerospace-alloys")
|
||||
util.remove_prerequisite("angels-crawler-train-3", "low-density-structure")
|
||||
util.remove_prerequisite("angels-petro-train-3", "low-density-structure")
|
||||
util.remove_prerequisite("angels-smelting-train-3", "low-density-structure")
|
||||
|
||||
util.replace_ingredient("crawler-locomotive", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-locomotive-wagon", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-bot-wagon", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-wagon", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-locomotive-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-locomotive-wagon-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-bot-wagon-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-wagon-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("crawler-locomotive-3", "low-density-structure", "aluminum-2219")
|
||||
util.replace_ingredient("crawler-locomotive-wagon-3", "low-density-structure", "aluminum-2219")
|
||||
util.replace_ingredient("crawler-bot-wagon-3", "low-density-structure", "aluminum-2219")
|
||||
util.replace_ingredient("crawler-wagon-3", "low-density-structure", "aluminum-2219")
|
||||
|
||||
util.replace_ingredient("petro-locomotive-1", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("petro-locomotive-1-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("petro-locomotive-1-3", "low-density-structure", "aluminum-2219")
|
||||
|
||||
util.replace_ingredient("smelting-locomotive-1", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("smelting-locomotive-tender", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("smelting-wagon-1", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("smelting-locomotive-1-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("smelting-locomotive-tender-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("smelting-wagon-1-2", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("smelting-locomotive-1-3", "low-density-structure", "aluminum-2219")
|
||||
util.replace_ingredient("smelting-locomotive-tender-3", "low-density-structure", "aluminum-2219")
|
||||
util.replace_ingredient("smelting-wagon-1-3", "low-density-structure", "aluminum-2219")
|
||||
|
||||
-- Junk trains
|
||||
util.add_ingredient("JunkTrain", "aluminum-plate", 4)
|
||||
|
||||
-- Realistic electric trains
|
||||
util.add_prerequisite("ret-electric-locomotives", "reinforced-cable")
|
||||
util.replace_ingredient("ret-electric-locomotive", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("ret-power-pole", "copper-plate", "acsr-cable")
|
||||
util.set_ingredient("ret-power-pole", "acsr-cable", 2)
|
||||
|
||||
-- Electric trains
|
||||
util.replace_ingredient("deg-electric-locomotive", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("deg-battery-charging-station", "copper-cable", "aluminum-cable")
|
||||
|
||||
-- se space trains
|
||||
util.add_ingredient("recipe-space-locomotive", "aluminum-2219", 10)
|
||||
util.add_ingredient("recipe-space-fluid-wagon", "aluminum-2219", 10)
|
||||
util.add_ingredient("recipe-space-cargo-wagon", "aluminum-2219", 10)
|
||||
util.replace_ingredient("space-train-battery-charging-station", "copper-cable", "aluminum-cable")
|
||||
|
||||
-- space trains
|
||||
util.replace_ingredient("space-trains-locomotive", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("space-trains-short-locomotive", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("space-trains-cargo-wagon", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("space-trains-short-cargo-wagon", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("space-trains-fluid-wagon", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("space-trains-short-fluid-wagon", "steel-plate", "aluminum-2219")
|
||||
util.replace_ingredient("space-trains-charger", "copper-cable", "aluminum-cable")
|
||||
|
||||
-- SUPERSONIC
|
||||
|
||||
util.replace_ingredient("fast-one-mk1 recipe", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("fast-one-mk2 recipe", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("fast-one-mk3 recipe", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("cargo-wagon-immortal-mk2", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("fluid-wagon-immortal-mk2", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("cargo-wagon-immortal-mk3", "iron-plate", "aluminum-6061")
|
||||
util.replace_ingredient("fluid-wagon-immortal-mk3", "iron-plate", "aluminum-6061")
|
||||
|
||||
-- Xenos
|
||||
util.replace_ingredient("vehicle-almf", "iron-plate", "aluminum-6061")
|
||||
util.add_prerequisite("vehicle-almf", "basic-alloys")
|
||||
util.replace_some_ingredient("vehicle-amt-b", "steel-plate", 10, "aluminum-6061", 20)
|
||||
util.add_prerequisite("vehicle-amt-b", "basic-alloys")
|
||||
util.replace_some_ingredient("robot-specialized-main-module", "steel-plate", 1, "aluminum-6061", 2)
|
||||
util.replace_ingredient("robot-main-module", "iron-plate", "aluminum-6061")
|
||||
util.add_prerequisite("active-factory-protection", "basic-alloys")
|
||||
util.replace_ingredient("vehicle-lat", "iron-plate", "aluminum-2219")
|
||||
util.add_prerequisite("vehicle-lat", "aerospace-alloys")
|
||||
|
||||
-- Battery locomotive
|
||||
util.add_ingredient("battery-locomotive", "aluminum-6061", 30)
|
||||
|
||||
-- Battery electric train
|
||||
util.add_ingredient("bet-locomotive", "aluminum-6061", 30)
|
||||
util.add_ingredient("bet-charger-1", "acsr-cable", 2)
|
||||
util.add_ingredient("bet-charger-2", "acsr-cable", 2)
|
||||
util.add_ingredient("bet-charger-3", "acsr-cable", 2)
|
||||
util.replace_ingredient("bet-charger-1", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("bet-charger-2", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("bet-charger-3", "copper-cable", "aluminum-cable")
|
||||
241
bzaluminum2/aluminum-recipe-updates.lua
Normal file
|
|
@ -0,0 +1,241 @@
|
|||
local util = require("data-util");
|
||||
|
||||
|
||||
-- BZ tweak
|
||||
util.replace_some_ingredient("bronze-plate", "copper-plate", 1, "aluminum-plate", 1)
|
||||
|
||||
-- Big vanilla changes
|
||||
util.multiply_recipe("sulfur", 2)
|
||||
util.replace_some_ingredient("sulfur", "petroleum-gas", 10, "alumina", 1)
|
||||
util.replace_ingredient("inserter", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("burner-inserter", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("transport-belt", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("underground-belt", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("splitter", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("rocket", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("loader", "iron-plate", "aluminum-plate")
|
||||
|
||||
util.replace_ingredient("small-lamp", "copper-cable", "aluminum-cable", 1)
|
||||
util.replace_ingredient("radar", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("steam-engine", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("storage-tank", "iron-plate", "aluminum-plate")
|
||||
util.remove_ingredient("engine-unit", "tungsten-plate")
|
||||
util.add_ingredient("engine-unit", "spark-plug", mods["space-exploration"] and 2 or 1)
|
||||
util.add_ingredient("flamethrower", "spark-plug", 1)
|
||||
util.add_ingredient("flamethrower-turret", "spark-plug", 1)
|
||||
util.add_ingredient("tank", "spark-plug", 1)
|
||||
util.add_ingredient("tank", "spark-plug", 1)
|
||||
|
||||
util.replace_some_ingredient("artillery-shell", "explosives", 4, "aluminum-2219", 4)
|
||||
|
||||
if mods.bztitanium then
|
||||
util.remove_ingredient("laser-turret", "diamond")
|
||||
util.add_ingredient("laser-turret", "ti-sapphire", 1)
|
||||
util.add_ingredient("obelisk-of-light", "ti-sapphire", 1)
|
||||
else
|
||||
util.add_ingredient("laser-turret", "alumina", 5)
|
||||
util.add_ingredient("obelisk-of-light", "alumina", 5)
|
||||
|
||||
util.replace_ingredient("flying-robot-frame", "steel-plate", "aluminum-2219", 2)
|
||||
util.add_prerequisite("robotics", "aerospace-alloys")
|
||||
end
|
||||
|
||||
util.replace_some_ingredient("distractor-capsule", "defender-capsule", 1, "ti-sapphire", 1)
|
||||
|
||||
-- "Mall" changes
|
||||
util.replace_ingredient("fast-inserter", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("long-handed-inserter", "iron-plate", "aluminum-plate")
|
||||
|
||||
util.replace_some_ingredient("light-armor", "iron-plate", 20, "alumina", 20)
|
||||
util.replace_some_ingredient("heavy-armor", "copper-plate", 20, "alumina", 50)
|
||||
util.replace_some_ingredient("tank", "steel-plate", 10, "alumina", 40)
|
||||
|
||||
util.add_ingredient("kr-white-reinforced-plate", "alumina", 10)
|
||||
util.add_ingredient("kr-black-reinforced-plate", "alumina", 10)
|
||||
util.replace_ingredient("transport-belt-loader", "iron-plate", "aluminum-plate")
|
||||
util.add_ingredient("transport-belt-loader", "aluminum-plate", 10)
|
||||
|
||||
|
||||
|
||||
-- buildings
|
||||
|
||||
util.replace_some_ingredient("rocket-silo", "concrete", 500, "alumina", 500)
|
||||
util.add_ingredient("rocket-silo", "aluminum-plate", 500)
|
||||
util.set_ingredient("rocket-silo", "steel-plate", 500)
|
||||
util.add_ingredient("rocket-silo", "spark-plug", 100)
|
||||
|
||||
util.add_ingredient("roboport", "aluminum-6061", 45)
|
||||
util.replace_ingredient("assembling-machine-1", "iron-plate", "aluminum-plate")
|
||||
|
||||
util.add_ingredient("centrifuge", "aluminum-plate", 50)
|
||||
|
||||
for i, item in pairs(data.raw.item) do
|
||||
if item.subgroup == "beltboxes" then
|
||||
util.replace_ingredient(item.name, "iron-plate", "aluminum-plate")
|
||||
end
|
||||
end
|
||||
|
||||
util.replace_ingredient("kr-shelter", "copper-cable", "aluminum-cable")
|
||||
|
||||
local glass = mods["Krastorio2"] and "kr-glass" or "glass"
|
||||
local sand = mods["Krastorio2"] and "kr-sand" or "sand"
|
||||
|
||||
-- Glass
|
||||
-- k2
|
||||
util.replace_some_ingredient(glass, sand, 3, "alumina", 1)
|
||||
-- aai
|
||||
util.multiply_recipe("glass-from-sand", 4)
|
||||
util.replace_some_ingredient("glass-from-sand", sand, 3, "alumina", 1)
|
||||
util.set_category("glass-from-sand", "basic-founding")
|
||||
-- se
|
||||
util.replace_some_ingredient("se-glass-vulcanite", sand, 3, "alumina", 1)
|
||||
|
||||
-- sand-and-glass
|
||||
util.multiply_recipe("sng-glass-plate", 4)
|
||||
util.replace_some_ingredient("sng-glass-plate", "sng-sand", 3, "alumina", 1)
|
||||
util.set_category("sng-glass-plate", "basic-founding")
|
||||
|
||||
|
||||
|
||||
|
||||
if not mods.Krastorio2 then
|
||||
util.set_to_founding("glass")
|
||||
util.set_to_founding("glass-from-sand")
|
||||
util.set_to_founding("se-glass-vulcanite")
|
||||
util.set_to_founding("sng-glass-plate")
|
||||
end
|
||||
|
||||
-- End glass
|
||||
|
||||
|
||||
-- k2
|
||||
if mods.Krastorio2 then
|
||||
util.replace_some_ingredient("kr-inserter-parts", "iron-stick", 2, "aluminum-plate", 1)
|
||||
util.add_ingredient("inserter", "iron-stick", 1) -- nice symmetry
|
||||
util.replace_ingredient("fast-inserter", "steel-plate", "aluminum-plate")
|
||||
util.replace_ingredient("kr-wind-turbine", "iron-plate", "aluminum-plate")
|
||||
|
||||
util.replace_ingredient("battery-equipment", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("night-vision-equipment", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("big-battery-equipment", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("personal-submachine-laser-defense-mk1-equipment", "iron-plate", "aluminum-plate")
|
||||
|
||||
util.replace_ingredient("kr-additional-engine-equipment", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("kr-advanced-additional-engine-equipment", "steel-plate", "aluminum-6061")
|
||||
util.replace_ingredient("vehicle-roboport", "steel-plate", "aluminum-6061")
|
||||
|
||||
|
||||
util.add_ingredient("kr-research-server", "aluminum-plate", 8)
|
||||
util.add_ingredient("kr-atmospheric-condenser", "aluminum-plate", 10)
|
||||
util.add_ingredient("kr-filtration-plant", "aluminum-plate", 10)
|
||||
util.add_ingredient("kr-small-roboport", "aluminum-6061", 10)
|
||||
util.add_ingredient("kr-large-roboport", "aluminum-6061", 20)
|
||||
util.add_ingredient("assembling-machine-1", "aluminum-plate", 4)
|
||||
|
||||
util.add_ingredient("kr-laser-artillery-turret", "ti-sapphire", 4)
|
||||
util.add_ingredient("kr-matter-assembler", "ti-sapphire", 8)
|
||||
util.add_ingredient("kr-matter-plant", "ti-sapphire", 5)
|
||||
end
|
||||
|
||||
util.replace_ingredient("chute-miniloader", "iron-plate", "aluminum-plate")
|
||||
|
||||
if mods["space-exploration"] then
|
||||
|
||||
util.add_product("se-scrap-recycling", {type="item", name="aluminum-ore", amount=1, probability=0.1})
|
||||
|
||||
util.replace_ingredient("se-adaptive-armour-equipment-1", "titanium-plate", "alumina")
|
||||
util.replace_ingredient("se-adaptive-armour-equipment-1", "steel-plate", "alumina")
|
||||
|
||||
util.replace_ingredient("se-space-transport-belt", "copper-plate", "aluminum-2219")
|
||||
util.add_ingredient("se-energy-beam-defence", "acsr-cable", 20)
|
||||
|
||||
util.replace_some_ingredient("se-rocket-launch-pad", "concrete", 500, "alumina", 500)
|
||||
util.replace_some_ingredient("se-rocket-launch-pad", "steel-plate", 500, "aluminum-plate", 500)
|
||||
util.add_ingredient("se-rocket-launch-pad", "spark-plug", 100)
|
||||
util.add_ingredient("se-fluid-burner-generator", "spark-plug", 2)
|
||||
|
||||
|
||||
util.add_ingredient("se-experimental-alloys-data", "aluminum-plate", 1)
|
||||
util.add_to_product("se-experimental-alloys-data", "se-experimental-alloys-data", 1)
|
||||
util.add_to_product("se-experimental-alloys-data", "se-scrap", 1)
|
||||
util.add_to_ingredient("se-experimental-alloys-data", "se-empty-data", 1)
|
||||
|
||||
util.add_ingredient("se-electrical-shielding-data", "alumina", 1)
|
||||
|
||||
util.add_ingredient("se-space-laser-laboratory", "ti-sapphire", 10)
|
||||
util.add_ingredient("se-space-astrometrics-laboratory", "ti-sapphire", 1)
|
||||
util.add_ingredient("se-space-hypercooler", "ti-sapphire", 6)
|
||||
end
|
||||
|
||||
util.replace_ingredient("Schall-fast-inserter-R1", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("Schall-fast-inserter-R2", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("Schall-fast-inserter-R3", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("Schall-fast-inserter-R4", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("Schall-fast-inserter-R5", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("very-long-handed-inserter", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("FastLongInserters_fast-inserter", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("FastLongInserters_stack-inserter", "iron-plate", "aluminum-plate")
|
||||
|
||||
-- Robocharger
|
||||
util.add_ingredient("robocharger", "aluminum-6061", 35)
|
||||
util.add_ingredient("robocharger", "aluminum-cable", 10)
|
||||
-- Robot charging station 1x1
|
||||
util.add_ingredient("Robot-Charge-Station-1x1-small", "aluminum-6061", 3)
|
||||
util.add_ingredient("Robot-Charge-Station-1x1-medium", "aluminum-6061", 6)
|
||||
util.add_ingredient("Robot-Charge-Station-1x1", "aluminum-6061", 10)
|
||||
util.replace_ingredient("Robot-Charge-Station-1x1-small", "copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("Robot-Charge-Station-1x1-medium","copper-cable", "aluminum-cable")
|
||||
util.replace_ingredient("Robot-Charge-Station-1x1","copper-cable", "aluminum-cable")
|
||||
|
||||
-- Tesla tank ammo
|
||||
util.replace_some_ingredient("Teslacharge-pack", "steel-plate", 4, "aluminum-plate", 10)
|
||||
|
||||
|
||||
-- Leighzer's scrap
|
||||
if mods.leighzerscrapyards then
|
||||
util.add_to_product("scrap-processing", "iron-plate", -1)
|
||||
util.add_to_product("scrap-processing", "copper-plate", -1)
|
||||
util.add_product("scrap-processing", {type="item", name="aluminum-plate", amount=2})
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- Rampant
|
||||
util.add_ingredient("advanced-laser-item-rampant-arsenal", "ti-sapphire", 1)
|
||||
|
||||
-- Laser weapons
|
||||
util.add_ingredient("laser-gun", "ti-sapphire", 1)
|
||||
util.add_ingredient("laser-minigun", "ti-sapphire", 1)
|
||||
|
||||
-- Laser Tanks
|
||||
util.add_ingredient("lasercar", "ti-sapphire", 1)
|
||||
util.add_ingredient("lasertank", "ti-sapphire", 1)
|
||||
|
||||
-- Laser wall
|
||||
util.add_ingredient("laser-wall", "ti-sapphire", 1)
|
||||
|
||||
-- Transport drones
|
||||
util.replace_ingredient("request-depot", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("supply-depot", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("buffer-depot", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("fluid-depot", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("fuel-depot", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("transport-drone", "steel-plate", "aluminum-6061")
|
||||
util.add_prerequisite("transport-system", "basic-alloys")
|
||||
|
||||
-- Ultimate belts
|
||||
util.replace_ingredient("extreme-fast-belt", "express-transport-belt", "aluminum-2219", 25)
|
||||
util.replace_ingredient("extreme-fast-underground-belt", "express-underground-belt", "aluminum-2219", 100)
|
||||
util.replace_ingredient("extreme-fast-belt-loader", "express-transport-belt-loader", "aluminum-2219", 50)
|
||||
|
||||
-- Advanced belts
|
||||
util.add_ingredient("ultimate-belt", "aluminum-2219", 10)
|
||||
util.add_ingredient("ultimate-underground", "aluminum-2219", 40)
|
||||
|
||||
-- Bob's assembling machines
|
||||
if mods.bobassembly then
|
||||
util.replace_ingredient("burner-assembling-machine", "iron-plate", "aluminum-plate")
|
||||
util.replace_ingredient("steam-assembling-machine", "iron-plate", "aluminum-plate")
|
||||
util.add_prerequisite("electronics-machine-1", "electronics")
|
||||
end
|
||||
|
||||
447
bzaluminum2/aluminum-recipe.lua
Normal file
|
|
@ -0,0 +1,447 @@
|
|||
-- Aluminum smelting
|
||||
|
||||
local util = require("data-util");
|
||||
local futil = require("util");
|
||||
|
||||
local alumina_results = {}
|
||||
|
||||
if mods.bzsilicon and util.me.byproduct() and not mods.Krastorio2 then
|
||||
alumina_results ={
|
||||
{type="item", name = "alumina", amount=1, probability=0.95},
|
||||
{type="item", name = "silica", amount=1, probability=0.05},
|
||||
}
|
||||
elseif mods.bzsilicon and util.me.byproduct() and mods.Krastorio2 then
|
||||
alumina_results ={
|
||||
{type="item", name = "alumina", amount=5, probability=0.95},
|
||||
{type="item", name = "silica", amount=1, probability=0.25},
|
||||
}
|
||||
elseif mods.Krastorio2 then
|
||||
alumina_results ={
|
||||
{type="item", name = "alumina", amount=5},
|
||||
}
|
||||
else
|
||||
alumina_results ={
|
||||
{type="item", name = "alumina", amount=1},
|
||||
}
|
||||
end
|
||||
|
||||
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"] ) then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "alumina",
|
||||
main_product = "alumina",
|
||||
category = "smelting",
|
||||
order = "d[alumina]",
|
||||
icons = (mods["Krastorio2"] and
|
||||
{
|
||||
{ icon = "__bzaluminum2__/graphics/icons/alumina.png", icon_size = 128},
|
||||
{ icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}},
|
||||
} or {
|
||||
{ icon = "__bzaluminum2__/graphics/icons/alumina.png", icon_size = 128},
|
||||
}
|
||||
),
|
||||
enabled = true,
|
||||
energy_required = mods.Krastorio2 and 16 or 3.2,
|
||||
ingredients = {{type = "item", name = "aluminum-ore", amount = mods.Krastorio2 and 10 or 1}},
|
||||
subgroup = "raw-material",
|
||||
results = alumina_results,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "aluminum-plate",
|
||||
main_product = "aluminum-plate",
|
||||
category = "smelting",
|
||||
order = "d[aluminum-plate]",
|
||||
icons = (mods["Krastorio2"] and
|
||||
{
|
||||
{ icon = "__bzaluminum2__/graphics/icons/aluminum-plate.png", icon_size = 128},
|
||||
{ icon = "__bzaluminum2__/graphics/icons/alumina.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
} or {
|
||||
{ icon = "__bzaluminum2__/graphics/icons/aluminum-plate.png", icon_size = 128},
|
||||
}
|
||||
),
|
||||
enabled = true,
|
||||
energy_required = mods["Krastorio2"] and 16 or 3.2,
|
||||
ingredients = {{type="item", name="alumina", amount=mods["Krastorio2"] and 10 or 1}},
|
||||
results = {
|
||||
{type="item", name = "aluminum-plate", amount=mods["Krastorio2"] and 10 or 1}
|
||||
},
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = "alumina",
|
||||
icon = "__bzaluminum2__/graphics/icons/alumina.png",
|
||||
icon_size = 128,
|
||||
pictures = {
|
||||
{filename="__bzaluminum2__/graphics/icons/alumina.png", size=128, scale=0.25},
|
||||
{filename="__bzaluminum2__/graphics/icons/alumina-1.png", size=128, scale=0.25},
|
||||
{filename="__bzaluminum2__/graphics/icons/alumina-2.png", size=128, scale=0.25},
|
||||
{filename="__bzaluminum2__/graphics/icons/alumina-3.png", size=128, scale=0.25},
|
||||
},
|
||||
subgroup = "raw-material",
|
||||
order = "b[alumina]",
|
||||
stack_size = 100
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = "aluminum-plate",
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-plate.png",
|
||||
icon_size = 128,
|
||||
subgroup = "raw-material",
|
||||
order = "b[aluminum-plate]",
|
||||
stack_size = 100
|
||||
},
|
||||
})
|
||||
|
||||
if mods.bzsilicon then
|
||||
landfill = futil.table.deepcopy(data.raw.recipe["landfill"])
|
||||
landfill.name = "landfill-silica"
|
||||
data:extend({landfill})
|
||||
util.replace_some_ingredient("landfill-silica", "stone", 10,
|
||||
"silica", mods["space-exploration"] and 100 or 20)
|
||||
util.remove_prerequisite("landfill", "logistic-science-pack")
|
||||
util.set_tech_recipe("landfill", {{"automation-science-pack", 1}})
|
||||
util.add_effect("landfill", {type="unlock-recipe", recipe="landfill-silica"})
|
||||
util.set_icons(
|
||||
"landfill-silica",
|
||||
{
|
||||
{icon=data.raw.item["landfill"].icon, icon_size=data.raw.item["landfill"].icon_size, icon_mipmaps=data.raw.item["landfill"].icon_mipmaps},
|
||||
{icon=data.raw.item["silica"].icon, icon_size=data.raw.item["silica"].icon_size, icon_mipmaps=data.raw.item["silica"].icon_mipmaps, scale=0.25, shift={8,-8}},
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "technology",
|
||||
name = "copper-processing",
|
||||
icons = {
|
||||
{
|
||||
icon = "__base__/graphics/icons/copper-plate.png",
|
||||
icon_size = 64, icon_mipmaps=4,
|
||||
},
|
||||
},
|
||||
effects = {
|
||||
{ type = "unlock-recipe", recipe = "copper-plate" },
|
||||
{ type = "unlock-recipe", recipe = "copper-cable" },
|
||||
},
|
||||
unit = {
|
||||
count = 10, time = 15,
|
||||
ingredients = mods.Krastorio2 and
|
||||
{{"kr-basic-tech-card", 1}} or {{"automation-science-pack", 1}},
|
||||
},
|
||||
prerequisites = {},
|
||||
ignore_tech_cost_multiplier = true,
|
||||
order = "b-b",
|
||||
},
|
||||
})
|
||||
if mods["aai-industry"] then
|
||||
util.add_prerequisite("copper-processing", "electricity")
|
||||
else
|
||||
util.add_prerequisite("copper-processing", "automation")
|
||||
end
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "technology",
|
||||
name = "reinforced-cable",
|
||||
icon = "__bzaluminum2__/graphics/technology/reinforced-cable.png",
|
||||
icon_size = 256,
|
||||
effects = {
|
||||
{ type = "unlock-recipe", recipe = "acsr-cable" },
|
||||
},
|
||||
unit = {
|
||||
count = 60, time = 15,
|
||||
ingredients = {{"automation-science-pack", 1}, {"logistic-science-pack", 1}},
|
||||
},
|
||||
prerequisites = {"steel-processing"},
|
||||
order = "b-b",
|
||||
},
|
||||
})
|
||||
|
||||
util.add_prerequisite("electric-energy-distribution-1", "reinforced-cable")
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "aluminum-cable",
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-cable.png",
|
||||
icon_size = 64, icon_mipmaps = 4,
|
||||
subgroup = util.cablesg,
|
||||
order = "b[aaac-cable]",
|
||||
stack_size = 100,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "aluminum-cable",
|
||||
category = "crafting",
|
||||
order = "d[aaac-cable]",
|
||||
enabled = true,
|
||||
energy_required = 0.5,
|
||||
ingredients = {{type="item", name="aluminum-plate", amount=2}},
|
||||
results = {{type="item", name="aluminum-cable", amount=1}},
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = "acsr-cable",
|
||||
icon = "__bzaluminum2__/graphics/icons/acsr-cable.png",
|
||||
icon_size = 128,
|
||||
subgroup = util.cablesg,
|
||||
order = "b[acsr-cable]",
|
||||
stack_size = 50,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "acsr-cable",
|
||||
category = "crafting",
|
||||
order = "d[acsr-cable]",
|
||||
enabled = false,
|
||||
energy_required = 0.5,
|
||||
ingredients = {{type="item", name="aluminum-cable", amount=6}, {type="item", name="steel-plate", amount=1}},
|
||||
results = {{type="item", name="acsr-cable", amount=3}},
|
||||
}
|
||||
})
|
||||
|
||||
if mods.Krastorio2 then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "aluminum-cable-s-c",
|
||||
category = "kr-smelting-crafting",
|
||||
subgroup = "kr-smelting-crafting",
|
||||
order = "d[aaac-cable]",
|
||||
enabled = false,
|
||||
energy_required = 0.5,
|
||||
hide_from_player_crafting = true,
|
||||
ingredients = {{type="item", name="aluminum-ore", amount=4}},
|
||||
results = {{type="item", name="aluminum-cable", amount=1}},
|
||||
icons = {
|
||||
{icon = "__bzaluminum2__/graphics/icons/aluminum-cable.png", icon_size = 64, icon_mipmaps = 4},
|
||||
{icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}},
|
||||
},
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "aluminum-cable-enriched-s-c",
|
||||
category = "kr-smelting-crafting",
|
||||
subgroup = "kr-smelting-crafting",
|
||||
order = "d[aaac-cable]",
|
||||
enabled = false,
|
||||
energy_required = 0.5,
|
||||
hide_from_player_crafting = true,
|
||||
ingredients = {{type="item", name="enriched-aluminum", amount=2}},
|
||||
results = {{type="item", name="aluminum-cable", amount=1}},
|
||||
icons = {
|
||||
{icon = "__bzaluminum2__/graphics/icons/aluminum-cable.png", icon_size = 64, icon_mipmaps = 4},
|
||||
{icon = "__bzaluminum2__/graphics/icons/enriched-aluminum.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
},
|
||||
},
|
||||
})
|
||||
util.add_effect("kr-automation", { type = "unlock-recipe", recipe = "aluminum-cable-s-c" })
|
||||
util.add_effect("kr-automation", { type = "unlock-recipe", recipe = "aluminum-cable-enriched-s-c" })
|
||||
end
|
||||
|
||||
local plug = {
|
||||
{type="item", name="alumina", amount=1},
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="item", name="iron-plate", amount=1}, -- replace with tungsten plate later
|
||||
}
|
||||
if mods.bzzirconium then
|
||||
table.insert(plug, {type="item", name="zirconia", amount=1})
|
||||
end
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "spark-plug",
|
||||
icon = "__bzaluminum2__/graphics/icons/spark-plug.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "b[spark-plug]",
|
||||
stack_size = 100,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "spark-plug",
|
||||
category = "crafting",
|
||||
order = "d[spark-plug]",
|
||||
enabled = false,
|
||||
energy_required = 2,
|
||||
ingredients = plug,
|
||||
results = {{type = "item", name = "spark-plug", amount = #plug}},
|
||||
}
|
||||
})
|
||||
util.add_effect("engine", { type = "unlock-recipe", recipe = "spark-plug" })
|
||||
util.replace_ingredient("spark-plug", "iron-plate", "tungsten-plate")
|
||||
if mods.bzzirconium then
|
||||
util.add_prerequisite("engine", "zirconia-processing")
|
||||
end
|
||||
|
||||
|
||||
local aluminum_6061 = {}
|
||||
aluminum_6061["aluminum-plate"] = 18
|
||||
aluminum_6061["copper-plate"] = 1
|
||||
aluminum_6061["iron-plate"] = 1
|
||||
if mods.bzsilicon or mods.Krastorio2 then
|
||||
aluminum_6061[mods.Krastorio2 and "kr-silicon" or "silicon"] = 1
|
||||
aluminum_6061["aluminum-plate"] = aluminum_6061["aluminum-plate"] - 1
|
||||
end
|
||||
if mods.Krastorio2 then
|
||||
aluminum_6061["kr-rare-metals"] = 1
|
||||
aluminum_6061["aluminum-plate"] = aluminum_6061["aluminum-plate"] - 1
|
||||
end
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "aluminum-6061",
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-6061.png",
|
||||
icon_size = 128,
|
||||
subgroup = "raw-material",
|
||||
order = "zz[aluminum-6061]",
|
||||
stack_size = 100,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "aluminum-6061",
|
||||
category = "founding",
|
||||
subgroup = "foundry-intermediate",
|
||||
order = "zz[aluminum-6061]",
|
||||
enabled = false,
|
||||
energy_required = 100,
|
||||
ingredients = {},
|
||||
results = {{type="item", name="aluminum-6061", amount=20}},
|
||||
},
|
||||
{
|
||||
type = "technology",
|
||||
name = "basic-alloys",
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-6061.png",
|
||||
icon_size = 128,
|
||||
effects = {
|
||||
{ type = "unlock-recipe", recipe = "aluminum-6061" },
|
||||
},
|
||||
unit = {
|
||||
count = 60, time = 30,
|
||||
ingredients = {{"automation-science-pack", 1}, {"logistic-science-pack", 1}},
|
||||
},
|
||||
prerequisites = {"advanced-material-processing"},
|
||||
order = "b-b",
|
||||
},
|
||||
})
|
||||
for item, count in pairs(aluminum_6061) do
|
||||
util.add_ingredient("aluminum-6061", item, count, {force=true})
|
||||
end
|
||||
util.add_prerequisite("basic-alloys", "silicon-processing")
|
||||
util.add_prerequisite("basic-alloys", "kr-silicon-processing")
|
||||
|
||||
local aluminum_2219 = {}
|
||||
aluminum_2219["aluminum-plate"] = 16
|
||||
aluminum_2219["copper-plate"] = 4
|
||||
if mods.bztitanium then
|
||||
aluminum_2219["titanium-plate"] = 2
|
||||
aluminum_2219["aluminum-plate"] = aluminum_2219["aluminum-plate"] - 1
|
||||
aluminum_2219["copper-plate"] = aluminum_2219["copper-plate"] - 1
|
||||
end
|
||||
if mods.bzzirconium then
|
||||
aluminum_2219["zirconium-plate"] = 1
|
||||
aluminum_2219["aluminum-plate"] = aluminum_2219["aluminum-plate"] - 1
|
||||
end
|
||||
if mods.Krastorio2 then
|
||||
aluminum_2219["kr-rare-metals"] = 1
|
||||
aluminum_2219["aluminum-plate"] = aluminum_2219["aluminum-plate"] - 1
|
||||
end
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "aluminum-2219",
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-2219.png",
|
||||
icon_size = 128,
|
||||
subgroup = "raw-material",
|
||||
order = "zz[aluminum-2219]",
|
||||
stack_size = 100,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "aluminum-2219",
|
||||
category = "founding",
|
||||
subgroup = "foundry-intermediate",
|
||||
order = "zz[aluminum-2219]",
|
||||
enabled = false,
|
||||
energy_required = 100,
|
||||
ingredients = {},
|
||||
results = {{type="item", name="aluminum-2219", amount=20}},
|
||||
},
|
||||
{
|
||||
type = "technology",
|
||||
name = "aerospace-alloys",
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-2219.png",
|
||||
icon_size = 128,
|
||||
effects = {
|
||||
{ type = "unlock-recipe", recipe = "aluminum-2219" },
|
||||
},
|
||||
unit = {
|
||||
count = 60, time = 30,
|
||||
ingredients = {{"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}},
|
||||
},
|
||||
prerequisites = {"basic-alloys"},
|
||||
order = "b-b",
|
||||
},
|
||||
})
|
||||
for item, count in pairs(aluminum_2219) do
|
||||
util.add_ingredient("aluminum-2219", item, count, {force=true})
|
||||
end
|
||||
util.add_prerequisite("aerospace-alloys", "titanium-processing")
|
||||
util.add_prerequisite("aerospace-alloys", "zirconia-processing")
|
||||
|
||||
if mods.bztitanium then
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "ti-sapphire",
|
||||
icon = "__bzaluminum2__/graphics/icons/ti-sapphire.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "zz[sapphire-ti]",
|
||||
stack_size = 50,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "ti-sapphire",
|
||||
icon = "__bzaluminum2__/graphics/icons/ti-sapphire.png",
|
||||
icon_size = 128,
|
||||
category = "chemistry",
|
||||
subgroup = "intermediate-product",
|
||||
order = "zz[sapphire-ti]",
|
||||
enabled = false,
|
||||
energy_required = 10,
|
||||
ingredients = {
|
||||
{type="item", name="alumina", amount=10},
|
||||
{type="item", name=util.titanium_plate, amount=1},
|
||||
{type="fluid", name=mods.Krastorio2 and "kr-ammonia" or "sulfuric-acid", amount=5},
|
||||
},
|
||||
results = {{type="item", name="ti-sapphire", amount=1}},
|
||||
},
|
||||
})
|
||||
util.add_effect("laser", {type="unlock-recipe", recipe="ti-sapphire"})
|
||||
util.add_prerequisite("laser", util.titanium_processing)
|
||||
if mods.bzcarbon then
|
||||
util.add_ingredient("ti-sapphire", "diamond", 1, {force=true})
|
||||
util.add_product("ti-sapphire", {type="item", name="diamond", amount=1, probability=0.8, catalyst_amount=1}, {force=true})
|
||||
end
|
||||
end
|
||||
|
||||
if mods.DoubleFurnace then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "double-aluminum",
|
||||
category = "double-smelting",
|
||||
enabled = false,
|
||||
energy_required = 3.2,
|
||||
ingredients = {{type="item", name="aluminum-ore", amount=1}},
|
||||
results = {{type="item", name="aluminum-plate", amount=1}},
|
||||
}
|
||||
})
|
||||
util.add_effect("double-smelting-tech-steel", {type = "unlock-recipe", recipe = "double-aluminum"})
|
||||
end
|
||||
|
||||
end
|
||||
13
bzaluminum2/cables.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if not util.se6() and not data.raw["item-subgroup"]["cable"] then
|
||||
data:extend({
|
||||
{
|
||||
type = "item-subgroup",
|
||||
name = "cable",
|
||||
group = "intermediate-products",
|
||||
order = "f-z",
|
||||
}
|
||||
})
|
||||
util.set_item_subgroup("copper-cable", "cable")
|
||||
end
|
||||
406
bzaluminum2/changelog.txt
Normal file
|
|
@ -0,0 +1,406 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.28
|
||||
Date: 2024-03-15
|
||||
Fixes:
|
||||
- With Bob's Electronics, fixed soft locks on lab recipe when used without Natural Gas
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.27
|
||||
Date: 2024-02-17
|
||||
Fixes:
|
||||
- Prevent possible soft lock with Warptorio 2 Expansion
|
||||
Changes:
|
||||
- Some improved recipe compatibility for Xenos mods
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.26
|
||||
Date: 2023-12-26
|
||||
Changes:
|
||||
- Copper processing tech ignores science multiplier
|
||||
Localization:
|
||||
- ja updates by Sakuro
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.25
|
||||
Date: 2023-05-16
|
||||
Changes:
|
||||
- Improved compatibility with bob's electronics
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.24
|
||||
Date: 2023-03-13
|
||||
Changes:
|
||||
- Now has a dependency on BZ Mods Bridge (bz-dsr-bridge)
|
||||
- Trees will spawn less often on resources
|
||||
Fixes:
|
||||
- Fix compatibility issue with Bob's Power
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.23
|
||||
Date: 2023-02-21
|
||||
Fixes:
|
||||
- Fix startup when used with both Warptorio2 Expansion and Krastorio2
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.22
|
||||
Date: 2023-02-12
|
||||
Fixes:
|
||||
- Improved compatibility with Warptorio2Expansion, thanks to Marwes
|
||||
Changes:
|
||||
- Improved Crafting efficiency compatibility, thanks to nihilistzsche
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.21
|
||||
Date: 2023-02-03
|
||||
Features:
|
||||
- Compatibility with Warptorio2Expansion, can now repair broken lab to unlock research.
|
||||
No copper cable or circuits required.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.20
|
||||
Date: 2023-01-17
|
||||
Features:
|
||||
- (Beta) Crafting efficiency compatibility
|
||||
Localization:
|
||||
- ru updates by CV514
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.19
|
||||
Date: 2022-12-30
|
||||
Changes:
|
||||
- Textplates: Copper textplates have a tech, and are made from copper
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.18
|
||||
Date: 2022-12-24
|
||||
Localization:
|
||||
- zh-CN by sunnytan53
|
||||
Changes:
|
||||
- SE ingot in delivery cannon
|
||||
- When used without Titanium, use aluminum in flying robot frames.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.17
|
||||
Date: 2022-11-21
|
||||
Fixes:
|
||||
- Rollback mod name change from 0.4.16. This broke the mod name when the mod was not enabled.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.16
|
||||
Date: 2022-11-20
|
||||
Changes:
|
||||
- When used with Aluminium Localization mod, mod name changes as well
|
||||
Fixes:
|
||||
- K2+GDIW prod module fix
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.15
|
||||
Date: 2022-09-29
|
||||
Changes:
|
||||
- Space Exploration - delivery cannon recipes for some alloys
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.14
|
||||
Date: 2022-08-25
|
||||
Changes:
|
||||
- Space Exploration ore generation rebalance - more aluminum, a little less copper
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.13
|
||||
Date: 2022-08-23
|
||||
Changes:
|
||||
- Minor tech tree tweaks for some mod loadouts.
|
||||
- deep core mining focused recipe balance tweak
|
||||
- Recipe compatibility with new Advanced Belts mod
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.12
|
||||
Date: 2022-08-22
|
||||
Fixes:
|
||||
- Attempt to fix tech tree loop with Aluminum + K2 + Bitumen + Bobs etc
|
||||
Localization:
|
||||
- Ja updates by Sakuro
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.11
|
||||
Date: 2022-08-18
|
||||
Fixes:
|
||||
- Fix multiple prerequisite issue
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.10
|
||||
Date: 2022-08-17
|
||||
Fixes:
|
||||
- SE: Disable matter recipes at start
|
||||
Changes:
|
||||
- Further compatibility with bob's assemblers
|
||||
- Minor nanobots compatibility tech tree fix
|
||||
- Minor Renai Transportation compatibility tweak
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.9
|
||||
Date: 2022-08-16
|
||||
Features:
|
||||
- Support for SE matter fusion and SE+K2 matter liberation
|
||||
Changes:
|
||||
- With Tin, Can now bypass aluminum in bronze recipe if desired.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.8
|
||||
Date: 2022-08-15
|
||||
Fixes:
|
||||
- Fix a tech loop when using Aluminum with Krastorio 2 and some of Bob's mods
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.6
|
||||
Date: 2022-08-15
|
||||
Fixes:
|
||||
- When grinding Ti-sapphires, returned diamonds no longer affected by prod modules
|
||||
Changes:
|
||||
- Industrial display plates compatibility
|
||||
- More minor mod compatibility - various high-tier belts and inserters including
|
||||
Bob's logistics, ultimate belts
|
||||
Features:
|
||||
- The engineer starts with a single burner inserter. Yay! (Setting to turn this off.)
|
||||
This allows players to create aluminum plates without being forced to manually move items
|
||||
from one machine to another.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.5
|
||||
Date: 2022-08-11
|
||||
Fixes:
|
||||
- SE: Fix delivery cannon recipes post 0.4.0
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.4
|
||||
Date: 2022-08-10
|
||||
Changes:
|
||||
- Cable item subgroup
|
||||
- Rocket Silo Construction - initial compatibility
|
||||
- With S&S mod, Silica landfill recipe icon shows silica
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.3
|
||||
Date: 2022-08-10
|
||||
Changes:
|
||||
- Lamp only requires 1 aluminum cable now.
|
||||
Fixes:
|
||||
- Some more general compatibility fixes, thanks to U.N.Owen, including improved compatibility
|
||||
with their fork of Research Desk.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.2
|
||||
Date: 2022-08-08
|
||||
Fixes:
|
||||
- Fix due to lua treating string 'false' as truthy and Factorio treating 'false' as falsy.
|
||||
Fixes minor wierdness from 0.4.0 with some mods like switch button and filter combinator.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.1
|
||||
Date: 2022-08-07
|
||||
Fixes:
|
||||
- Avoid strange situations related to previous change, eg. where copper wire recipe requires
|
||||
aluminum plate.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.0
|
||||
Date: 2022-08-07
|
||||
Changes:
|
||||
- All mods with early recipes requiring copper or electronic circuits should be more generally
|
||||
compatible now.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.16
|
||||
Date: 2022-08-05
|
||||
Changes:
|
||||
- Some more updated recipes for ScienceCostTweaker - blue science
|
||||
- VTK deepcore mining, one more missing string
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.15
|
||||
Date: 2022-08-02
|
||||
Changes:
|
||||
- Transport Drones recipes
|
||||
- Asteroid Mining compatibility
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.14
|
||||
Date: 2022-07-31
|
||||
Localization:
|
||||
- cs locale thanks to RiCZrd
|
||||
Changes:
|
||||
- Ti-sapphire recipe allows prod modules now
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.13
|
||||
Date: 2022-07-20
|
||||
Changes:
|
||||
- More laser mod compatibility, including modular turrets
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.12
|
||||
Date: 2022-07-14
|
||||
Fixes:
|
||||
- K2: Fix advanced crafting icons
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.11
|
||||
Date: 2022-07-11
|
||||
Fixes:
|
||||
- SE: Fix rocket silo recipe
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.10
|
||||
Date: 2022-07-11
|
||||
Fixes:
|
||||
- Fix issue from last update
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.9
|
||||
Date: 2022-07-11
|
||||
Changes:
|
||||
- ScienceCostTweaker compatibility - prevent initial deadlock around copper
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.8
|
||||
Date: 2022-07-11
|
||||
Changes:
|
||||
- Double Furnace recipe
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.7
|
||||
Date: 2022-07-10
|
||||
Changes:
|
||||
- Leighzer's scrapyards compatibility
|
||||
Localization:
|
||||
- ru l10n thanks to Pergamum663
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.6
|
||||
Date: 2022-07-09
|
||||
Changes:
|
||||
- Temporary en locale strings for procedural deep core mining recipes
|
||||
- K2: advanced assembler enriched aluminum --> cable recipe
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.5
|
||||
Date: 2022-07-06
|
||||
Localization:
|
||||
- Japanese (ja) l10n updates thanks to Sakuro
|
||||
Changes:
|
||||
- Tweak to ore entity graphics.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.4
|
||||
Date: 2022-07-04
|
||||
Changes:
|
||||
- AAI: recipe requires alumina, in foundry. Can be handcrafted.
|
||||
- Sand & Glass: recipe requires alumina, in foundry.
|
||||
- 248K: motlen glass requires alumina
|
||||
- K2 Shelter uses aluminum cable
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.3
|
||||
Date: 2022-07-03
|
||||
Fixes:
|
||||
- SE: Prod modules molten recipe
|
||||
Changes:
|
||||
- SE: No byproduct in molten recipe, regardless of setting.
|
||||
- SE: Ingot time balanced
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.2
|
||||
Date: 2022-07-02
|
||||
Fixes:
|
||||
- SE K2 subgroup fix, more pyroflux tech fixes.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.1
|
||||
Date: 2022-07-01
|
||||
Changes:
|
||||
- Minor SE tweaks including pyroflux tech change.
|
||||
Features:
|
||||
- Add option to turn off byproduct. (This setting will show up in other resource mods soon).
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.0
|
||||
Date: 2022-07-01
|
||||
Changes:
|
||||
- Compatible with Space Exploration 0.6
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.2.1
|
||||
Date: 2022-06-26
|
||||
Fixes:
|
||||
- K2: Advanced crafting recipe for aluminum cable now hidden from handcrafting
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.2.0
|
||||
Date: 2022-06-26
|
||||
Fixes:
|
||||
- Beta support for 248k. This is an initial release and may change in the future
|
||||
Aluminum items merged into one. Multiple production chains.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.10
|
||||
Date: 2022-06-23
|
||||
Fixes:
|
||||
- K2: Advanced crafting recipe for aluminum cable in correct subgroup
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.9
|
||||
Date: 2022-06-23
|
||||
Features:
|
||||
- K2: Advanced crafting recipe for aluminum cable
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.8
|
||||
Date: 2022-06-19
|
||||
Fixes:
|
||||
- Enriched aluminum can be stacked now
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.7
|
||||
Date: 2022-06-09
|
||||
Changes:
|
||||
- SE: Vulcanite recipes can use prod modules.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.6
|
||||
Date: 2022-06-05
|
||||
Localization:
|
||||
- Japanese (ja) l10n thanks to Sakuro
|
||||
- German (de) l10n thanks to Yokmp
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.5
|
||||
Date: 2022-05-30
|
||||
Localization:
|
||||
- Enable alternate spelling for locale via other mods.
|
||||
Changes:
|
||||
- Compat with large electric pole
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.4
|
||||
Date: 2022-03-16
|
||||
Fixes:
|
||||
- Fix possible deadlock with glass in SE
|
||||
- Can now prod module alumina from enriched aluminum
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.3
|
||||
Date: 2022-02-27
|
||||
Fixes:
|
||||
- K2 stacked icon fix
|
||||
Changes:
|
||||
- More train compatibility
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.2
|
||||
Date: 2022-02-25
|
||||
Changes:
|
||||
- Recipe updates for warehouses, storehouses, etc.
|
||||
- Other minor compatibility updates
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.1
|
||||
Date: 2022-02-24
|
||||
Changes:
|
||||
- More train compatibility
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.0
|
||||
Date: 2022-02-22
|
||||
Changes:
|
||||
- Jetpack: changed progression a bit both with and without Titanium active.
|
||||
- Artillery shells now require 2219 aluminum alloy (and slightly less explosives).
|
||||
Features:
|
||||
- SE Space Trains compatibility & Space trains compatibility
|
||||
- Now officially in beta. Will be added to "Very BZ" in the coming weeks.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.7
|
||||
Date: 2022-02-22
|
||||
Localization:
|
||||
- Korean (ko) l10n, thanks to x2605
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.6
|
||||
Date: 2022-02-17
|
||||
Changes:
|
||||
- AAI - Tech tree tweaks
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.5
|
||||
Date: 2022-02-14
|
||||
Changes:
|
||||
- Change cost of ACSR cable a bit (slightly cheaper overall).
|
||||
- Tweak costs of power poles and substations to be cheaper.
|
||||
- Car requires 6061 aluminum alloy
|
||||
- Tech tree tweaks
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.4
|
||||
Date: 2022-02-13
|
||||
Fixes:
|
||||
- K2 medium and up electric poles now use ACSR Cable
|
||||
- SE electric pole recycling recipes
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.3
|
||||
Date: 2022-02-12
|
||||
Fixes:
|
||||
- Recipe list mod setting fixes
|
||||
Changes:
|
||||
- Minor SE recipe updates
|
||||
- More recipe compatibility tweaks
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.2
|
||||
Date: 2022-02-02
|
||||
Fixes:
|
||||
- Tech tree deadlock fix for K2+AAI
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.1
|
||||
Date: 2022-01-31
|
||||
Features:
|
||||
- Alpha release. Adds aluminum, alumina, cables, alloys, etc.
|
||||
- Compatible with Krastorio 2
|
||||
- Compatible with Space Exploration
|
||||
31
bzaluminum2/compatibility/248k-recipes.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
if mods["248k-Redux"] then
|
||||
data:extend({
|
||||
|
||||
{
|
||||
name = 'el_purify_aluminum_recipe',
|
||||
type = 'recipe',
|
||||
enabled = 'false',
|
||||
category = 'el_purifier_category',
|
||||
main_product = 'el_dirty_water',
|
||||
ingredients = {
|
||||
{type="fluid", name="water", amount=50},
|
||||
{type="item", name="aluminum-ore", amount=10}
|
||||
},
|
||||
results = {
|
||||
{type="fluid", name="el_dirty_water", amount=50},
|
||||
{type="item", name="el_materials_pure_aluminum", amount=5},
|
||||
},
|
||||
energy_required = 1,
|
||||
always_show_made_in = true,
|
||||
icons = {
|
||||
{
|
||||
icon = "__248k-Redux-graphics__/ressources/fluids/el_dirty_water.png", icon_size = 64,
|
||||
},
|
||||
{
|
||||
icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}
|
||||
},
|
||||
}
|
||||
},
|
||||
})
|
||||
end
|
||||
35
bzaluminum2/compatibility/248k.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
local util = require("data-util");
|
||||
|
||||
-- ADD PURIFICATION RECIPE
|
||||
|
||||
local al2 = "el_aluminum_item"
|
||||
|
||||
|
||||
-- Swap out all 248k titanium for BZ titanium_plate
|
||||
for i, recipe in pairs(data.raw.recipe) do
|
||||
util.replace_ingredient(recipe.name, al2, "aluminum-plate")
|
||||
util.replace_product(recipe.name, al2, "aluminum-plate")
|
||||
end
|
||||
|
||||
-- Remove 248k titanium plate
|
||||
util.remove_raw("item", al2)
|
||||
|
||||
-- glass uses alumina
|
||||
util.multiply_recipe("fi_arc_glass_recipe", 2)
|
||||
util.replace_some_ingredient("fi_arc_glass_recipe", "silica", 2, "alumina", 1)
|
||||
|
||||
-- Stone purification should produce even outputs now
|
||||
util.add_to_ingredient("el_purify_stone_recipe", "stone", 5)
|
||||
util.add_to_ingredient("el_purify_stone_recipe", "water", 50)
|
||||
util.add_to_product("el_purify_stone_recipe", "el_materials_pure_iron", 1)
|
||||
util.add_to_product("el_purify_stone_recipe", "el_materials_pure_copper", 1)
|
||||
util.add_to_product("el_purify_stone_recipe", "el_dirty_water", 50)
|
||||
util.multiply_time("el_purify_stone_recipe", 1.5)
|
||||
|
||||
-- Unlock new aluminum purification recipe
|
||||
util.add_effect("el_purifier_tech", {type = "unlock-recipe", recipe = "el_purify_aluminum_recipe"})
|
||||
|
||||
-- Remove no-longer-necessary aluminum-focused purification
|
||||
util.remove_raw("technology", "el_purifier_2_tech")
|
||||
util.remove_raw("recipe", "el_purify_stone_2_recipe")
|
||||
|
||||
39
bzaluminum2/compatibility/crafting-efficiency.lua
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods["crafting-efficiency-2"] then
|
||||
|
||||
local eff_data = {
|
||||
}
|
||||
|
||||
for i, recipe in pairs(util.me.recipes) do
|
||||
-- add remaining recipes with direct items to find the icons
|
||||
if data.raw.recipe[recipe] and (data.raw.item[recipe] or data.raw.fluid[recipe])
|
||||
and not eff_data[recipe] then
|
||||
local research_level = 1
|
||||
if not data.raw.recipe[recipe].enabled then
|
||||
for tech, tbl in pairs(data.raw.technology) do
|
||||
for _, effect in pairs(tbl.effects or {}) do
|
||||
if effect.type == "unlock-recipe" and effect.recipe == recipe then
|
||||
research_level = math.min(#tbl.unit.ingredients, 6)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
eff_data[recipe] = {
|
||||
max = 15,
|
||||
icon = util.get_item_or_fluid_icon(recipe),
|
||||
crafting = { efficiency = 10 },
|
||||
research = { level = research_level },
|
||||
}
|
||||
if recipe:find("smelting") then
|
||||
eff_data[recipe].crafting.efficiency = 20
|
||||
eff_data[recipe].crafting.category = "smelting"
|
||||
end
|
||||
end
|
||||
end
|
||||
for recipe, d in pairs(eff_data) do
|
||||
log("Adding "..recipe.." crafting efficiency")
|
||||
d.name = recipe:gsub("^%l", string.upper).." efficiency"
|
||||
CE_Add_Recipe(d, recipe)
|
||||
end
|
||||
end
|
||||
8
bzaluminum2/compatibility/rsc.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- Rocket silo construction
|
||||
local util = require("data-util");
|
||||
|
||||
if mods["Rocket-Silo-Construction"] then
|
||||
util.replace_ingredient("rsc-construction-stage4", "stone-brick", "alumina")
|
||||
util.replace_ingredient("rsc-construction-stage5", "copper-cable", "aluminum-cable", 0.25, true)
|
||||
util.replace_ingredient("rsc-construction-stage5", "copper-plate", "aluminum-plate")
|
||||
end
|
||||
15
bzaluminum2/compatibility/sciencecosttweakerm.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
local util = require("data-util")
|
||||
|
||||
util.replace_ingredient("sct-lab1-mechanization", "electronic-circuit", "aluminum-cable")
|
||||
|
||||
util.replace_ingredient("sct-t1-magnet-coils", "copper-plate", "aluminum-plate")
|
||||
if data.raw.item["sct-t1-magnet-coils"] then
|
||||
util.set_item_icons("sct-t1-magnet-coils",
|
||||
{{
|
||||
icon=data.raw.item["sct-t1-magnet-coils"].icon,
|
||||
icon_size=data.raw.item["sct-t1-magnet-coils"].icon_size,
|
||||
tint = {a=1, r=.66, b=.99, g=.9},
|
||||
}})
|
||||
end
|
||||
|
||||
util.replace_ingredient("sct-t3-laser-foci", "iron-plate", "alumina")
|
||||
25
bzaluminum2/compatibility/textplates.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods.textplates then
|
||||
local material = "copper"
|
||||
local prerequisite_tech = data.raw.technology[material.."-processing"]
|
||||
data:extend({{
|
||||
type = "technology",
|
||||
name = "textplates-"..material,
|
||||
effects = {
|
||||
},
|
||||
icon = "__textplates__/graphics/entity/"..material.."/t.png",
|
||||
icon_size = 128,
|
||||
order = "a",
|
||||
prerequisites = {material.."-processing"},
|
||||
unit = {
|
||||
count = 10,
|
||||
ingredients = table.deepcopy(prerequisite_tech.unit.ingredients),
|
||||
time = prerequisite_tech.unit.time
|
||||
},
|
||||
localised_name = { "technology-name.textplate", {"textplates.".. material.."-C"} }
|
||||
}})
|
||||
util.add_unlock_force("textplates-"..material, "textplate-small-"..material)
|
||||
util.add_unlock_force("textplates-"..material, "textplate-large-"..material)
|
||||
end
|
||||
|
||||
86
bzaluminum2/control-util.lua
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
local me = require("me")
|
||||
|
||||
local util = {}
|
||||
util.me = me
|
||||
|
||||
function decode(data)
|
||||
if type(data) == "string" then return data end
|
||||
local str = {}
|
||||
for i = 2, #data do
|
||||
str[i-1] = decode(data[i])
|
||||
end
|
||||
return table.concat(str, "")
|
||||
end
|
||||
|
||||
function util.get_list()
|
||||
local p = game.item_prototypes[me.name.."-list"]
|
||||
if p then
|
||||
data = p.localised_description
|
||||
return decode(data)
|
||||
end
|
||||
end
|
||||
|
||||
function util.force_enable_recipe(event, recipe_name)
|
||||
if game.players[event.player_index].force.recipes[recipe_name] then
|
||||
game.players[event.player_index].force.recipes[recipe_name].enabled=true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function util.warptorio2_expansion_helper()
|
||||
if script.active_mods["warptorio2_expansion"] then
|
||||
function check_container_for_items(container,items)
|
||||
local has_all =true
|
||||
for k=1,#items do
|
||||
if container.get_item_count(items[k].name)<items[k].count then has_all=false break end
|
||||
end
|
||||
return has_all
|
||||
end
|
||||
|
||||
function remove_items_from_container(container,items)
|
||||
for k=1,#items do
|
||||
container.remove_item(items[k])
|
||||
end
|
||||
end
|
||||
|
||||
script.on_nth_tick(60, function (event)
|
||||
if global.done then return end
|
||||
local fix_items={
|
||||
{name='iron-plate',count=100},
|
||||
{name='iron-gear-wheel',count=100},
|
||||
{name='repair-pack',count=50},
|
||||
}
|
||||
local entities = {}
|
||||
for i=1,100 do
|
||||
if game.surfaces[i] then
|
||||
local lentities= game.surfaces[i].find_entities_filtered{area = {{-100, -100}, {100, 100}}, name = "wpe_broken_lab"}
|
||||
for j, entity in pairs(lentities) do
|
||||
table.insert(entities, entity)
|
||||
end
|
||||
end
|
||||
end
|
||||
if #entities == 0 then
|
||||
if global.checking then
|
||||
-- The lab has already been fixed
|
||||
global.done = true
|
||||
else
|
||||
-- Check that the lab doesn't reappear due to a warp
|
||||
global.checking = true
|
||||
end
|
||||
return
|
||||
end
|
||||
if check_container_for_items(entities[1],fix_items) then
|
||||
remove_items_from_container(entities[1],fix_items)
|
||||
local lab = entities[1].surface.create_entity({name='wpe_repaired_lab', position=entities[1].position, force = game.forces.player})
|
||||
lab.destructible=false
|
||||
lab.minable=false
|
||||
entities[1].destroy()
|
||||
global.done = true
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
return util
|
||||
35
bzaluminum2/control.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
local util = require("control-util")
|
||||
|
||||
function on_console_chat(event)
|
||||
if event.message and string.lower(event.message) == "bzlist" then
|
||||
local player = game.players[event.player_index]
|
||||
if player and player.connected then
|
||||
local list = util.get_list()
|
||||
if list and #list>0 then
|
||||
local filename = util.me.name..".txt"
|
||||
game.write_file(filename, list, false, event.player_index)
|
||||
player.print("Wrote recipes to script-output/"..filename)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
script.on_event(defines.events.on_console_chat, on_console_chat)
|
||||
|
||||
|
||||
-- Free burner inserter
|
||||
-- (thanks to modder planetfall for inspiration, from Brass Tacks)
|
||||
script.on_init(
|
||||
function()
|
||||
if remote.interfaces["freeplay"] then
|
||||
local care_package = remote.call("freeplay", "get_created_items")
|
||||
if settings.global["bzaluminum-starting-items"].value then
|
||||
care_package["burner-inserter"] = 1
|
||||
end
|
||||
remote.call("freeplay", "set_created_items", care_package)
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
util.warptorio2_expansion_helper()
|
||||
|
||||
46
bzaluminum2/data-final-fixes.lua
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
require("aluminum-recipe-final-stacking")
|
||||
require("aluminum-recipe-modules")
|
||||
-- require("aluminum-recipe-final-5d")
|
||||
require("aluminum-recipe-final-rrr")
|
||||
|
||||
if not mods["exotic-industries"] then
|
||||
require("aluminum-burner-phase")
|
||||
end
|
||||
|
||||
|
||||
local util = require("data-util");
|
||||
|
||||
if mods["space-exploration"] then
|
||||
-- Must be in final fixes
|
||||
util.replace_ingredient("rocket-control-unit", "iron-plate", "aluminum-plate")
|
||||
|
||||
-- core mining balancing
|
||||
util.add_to_product("se-core-fragment-omni", "aluminum-ore", -2)
|
||||
end
|
||||
|
||||
-- vtk deep core mining balance
|
||||
util.add_to_product("vtk-deepcore-mining-ore-chunk-refining-aluminum-ore-focus", "vtk-deepcore-mining-aluminum-ore-chunk", 20)
|
||||
util.add_to_product("vtk-deepcore-mining-ore-chunk-refining", "vtk-deepcore-mining-aluminum-ore-chunk", 10)
|
||||
util.add_to_product("vtk-deepcore-mining-ore-chunk-refining-no-uranium", "vtk-deepcore-mining-aluminum-ore-chunk", 10)
|
||||
util.set_vtk_dcm_ingredients()
|
||||
|
||||
if mods.bzsilicon then
|
||||
for i, entity in pairs(data.raw.furnace) do
|
||||
if entity.result_inventory_size ~= nil and entity.result_inventory_size < 2 and util.contains(entity.crafting_categories, "smelting") then
|
||||
entity.result_inventory_size = 2
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if mods.bztitanium then
|
||||
util.add_ingredient("w93-modular-gun-plaser", "ti-sapphire", 1)
|
||||
util.add_ingredient("w93-modular-gun-tlaser", "ti-sapphire", 1)
|
||||
util.add_ingredient("w93-modular-gun-beam", "ti-sapphire", 1)
|
||||
else
|
||||
util.add_ingredient("w93-modular-gun-plaser", "alumina", 5)
|
||||
util.add_ingredient("w93-modular-gun-tlaser", "alumina", 5)
|
||||
util.add_ingredient("w93-modular-gun-beam", "alumina", 5)
|
||||
end
|
||||
|
||||
-- Must be last
|
||||
util.create_list()
|
||||
45
bzaluminum2/data-updates.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
require("aluminum-recipe-updates")
|
||||
require("aluminum-recipe-updates-lds")
|
||||
require("aluminum-recipe-updates-storage")
|
||||
require("aluminum-recipe-updates-transport")
|
||||
require("aluminum-recipe-updates-power")
|
||||
require("aluminum-recipe-updates-jetpack")
|
||||
require("aluminum-matter")
|
||||
-- require("omni")
|
||||
require("map-gen-preset-updates")
|
||||
require("strange-matter")
|
||||
require("compatibility/248k")
|
||||
require("compatibility/sciencecosttweakerm")
|
||||
require("compatibility/rsc")
|
||||
require("compatibility/crafting-efficiency")
|
||||
|
||||
local util = require("data-util")
|
||||
if data.raw.resource["copper-ore"] and not mods["bzgold"] then
|
||||
if mods["space-exploration"] then
|
||||
-- decrease richness of copper a bit
|
||||
data.raw.resource["copper-ore"].autoplace.richness_expression =
|
||||
data.raw.resource["copper-ore"].autoplace.richness_expression .. "*(3/4)"
|
||||
else
|
||||
log("Replacing vanilla copper-ore autoplace")
|
||||
local resource_autoplace = require('resource-autoplace');
|
||||
data.raw.resource["copper-ore"].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = "copper-ore",
|
||||
order = "b",
|
||||
base_density = 6, -- decreased from 8 in vanilla
|
||||
has_starting_area_placement = true,
|
||||
regular_rq_factor_multiplier = 1.1,
|
||||
starting_rq_factor_multiplier = 1.1,
|
||||
candidate_spot_count = 22,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
if mods.Asteroid_Mining then
|
||||
require("__Asteroid_Mining__.scripts.addmodule")
|
||||
amfunc.addtype("aluminum-ore", {a = 0,r = 0.58,g = 0.6,b = 0.56})
|
||||
end
|
||||
|
||||
require("aluminum-recipe-modules")
|
||||
|
||||
-- Must be last
|
||||
util.create_list()
|
||||
1270
bzaluminum2/data-util.lua
Normal file
21
bzaluminum2/data.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
require("cables")
|
||||
require("aluminum-ore")
|
||||
require("aluminum-recipe")
|
||||
require("aluminum-enriched") -- Enriched Al for Krastorio 2
|
||||
require("aluminum-recipe-se") -- Space Exploration
|
||||
require("compatibility/248k-recipes")
|
||||
-- require("aluminum-compressed")
|
||||
local util = require("data-util");
|
||||
|
||||
|
||||
if mods.Krastorio2 then
|
||||
if data.raw.item["kr-automation-core"] then
|
||||
data.raw.item["kr-automation-core"].icon = "__bzaluminum2__/graphics/icons/automation-core.png"
|
||||
end
|
||||
if data.raw.technology["kr-automation-core"] then
|
||||
data.raw.technology["kr-automation-core"].icon = "__bzaluminum2__/graphics/technology/automation-core.png"
|
||||
end
|
||||
end
|
||||
|
||||
-- Must be last
|
||||
util.create_list()
|
||||
BIN
bzaluminum2/graphics/entity/ores/hr-aluminum-ore.png
Normal file
|
After Width: | Height: | Size: 2 MiB |
BIN
bzaluminum2/graphics/icons/acsr-cable.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
bzaluminum2/graphics/icons/alumina-1.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
bzaluminum2/graphics/icons/alumina-2.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
bzaluminum2/graphics/icons/alumina-3.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
bzaluminum2/graphics/icons/alumina.blend.png
Normal file
|
After Width: | Height: | Size: 957 KiB |
BIN
bzaluminum2/graphics/icons/alumina.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-2219.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-6061.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-cable.png
Normal file
|
After Width: | Height: | Size: 9 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-ingot.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-ore-2.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-ore-3.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-ore-4.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-ore-powder.png
Normal file
|
After Width: | Height: | Size: 9 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-ore.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
bzaluminum2/graphics/icons/aluminum-plate.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
bzaluminum2/graphics/icons/automation-core.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
bzaluminum2/graphics/icons/enriched-aluminum-1.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
bzaluminum2/graphics/icons/enriched-aluminum-2.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
bzaluminum2/graphics/icons/enriched-aluminum-3.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
bzaluminum2/graphics/icons/enriched-aluminum.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
bzaluminum2/graphics/icons/molten-aluminum.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
bzaluminum2/graphics/icons/spark-plug.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
bzaluminum2/graphics/icons/stacked/acsr-cable-stacked.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
bzaluminum2/graphics/icons/stacked/alumina-stacked.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
bzaluminum2/graphics/icons/stacked/aluminum-2219-stacked.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
bzaluminum2/graphics/icons/stacked/aluminum-6061-stacked.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
bzaluminum2/graphics/icons/stacked/aluminum-ore-stacked.png
Normal file
|
After Width: | Height: | Size: 8 KiB |
BIN
bzaluminum2/graphics/icons/stacked/aluminum-plate-stacked.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
bzaluminum2/graphics/icons/stacked/automation-core-stacked.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 17 KiB |
BIN
bzaluminum2/graphics/icons/stacked/spark-plug-stacked.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
bzaluminum2/graphics/icons/stacked/ti-sapphire-stacked.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
bzaluminum2/graphics/icons/ti-sapphire.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
bzaluminum2/graphics/technology/automation-core.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
bzaluminum2/graphics/technology/reinforced-cable.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
33
bzaluminum2/info.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"name": "bzaluminum2",
|
||||
"version": "2.0.0",
|
||||
"factorio_version": "2.0",
|
||||
"title": "Aluminum",
|
||||
"author": "Brevven, cackling fiend",
|
||||
"contact": "",
|
||||
"homepage": "",
|
||||
"dependencies": [
|
||||
"base >= 2.0.0",
|
||||
"bzfoundry >= 2.0.0",
|
||||
"~ bz-dsr-bridge",
|
||||
"? bztitanium >= 2.0.26",
|
||||
"? bzlead >= 2.0.28",
|
||||
"? bzzirconium >= 2.1.13",
|
||||
"? bztungsten >= 0.5.4",
|
||||
"? bzcarbon >= 2.0.21",
|
||||
"? space-exploration >= 0.7.34",
|
||||
"? aai-industry >= 0.6.13",
|
||||
"? Krastorio2 >= 2.0.8",
|
||||
"? sand-and-glass",
|
||||
"? 248k-Redux",
|
||||
"? deadlock-beltboxes-loaders",
|
||||
"? DeadlockCrating",
|
||||
"(?) bobtech",
|
||||
"(?) bobassembly",
|
||||
"(?) bobpower",
|
||||
"(?) scattergun_turret",
|
||||
"! space-age"
|
||||
],
|
||||
"description": "Adds aluminum, alumina, cables, alloys and more to the game.\n\nCompatible with Krastorio 2 and Space Exploration. A standalone piece of BZ Mods."
|
||||
}
|
||||
|
||||
81
bzaluminum2/locale/cs/aluminum.cfg
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
[entity-name]
|
||||
aluminum-ore=Hliníková ruda
|
||||
|
||||
# VTK Deep Core Mining
|
||||
aluminum-ore-patch=__ITEM__aluminum_upper__ ore patch
|
||||
aluminum-ore-patch-chunk=__ENTITY__aluminum-ore-patch__ kus
|
||||
aluminum-ore-patch-ore=__ENTITY__aluminum-ore-patch__ ruda
|
||||
|
||||
|
||||
[autoplace-control-names]
|
||||
aluminum-ore=[item=aluminum-ore] Hliníková ruda
|
||||
|
||||
[item-name]
|
||||
aluminum_upper=Hliník
|
||||
aluminum_lower=hliník
|
||||
aluminum-ore=Hliníková ruda
|
||||
alumina=Alumina
|
||||
aluminum-dust=Hliníkový prach
|
||||
aluminum-plate=Hliníkový plát
|
||||
aluminum-ingot=Hliníkový ingot
|
||||
aluminum-cable=Hliníkový kabel
|
||||
aluminum-2219=2219 hliníková slitina
|
||||
aluminum-6061=6061 hliníková slitina
|
||||
enriched-aluminum=Obohacený hliník
|
||||
compressed-aluminum-ore=Lisovaná hliníková ruda
|
||||
acsr-cable=AlFe kabel
|
||||
spark-plug=Zapalovací svíčka
|
||||
ti-sapphire=Titan-safírový krystal
|
||||
vtk-deepcore-mining-aluminum-ore-chunk=Kus hliníkové rudy
|
||||
|
||||
[item-description]
|
||||
aluminum-ore=Lze přetavit do hliníkových plátů
|
||||
enriched-aluminum=Lze účinně přetavit do hliníkových plátů
|
||||
aluminum-2219=Letecká hliníková slitina
|
||||
aluminum-6061=Základní hliníková slitina
|
||||
aluminum-cable=Holý Al vodič
|
||||
acsr-cable=Holý Al vodič s ocelovým jádrem
|
||||
spark-plug=Zapalovací svíčka
|
||||
|
||||
[fluid-name]
|
||||
molten-aluminum=Roztavený hliník
|
||||
|
||||
[technology-name]
|
||||
aluminum-matter-processing=Zpracování hliníku
|
||||
reinforced-cable=Odolný kabel
|
||||
aerospace-alloys=Letecké slitiny
|
||||
basic-alloys=Základní slitiny
|
||||
copper-processing=Zpracování mědi
|
||||
|
||||
[technology-description]
|
||||
enriched-aluminum=Obohacení hliníkové rudy flotací kyselinou sírovou [fluid=sulfuric-acid] a vodou [fluid=water], čímž se zlepší výtěžnost. Vedlejším produktem je špinavá voda [fluid=dirty-water].
|
||||
reinforced-cable=Silnější kabely, více energie.
|
||||
aerospace-alloys=Slitiny vhodné pro specifické úkoly.
|
||||
|
||||
[recipe-name]
|
||||
alumina=__ITEM__alumina__
|
||||
enriched-aluminum=__ITEM__enriched-aluminum__
|
||||
aluminum-plate=__ITEM__aluminum-plate__
|
||||
smelt-compressed-aluminum-ore=__ITEM__aluminum-plate__
|
||||
aluminum-dust=__ITEM__aluminum-dust__
|
||||
dirty-water-filtration-aluminum=Filtrace špinavé vody [item=aluminum-ore]
|
||||
bz-aluminum-ingot=Hlinikový ingot
|
||||
alumina-smelting-vulcanite=__ITEM__alumina__
|
||||
ti-sapphire=__ITEM__ti-sapphire__
|
||||
vtk-deepcore-mining-ore-chunk-refining-aluminum-ore-focus= Rafinace kusů rudy zaměřené na Hliník
|
||||
|
||||
[recipe-description]
|
||||
enriched-aluminum=Obohacení hliníkové rudy flotací kyselinou sírovou [fluid=sulfuric-acid] a vodou [fluid=water], čímž se zlepší výtěžnost. Vedlejším produktem je špinavá voda [fluid=dirty-water].
|
||||
dirty-water-filtration-aluminum=Filtrací odpadních vod po flotaci se získává hliníková ruda [item=aluminum-ore] a další produkty (úměrně).
|
||||
|
||||
# Settings
|
||||
|
||||
[mod-setting-name]
|
||||
bzaluminum-recipe-bypass=Ignorované recepty
|
||||
bzaluminum-list=Vytvoří seznam modifikovaných receptů
|
||||
bzaluminum-byproduct=Výstupní vedlejší produkty
|
||||
|
||||
[mod-setting-description]
|
||||
bzaluminum-recipe-bypass=Modifikace originálních receptů uvedených v seznamu nebudou povoleny. Jednotlivé recepty oddělte čárkami.
|
||||
bzaluminum-list=Pokud je povoleno, textový příkaz [color=orange]BZList[/color] vypíše soubor do adresáře s výstupem skriptu s úplným seznamem upravených receptů. Doporučuje se toto vypnout, jakmile dokončíte konfiguraci ostatních nastavení.
|
||||
bzaluminum-byproduct=Je-li povoleno a je-li použita silika (oxid křemičitý), produkce hliníku bude jako vedlejší produkt vyrábět siliku.
|
||||
66
bzaluminum2/locale/de/aluminum.cfg
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
[autoplace-control-names]
|
||||
aluminum-ore=[item=aluminum-ore] Aluminum ore
|
||||
|
||||
[item-name]
|
||||
aluminum=Aluminium
|
||||
aluminum-ore=__ITEM__aluminum__ Erz
|
||||
alumina=Alumina
|
||||
aluminum-dust=__ITEM__aluminum__ Pulver
|
||||
aluminum-plate=__ITEM__aluminum__ Platte
|
||||
aluminum-cable=__ITEM__aluminum__ Kabel
|
||||
aluminum-2219=2219 __ITEM__aluminum__ Legierung
|
||||
aluminum-6061=6061 __ITEM__aluminum__ Legierung
|
||||
enriched-aluminum=Angereichertes __ITEM__aluminum__
|
||||
compressed-aluminum-ore=Komprimiertes __ITEM__aluminum-ore__
|
||||
acsr-cable=ACSR Kabel
|
||||
spark-plug=Zündkerze
|
||||
ti-sapphire=Ti-Saphirkristall
|
||||
|
||||
[entity-name]
|
||||
aluminum-ore=__ITEM__aluminum-ore__
|
||||
|
||||
[item-description]
|
||||
aluminum-ore=Kann zu __ITEM__aluminum-plate__n geschmolzen werden
|
||||
enriched-aluminum=Kann effizienter in __ITEM__aluminum-plate__n geschmolzen werden
|
||||
aluminum-2219=Eine für die Luft- und Raumfahrt genutzte Legierung
|
||||
aluminum-6061=Eine weit verbreitete Aluminium Legierung
|
||||
aluminum-cable=AAAC Kabel
|
||||
acsr-cable=Stahlverstärkter Aluminiumleiter
|
||||
spark-plug=Eine Zündkerze
|
||||
|
||||
[technology-name]
|
||||
aluminum-matter-processing=Aluminium Umwandlung
|
||||
reinforced-cable=Verstärktes Kabel
|
||||
aerospace-alloys=Luft- und Raumfahrt Legierungen
|
||||
basic-alloys=Grundlegende Legierungen
|
||||
copper-processing=Kupferverarbeitung
|
||||
|
||||
[technology-description]
|
||||
enriched-aluminum=Reichert __ITEM__aluminum-ore__ durch reinigen mit __ITEM__sulfuric-acid__ [fluid=sulfuric-acid] und __ITEM__water__ [fluid=water] an was den Ertrag erhöht. Produziert ausserdem __ITEM__dirty-water__ [fluid=dirty-water] als Nebenprodukt.
|
||||
reinforced-cable=Größere Kabel, mehr Energie.
|
||||
aerospace-alloys=Für die Aufgabe geeignete Legierungen.
|
||||
|
||||
[recipe-name]
|
||||
alumina=__ITEM__alumina__
|
||||
enriched-aluminum=__ITEM__enriched-aluminum__
|
||||
aluminum-plate=__ITEM__aluminum-plate__
|
||||
smelt-compressed-aluminum-ore=__ITEM__aluminum-plate__
|
||||
aluminum-dust=__ITEM__aluminum-dust__
|
||||
dirty-water-filtration-aluminum=__ITEM__dirty-water__ Filterung [item=aluminum-ore]
|
||||
bz-aluminum-ingot=__ITEM__aluminum__ ingot
|
||||
alumina-smelting-vulcanite=__ITEM__alumina__
|
||||
ti-sapphire=__ITEM__ti-sapphire__
|
||||
|
||||
[recipe-description]
|
||||
enriched-aluminum=Reichert __ITEM__aluminum-ore__ durch reinigen mit __ITEM__sulfuric-acid__ [fluid=sulfuric-acid] und __ITEM__water__ [fluid=water] an was den Ertrag erhöht. Produziert ausserdem __ITEM__dirty-water__ [fluid=dirty-water] als Nebenprodukt.
|
||||
dirty-water-filtration-aluminum=Filtert aus __ITEM__dirty-water__ __ITEM__aluminum-ore__e [item=aluminum-ore] und andere Stoffe heraus.
|
||||
|
||||
# Settings
|
||||
|
||||
[mod-setting-name]
|
||||
bzaluminum-recipe-bypass=Rezepte umgehen
|
||||
bzaluminum-list=Erstelle eine Liste modifizerter Rezepte
|
||||
|
||||
[mod-setting-description]
|
||||
bzaluminum-recipe-bypass=Überspringt das Ändern dieser Rezepte (Komma separierte Liste).
|
||||
bzaluminum-list=Wenn aktiv kann mittels des Befehls [color=orange]BZList[/color] eine Liste aller modifizierten Rezepte im script-output Ordner erstellt werden.\nDies sollte nach setzen der Einstellungen wieder deaktiviert werden.
|
||||
88
bzaluminum2/locale/en/aluminum.cfg
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
[entity-name]
|
||||
aluminum-ore=__ITEM__aluminum_upper__ ore
|
||||
|
||||
[entity-description]
|
||||
wpe_broken_lab=To repair, insert 100[item=iron-plate], 100[item=iron-gear-wheel], 50[item=repair-pack]
|
||||
|
||||
# VTK Deep Core Mining
|
||||
aluminum-ore-patch=__ITEM__aluminum_upper__ ore patch
|
||||
aluminum-ore-patch-chunk=__ENTITY__aluminum-ore-patch__ chunk
|
||||
aluminum-ore-patch-ore=__ENTITY__aluminum-ore-patch__ ore
|
||||
|
||||
|
||||
[autoplace-control-names]
|
||||
aluminum-ore=[item=aluminum-ore] __ITEM__aluminum_upper__ ore
|
||||
|
||||
[item-name]
|
||||
aluminum_upper=Aluminum
|
||||
aluminum_lower=aluminum
|
||||
aluminum-ore=__ITEM__aluminum_upper__ ore
|
||||
alumina=Alumina
|
||||
aluminum-dust=__ITEM__aluminum_upper__ dust
|
||||
aluminum-plate=__ITEM__aluminum_upper__ plate
|
||||
aluminum-ingot=__ITEM__aluminum_upper__ ingot
|
||||
aluminum-cable=__ITEM__aluminum_upper__ cable
|
||||
aluminum-2219=2219 __ITEM__aluminum_lower__ alloy
|
||||
aluminum-6061=6061 __ITEM__aluminum_lower__ alloy
|
||||
enriched-aluminum=Enriched __ITEM__aluminum_lower__
|
||||
compressed-aluminum-ore=Compressed __ITEM__aluminum_lower__ ore
|
||||
acsr-cable=ACSR cable
|
||||
spark-plug=Spark plug
|
||||
ti-sapphire=Ti-sapphire crystal
|
||||
vtk-deepcore-mining-aluminum-ore-chunk=__ITEM__aluminum_upper__ ore chunk
|
||||
|
||||
[item-description]
|
||||
aluminum-ore=Can be smelted into __ITEM__aluminum_lower__ plates
|
||||
enriched-aluminum=Can be efficiently smelted into __ITEM__aluminum_lower__ plates
|
||||
aluminum-2219=An aerospace-grade __ITEM__aluminum_lower__ alloy
|
||||
aluminum-6061=A common __ITEM__aluminum_lower__ alloy
|
||||
aluminum-cable=AAAC cable
|
||||
acsr-cable=__ITEM__aluminum_upper__ conductor steel-reinforced
|
||||
spark-plug=A flame igniter
|
||||
|
||||
[fluid-name]
|
||||
molten-aluminum=Molten __ITEM__aluminum_lower__
|
||||
|
||||
[technology-name]
|
||||
aluminum-matter-processing=__ITEM__aluminum_upper__ conversion
|
||||
reinforced-cable=Reinforced cable
|
||||
aerospace-alloys=Aerospace alloys
|
||||
basic-alloys=Basic alloys
|
||||
copper-processing=Copper processing
|
||||
|
||||
[technology-description]
|
||||
enriched-aluminum=Enrich __ITEM__aluminum_lower__ ore, purifying with sulfuric acid [fluid=sulfuric-acid] and water [fluid=water], improving the final yield. Produce dirty water [fluid=dirty-water] as a byproduct.
|
||||
reinforced-cable=Bigger cables, more power.
|
||||
aerospace-alloys=Alloys suited to the task.
|
||||
|
||||
[recipe-name]
|
||||
alumina=__ITEM__alumina__
|
||||
enriched-aluminum=__ITEM__enriched-aluminum__
|
||||
aluminum-plate=__ITEM__aluminum-plate__
|
||||
smelt-compressed-aluminum-ore=__ITEM__aluminum-plate__
|
||||
aluminum-dust=__ITEM__aluminum-dust__
|
||||
dirty-water-filtration-aluminum=Filter dirty water [item=aluminum-ore]
|
||||
bz-aluminum-ingot=__ITEM__aluminum_upper__ ingot
|
||||
alumina-smelting-vulcanite=__ITEM__alumina__
|
||||
ti-sapphire=__ITEM__ti-sapphire__
|
||||
vtk-deepcore-mining-ore-chunk-refining-aluminum-ore-focus=__ITEM__aluminum_upper__ focused ore chunk refining
|
||||
vtk-deepcore-mining-aluminum-ore-chunk-refining=__ITEM__vtk-deepcore-mining-aluminum-ore-chunk__ refining
|
||||
|
||||
[recipe-description]
|
||||
enriched-aluminum=Enrich __ITEM__aluminum_lower__ ore, purifying with sulfuric acid [fluid=sulfuric-acid] and water [fluid=water], improving the final yield. Produce dirty water [fluid=dirty-water] as a byproduct.
|
||||
|
||||
dirty-water-filtration-aluminum=Filter dirty water, giving __ITEM__aluminum_lower__ ore [item=aluminum-ore] and other outputs (probabilistically).
|
||||
|
||||
# Settings
|
||||
|
||||
[mod-setting-name]
|
||||
bzaluminum-recipe-bypass=Bypass recipes
|
||||
bzaluminum-list=Make a list of modified recipes
|
||||
bzaluminum-byproduct=Output byproducts
|
||||
bzaluminum-starting-items=Start with a burner inserter
|
||||
|
||||
[mod-setting-description]
|
||||
bzaluminum-recipe-bypass=Skip modifying these recipes (comma-separated list).
|
||||
bzaluminum-list=If enabled, the text command [color=orange]BZList[/color] will dump a file to the script-output directory with a full list of recipes modified.\nRecommended to turn this off after you are done configuring your other settings.
|
||||
bzaluminum-byproduct=If enabled, and if silica is used, __ITEM__aluminum_lower__ production will output silica as a byproduct.
|
||||
bzaluminum-starting-items=Burner inserters require aluminum to make, which means manually moving alumina around. Leave this setting on to get a single burner inserter to propel you forward by a few seconds in a new game.
|
||||
85
bzaluminum2/locale/ja/aluminum.cfg
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
[entity-name]
|
||||
aluminum-ore=__ITEM__aluminum_upper__鉱石
|
||||
|
||||
# VTK Deep Core Mining
|
||||
aluminum-ore-patch=__ITEM__aluminum_upper__ ore patch
|
||||
aluminum-ore-patch-chunk=__ENTITY__aluminum-ore-patch__ chunk
|
||||
aluminum-ore-patch-ore=__ENTITY__aluminum-ore-patch__ ore
|
||||
|
||||
|
||||
[autoplace-control-names]
|
||||
aluminum-ore=[item=aluminum-ore] __ITEM__aluminum_upper__鉱石
|
||||
|
||||
[item-name]
|
||||
aluminum_upper=アルミニウム
|
||||
aluminum_lower=アルミニウム
|
||||
aluminum-ore=__ITEM__aluminum_upper__鉱石
|
||||
alumina=アルミナ
|
||||
aluminum-dust=__ITEM__aluminum_upper__ dust
|
||||
aluminum-plate=__ITEM__aluminum_upper__板
|
||||
aluminum-ingot=__ITEM__aluminum_upper__インゴット
|
||||
aluminum-cable=__ITEM__aluminum_upper__線
|
||||
aluminum-2219=A2219__ITEM__aluminum_lower__合金
|
||||
aluminum-6061=A6061__ITEM__aluminum_lower__合金
|
||||
enriched-aluminum=純化__ITEM__aluminum_lower__
|
||||
compressed-aluminum-ore=Compressed __ITEM__aluminum_lower__ ore
|
||||
acsr-cable=ACSRケーブル
|
||||
spark-plug=点火プラグ
|
||||
ti-sapphire=チタンサファイア結晶
|
||||
vtk-deepcore-mining-aluminum-ore-chunk=__ITEM__aluminum_upper__ ore chunk
|
||||
|
||||
[item-description]
|
||||
aluminum-ore=製錬して__ITEM__aluminum-plate__を得ることができます
|
||||
enriched-aluminum=製錬して効率的に__ITEM__aluminum-plate__を得ることができます
|
||||
aluminum-2219=航空宇宙グレードの__ITEM__aluminum_lower__合金
|
||||
aluminum-6061=一般的な__ITEM__aluminum_lower__合金
|
||||
aluminum-cable=AAACケーブル
|
||||
acsr-cable=鋼鉄で強度を増した__ITEM__aluminum_lower__導体
|
||||
spark-plug=点火装置
|
||||
|
||||
[fluid-name]
|
||||
molten-aluminum=溶融__ITEM__aluminum_lower__
|
||||
|
||||
[technology-name]
|
||||
aluminum-matter-processing=__ITEM__aluminum_upper__変換
|
||||
reinforced-cable=強化ケーブル
|
||||
aerospace-alloys=航空宇宙用合金
|
||||
basic-alloys=基本的な合金
|
||||
copper-processing=銅処理
|
||||
|
||||
[technology-description]
|
||||
enriched-aluminum=__ITEM__aluminum-ore__を硫酸[fluid=sulfuric-acid] と水で[fluid=water] 処理し、収量を改善します。副産物として汚水[fluid=dirty-water] を生産します。
|
||||
reinforced-cable=大電力のための大型ケーブル
|
||||
aerospace-alloys=過酷な用途に適した合金
|
||||
|
||||
[recipe-name]
|
||||
alumina=__ITEM__alumina__
|
||||
enriched-aluminum=__ITEM__enriched-aluminum__
|
||||
aluminum-plate=__ITEM__aluminum-plate__
|
||||
smelt-compressed-aluminum-ore=__ITEM__aluminum-plate__
|
||||
aluminum-dust=__ITEM__aluminum-dust__
|
||||
dirty-water-filtration-aluminum=汚水をろ過[item=aluminum-ore]
|
||||
bz-aluminum-ingot=__ITEM__aluminum_upper__インゴット
|
||||
alumina-smelting-vulcanite=__ITEM__alumina__
|
||||
ti-sapphire=__ITEM__ti-sapphire__
|
||||
vtk-deepcore-mining-ore-chunk-refining-aluminum-ore-focus=__ITEM__aluminum_upper__ focused ore chunk refining
|
||||
vtk-deepcore-mining-aluminum-ore-chunk-refining=__ITEM__vtk-deepcore-mining-aluminum-ore-chunk__ refining
|
||||
|
||||
[recipe-description]
|
||||
enriched-aluminum=__ITEM__aluminum-ore__を硫酸[fluid=sulfuric-acid] と水で[fluid=water] 処理し、収量を改善します。副産物として汚水[fluid=dirty-water] を生産します。
|
||||
|
||||
dirty-water-filtration-aluminum=汚水をろ過し、__ITEM__aluminum-ore__[item=aluminum-ore] と他のアイテムを確率的に生産します。
|
||||
|
||||
# Settings
|
||||
|
||||
[mod-setting-name]
|
||||
bzaluminum-recipe-bypass=改変しないレシピ
|
||||
bzaluminum-list=改変されたレシピのリストを作成
|
||||
bzaluminum-byproduct=副産物あり
|
||||
bzaluminum-starting-items=燃料式インサータを所持してゲームを開始
|
||||
|
||||
[mod-setting-description]
|
||||
bzaluminum-recipe-bypass=指定したレシピの改変を行わない (コンマ区切り)。
|
||||
bzaluminum-list=有効にすると、テキストコマンド [color=orange]BZList[/color] で、改変されたレシピの完全なリストを script-output ディレクトリにファイルとして書き出します。\n他の設定を終えた後は無効にすることを推奨します。
|
||||
bzaluminum-byproduct=有効かつ Silica を使用する場合、__ITEM__aluminum_lower__生産時に副産物として珪砂も生産されます。
|
||||
bzaluminum-starting-items=燃料式インサータの作成にはアルミニウムが必要なので、アルミナは手作業で運ぶ必要があります。本設定をオンにしておき燃料式インサータを入手すれば、新規ゲームでの進捗をわずかに稼ぐことができます。
|
||||
66
bzaluminum2/locale/ko/aluminum.cfg
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
[entity-name]
|
||||
aluminum-ore=알루미늄 광석
|
||||
|
||||
[autoplace-control-names]
|
||||
aluminum-ore=[item=aluminum-ore] 알루미늄 광석
|
||||
|
||||
[item-name]
|
||||
aluminum-ore=알루미늄 광석
|
||||
alumina=알루미나
|
||||
aluminum-dust=알루미늄 분진
|
||||
aluminum-plate=알루미늄 판
|
||||
aluminum-cable=알루미늄 케이블
|
||||
aluminum-2219=2219 알루미늄 합금
|
||||
aluminum-6061=6061 알루미늄 합금
|
||||
enriched-aluminum=농축 알루미늄
|
||||
compressed-aluminum-ore=압축 알루미늄 광석
|
||||
acsr-cable=ACSR 케이블
|
||||
spark-plug=스파크 플러그
|
||||
ti-sapphire=Ti-사파이어 크리스탈
|
||||
|
||||
[item-description]
|
||||
aluminum-ore=알루미늄 판으로 제련할 수 있음
|
||||
enriched-aluminum=알루미늄 판으로 효율적으로 제련할 수 있음
|
||||
aluminum-2219=항공우주 등급의 알루미늄 합금
|
||||
aluminum-6061=일반적인 알루미늄 합금
|
||||
aluminum-cable=AAAC 케이블
|
||||
acsr-cable=알루미늄 도체 강철 재질
|
||||
spark-plug=점화 스위치
|
||||
|
||||
[technology-name]
|
||||
aluminum-matter-processing=알루미늄 변환
|
||||
reinforced-cable=강화 케이블
|
||||
aerospace-alloys=항공우주 합금
|
||||
basic-alloys=기본 합금
|
||||
copper-processing=구리 가공
|
||||
|
||||
[technology-description]
|
||||
enriched-aluminum=알루미늄 광석을 농축하고 황산 [fluid=sulfuric-acid] 및 물 [fluid=water]로 정제하여 최종 산출량을 향상시킵니다. 부산물로 더러운 물 [fluid=dirty-water]을 생산합니다.
|
||||
reinforced-cable=더 큰 케이블, 더 많은 전력.
|
||||
aerospace-alloys=작업에 적합한 합금.
|
||||
|
||||
[recipe-name]
|
||||
alumina=__ITEM__alumina__
|
||||
enriched-aluminum=__ITEM__enriched-aluminum__
|
||||
aluminum-plate=__ITEM__aluminum-plate__
|
||||
smelt-compressed-aluminum-ore=__ITEM__aluminum-plate__
|
||||
aluminum-dust=__ITEM__aluminum-dust__
|
||||
dirty-water-filtration-aluminum=더러운 물 여과 [item=aluminum-ore]
|
||||
bz-aluminum-ingot=알루미늄 주괴
|
||||
alumina-smelting-vulcanite=__ITEM__alumina__
|
||||
ti-sapphire=__ITEM__ti-sapphire__
|
||||
|
||||
[recipe-description]
|
||||
enriched-aluminum=알루미늄 광석을 농축하고 황산 [fluid=sulfuric-acid] 및 물 [fluid=water]로 정제하여 최종 산출량을 향상시킨다. 부산물로 더러운 물 [fluid=dirty-water]을 생산합니다.
|
||||
|
||||
dirty-water-filtration-aluminum=더러운 물을 여과하여 알루미늄 광석 [item=aluminum-ore] 및 기타 산출물(확률적)을 생성합니다.
|
||||
|
||||
# 설정
|
||||
|
||||
[mod-setting-name]
|
||||
bzaluminum-recipe-bypass=우회 제작법
|
||||
bzaluminum-list=수정된 제작법 목록 작성
|
||||
|
||||
[mod-setting-description]
|
||||
bzaluminum-recipe-bypass=이러한 제작법 수정을 건너뜁니다(콤마로 구분된 목록).
|
||||
bzaluminum-list=활성화된 경우 텍스트 명령 [color=orange]BZList[/color]가 전체 레시피 목록이 수정된 스크립트 출력 디렉토리에 파일을 덤프합니다.\n다른 설정을 구성한 후 이 설정을 해제하는 것이 좋습니다.
|
||||
76
bzaluminum2/locale/ru/aluminum.cfg
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
[entity-name]
|
||||
aluminum-ore=Алюминиевая руда
|
||||
|
||||
[autoplace-control-names]
|
||||
aluminum-ore=[item=aluminum-ore] Алюминиевая руда
|
||||
|
||||
[item-name]
|
||||
aluminum_upper=Алюминий
|
||||
aluminum_lower=алюминий
|
||||
aluminum-ore=Алюминиевая руда
|
||||
alumina=Глинозем
|
||||
aluminum-dust=Алюминиевая пыль
|
||||
aluminum-plate=Алюминиевая плита
|
||||
aluminum-ingot=Алюминиевый слиток
|
||||
aluminum-cable=Алюминиевый кабель
|
||||
aluminum-2219=Алюминий 2219
|
||||
aluminum-6061=Алюминий 6061
|
||||
enriched-aluminum=Обогащенный алюминий
|
||||
compressed-aluminum-ore=Прессованная алюминиевая руда
|
||||
acsr-cable=Кабель ACSR
|
||||
spark-plug=Свеча зажигания
|
||||
ti-sapphire=Титан-сапфировый кристалл
|
||||
|
||||
[item-description]
|
||||
alumina=Может использоваться непосредственно или переплавляться в алюминиевую плиту.
|
||||
aluminum-ore=Может быть переработан в глинозем [item=alumina].
|
||||
enriched-aluminum=Может быть эффективно переплавлен в алюминиевую плиту.
|
||||
aluminum-2219=Алюминиевый сплав аэрокосмического класса.
|
||||
aluminum-6061=Обычный алюминиевый сплав.
|
||||
aluminum-cable=Алюминиевый кабель.
|
||||
acsr-cable=Кабель с алюминиевой жилой, армированный сталью.
|
||||
spark-plug=Устройство для воспламенения топливо-воздушной смеси.
|
||||
|
||||
[fluid-name]
|
||||
molten-aluminum=Расплавленный алюминий
|
||||
|
||||
[technology-name]
|
||||
aluminum-matter-processing=Преобразование алюминия в материю
|
||||
reinforced-cable=Армированный кабель
|
||||
aerospace-alloys=Сплавы для аэрокосмической промышленности
|
||||
basic-alloys=Основные сплавы
|
||||
copper-processing=Переработка меди
|
||||
|
||||
[technology-description]
|
||||
enriched-aluminum=Обогащение алюминиевой руды, при помощи очистки серной кислотой [fluid=sulfuric-acid] и водой [fluid=water], повышая качество выходной продукции. Производит грязную воду [fluid=dirty-water] как побочный продукт.
|
||||
reinforced-cable=Больше кабелей, больше мощности.
|
||||
aerospace-alloys=Сплавы, подходящие для задач аэрокосмической промышленности.
|
||||
|
||||
[recipe-name]
|
||||
alumina=__ITEM__alumina__
|
||||
enriched-aluminum=__ITEM__enriched-aluminum__
|
||||
aluminum-plate=__ITEM__aluminum-plate__
|
||||
smelt-compressed-aluminum-ore=__ITEM__aluminum-plate__
|
||||
aluminum-dust=__ITEM__aluminum-dust__
|
||||
dirty-water-filtration-aluminum=Фильтрация грязной воды [item=aluminum-ore]
|
||||
bz-aluminum-ingot=Алюминиевый слиток
|
||||
alumina-smelting-vulcanite=__ITEM__alumina__
|
||||
ti-sapphire=__ITEM__ti-sapphire__
|
||||
|
||||
[recipe-description]
|
||||
enriched-aluminum=Обогащение алюминиевой руды, при помощи очистки серной кислотой [fluid=sulfuric-acid] и водой [fluid=water], повышая качество выходной продукции. Производит грязную воду [fluid=dirty-water] как побочный продукт.
|
||||
dirty-water-filtration-aluminum=Отфильтровывает из грязной воды алюминиевую руду [item=aluminum-ore] и другие выходящие продукты.
|
||||
|
||||
# Settings
|
||||
|
||||
[mod-setting-name]
|
||||
bzaluminum-recipe-bypass=Обходные рецепты
|
||||
bzaluminum-list=Список измененных рецептов
|
||||
bzaluminum-byproduct=Выходные побочные продукты
|
||||
bzaluminum-starting-items=Старт с твердотопливным манипулятором
|
||||
|
||||
[mod-setting-description]
|
||||
bzaluminum-recipe-bypass=Пропустить изменение этих рецептов (список, разделенный запятыми).
|
||||
bzaluminum-list=Если эта функция включена, текстовая команда [color=orange]BZList[/color] будет сбрасывать файл в каталог script-output с полным списком измененных рецептов.\nРекомендуется выключить эту функцию после того, как вы закончите настройку других параметров.
|
||||
bzaluminum-byproduct=Если включено, и если используется кремнезем, производство алюминия будет выдавать кремнезем в качестве побочного продукта.
|
||||
bzaluminum-starting-items=Для производства твердотопливных манипуляторов требуется алюминий, из-за чего его придётся перемещать вручную. Оставьте эту настройку включенной чтобы ускорить прогресс в самом начале игры на несколько секунд.
|
||||
86
bzaluminum2/locale/zh-CN/bzaluminum.cfg
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
[entity-name]
|
||||
aluminum-ore=铝矿
|
||||
|
||||
# VTK Deep Core Mining
|
||||
aluminum-ore-patch=铝矿
|
||||
aluminum-ore-patch-chunk=深岩__ENTITY__aluminum-ore-patch__
|
||||
aluminum-ore-patch-ore=__ENTITY__aluminum-ore-patch__
|
||||
|
||||
|
||||
[autoplace-control-names]
|
||||
aluminum-ore=[item=aluminum-ore]铝矿
|
||||
|
||||
[item-name]
|
||||
aluminum_lower=铝
|
||||
aluminum-ore=铝矿
|
||||
alumina=氧化铝
|
||||
aluminum-dust=铝粉尘
|
||||
aluminum-plate=铝板
|
||||
aluminum-ingot=铝锭
|
||||
aluminum-cable=铝线
|
||||
aluminum-2219=2219铝合金
|
||||
aluminum-6061=6061铝合金
|
||||
enriched-aluminum=富化铝矿
|
||||
compressed-aluminum-ore=压缩铝矿
|
||||
acsr-cable=ACSR线缆
|
||||
spark-plug=火花塞
|
||||
ti-sapphire=钛宝石激光晶体
|
||||
vtk-deepcore-mining-aluminum-ore-chunk=深岩铝矿
|
||||
|
||||
[item-description]
|
||||
aluminum-ore=可以冶炼成铝板。
|
||||
enriched-aluminum=可以高效的冶炼成铝板。
|
||||
aluminum-2219=一种航空级别的铝合金。
|
||||
aluminum-6061=一种常见的铝合金。
|
||||
aluminum-cable=全铝合金导体的线缆。
|
||||
acsr-cable=钢芯铝导体的线缆。
|
||||
spark-plug=一个点火器。
|
||||
|
||||
[fluid-name]
|
||||
molten-aluminum=熔融铝浆
|
||||
|
||||
[technology-name]
|
||||
aluminum-matter-processing=铝转换
|
||||
reinforced-cable=加强电缆
|
||||
aerospace-alloys=宇航合金
|
||||
basic-alloys=基本合金
|
||||
copper-processing=铜处理
|
||||
|
||||
[technology-description]
|
||||
enriched-aluminum=使用硫酸[fluid=sulfuric-acid]和水[fluid=water]提纯使铝矿富集,从而提高最终的产量。产出脏水[fluid=dirty-water]作为副产品。
|
||||
reinforced-cable=更粗大的线缆,更多的电力。
|
||||
aerospace-alloys=适合这项任务的合金。
|
||||
|
||||
[recipe-name]
|
||||
alumina=__ITEM__alumina__
|
||||
enriched-aluminum=__ITEM__enriched-aluminum__
|
||||
aluminum-plate=__ITEM__aluminum-plate__
|
||||
smelt-compressed-aluminum-ore=__ITEM__aluminum-plate__
|
||||
aluminum-dust=__ITEM__aluminum-dust__
|
||||
dirty-water-filtration-aluminum=过滤脏水[item=aluminum-ore]
|
||||
bz-aluminum-ingot=__ITEM__aluminum-ingot__
|
||||
alumina-smelting-vulcanite=__ITEM__alumina__
|
||||
ti-sapphire=__ITEM__ti-sapphire__
|
||||
vtk-deepcore-mining-ore-chunk-refining-aluminum-ore-focus=聚集深岩铝矿
|
||||
vtk-deepcore-mining-aluminum-ore-chunk-refining=__ITEM__vtk-deepcore-mining-aluminum-ore-chunk__精炼
|
||||
|
||||
[recipe-description]
|
||||
enriched-aluminum=使用硫酸[fluid=sulfuric-acid]和水[fluid=water]提纯使铝矿富集,从而提高最终的产量。产出脏水[fluid=dirty-water]作为副产品。
|
||||
dirty-water-filtration-aluminum=过滤脏水,概率获得铝矿[item=copper-ore]和其他副产品。
|
||||
|
||||
# Settings
|
||||
|
||||
[mod-setting-name]
|
||||
bzaluminum-recipe-bypass=跳过合成
|
||||
bzaluminum-list=列出修改过的合成配方
|
||||
bzaluminum-byproduct=产出副产品
|
||||
bzaluminum-starting-items=开局有一个__ITEM__burner-inserter__
|
||||
|
||||
[mod-setting-description]
|
||||
bzaluminum-recipe-bypass=跳过修改这些合成(用逗号分开)。
|
||||
bzaluminum-list=如果启用,在控制台中打[color=orange]BZList[/color]会在script-output文件夹中导出一个全部修改过的合成配方的文件。\n推荐在你调整好其他配置后关闭。
|
||||
bzaluminum-byproduct=如果启用且BZ-硅的二氧化硅启用时,铝产线将会产出二氧化硅为副产品。
|
||||
bzaluminum-starting-items=__ITEM__burner-inserter__需要铝才可以制作,这意味着你需要手动获取氧化铝。开启此设置会在新游戏推进进程几秒钟。
|
||||
|
||||
[mod-name]
|
||||
bzaluminum=BZ-铝
|
||||
10
bzaluminum2/map-gen-preset-updates.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
|
||||
for name, preset in pairs(data.raw["map-gen-presets"].default) do
|
||||
if type(preset) == "table" and
|
||||
preset.basic_settings and
|
||||
preset.basic_settings.autoplace_controls and
|
||||
preset.basic_settings.autoplace_controls["iron-ore"] then
|
||||
preset.basic_settings.autoplace_controls["aluminum-ore"] = preset.basic_settings.autoplace_controls["iron-ore"]
|
||||
end
|
||||
end
|
||||
end
|
||||
46
bzaluminum2/me.lua
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
local me = {}
|
||||
|
||||
me.name = "bzaluminum2"
|
||||
me.list = {}
|
||||
|
||||
|
||||
me.recipes = {"alumina", "aluminum-plate", "aluminum-cable", "acsr-cable", "spark-plug", "aluminum-2219", "aluminum-6061",
|
||||
"enriched-alumina",
|
||||
"enriched-aluminum",
|
||||
"molten-aluminum",
|
||||
"alumina-smelting-vulcanite",
|
||||
"aluminum-plate-smelting-vulcanite",
|
||||
"enriched-alumina-smelting-vulcanite",
|
||||
"ti-sapphire",
|
||||
}
|
||||
|
||||
function me.mod_setting()
|
||||
return me.get_setting("bzmod-setting") == "yes"
|
||||
end
|
||||
|
||||
function me.byproduct()
|
||||
return me.get_setting("bzaluminum-byproduct") and not me.get_setting("bz-no-byproduct")
|
||||
end
|
||||
|
||||
function me.get_setting(name)
|
||||
if settings.startup[name] == nil then
|
||||
return nil
|
||||
end
|
||||
return settings.startup[name].value
|
||||
end
|
||||
|
||||
me.bypass = {}
|
||||
if me.get_setting(me.name.."-recipe-bypass") then
|
||||
for recipe in string.gmatch(me.get_setting(me.name.."-recipe-bypass"), '[^",%s]+') do
|
||||
me.bypass[recipe] = true
|
||||
end
|
||||
end
|
||||
|
||||
function me.add_modified(name)
|
||||
if me.get_setting(me.name.."-list") then
|
||||
table.insert(me.list, name)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return me
|
||||
13
bzaluminum2/settings-util.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- WARNING WARNING WARNING
|
||||
-- This file will be overwritten in mod zipfiles, edit bzlib/settings-util.lua
|
||||
-- WARNING WARNING WARNING
|
||||
|
||||
local util = {}
|
||||
|
||||
function util.set_default_value(t, name, default)
|
||||
if data.raw[t] and data.raw[t][name] then
|
||||
data.raw[t][name].default_value = default
|
||||
end
|
||||
end
|
||||
|
||||
return util
|
||||
27
bzaluminum2/settings.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
data:extend({
|
||||
{
|
||||
type = "string-setting",
|
||||
name = "bzaluminum-recipe-bypass",
|
||||
setting_type = "startup",
|
||||
default_value = "",
|
||||
allow_blank = true,
|
||||
},
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "bzaluminum-byproduct",
|
||||
setting_type = "startup",
|
||||
default_value = true,
|
||||
},
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "bzaluminum-list",
|
||||
setting_type = "startup",
|
||||
default_value = false,
|
||||
},
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "bzaluminum-starting-items",
|
||||
setting_type = "runtime-global",
|
||||
default_value = true,
|
||||
},
|
||||
})
|
||||
48
bzaluminum2/strange-matter.lua
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
local util = require("data-util");
|
||||
|
||||
local ore = "aluminum-ore"
|
||||
local ore_icon = "__bzaluminum2__/graphics/icons/aluminum-ore.png"
|
||||
|
||||
if mods["StrangeMatter"] then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = ore.."-synthesis",
|
||||
icons = {
|
||||
{ icon = ore_icon, icon_size = 64 },
|
||||
{ icon = "__StrangeMatter__/graphics/icons/fluid/matter.png", icon_size = 32, scale=0.5, shift= {-8, -8}},
|
||||
},
|
||||
enabled = false,
|
||||
energy_required = 1,
|
||||
ingredients = {{type="fluid", name="strange-matter", amount = 2}},
|
||||
results = {{type="item", name=ore, amount=1}},
|
||||
category = "crafting-with-fluid",
|
||||
subgroup = "synthesis",
|
||||
},
|
||||
{
|
||||
type = "technology",
|
||||
name = ore.."-synthesis",
|
||||
icons = {
|
||||
{ icon = "__StrangeMatter__/graphics/icons/fluid/matter.png", icon_size = 32, shift= {-6, 0}},
|
||||
{ icon = ore_icon, icon_size = 64, scale=0.25, shift={8, 8}},
|
||||
},
|
||||
prerequisites = {"stone-synthesis"},
|
||||
effects = {
|
||||
{
|
||||
type = "unlock-recipe",
|
||||
recipe = ore.."-synthesis",
|
||||
},
|
||||
},
|
||||
unit = {
|
||||
count = 800,
|
||||
time = 30,
|
||||
ingredients = {
|
||||
{"automation-science-pack", 1},
|
||||
{"logistic-science-pack", 1},
|
||||
{"chemical-science-pack", 1},
|
||||
{"production-science-pack", 1},
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
BIN
bzaluminum2/thumbnail.png
Normal file
|
After Width: | Height: | Size: 24 KiB |