Update to 2.0

This commit is contained in:
Natha 2025-07-22 15:56:16 +02:00 committed by Simon Brodtmann
parent b5beff4ea4
commit 038e666ae8
39 changed files with 208 additions and 530 deletions

View file

@ -15,7 +15,7 @@ data:extend({
icon_size = 128,
subgroup = "raw-material",
order = "z[tungsten-carbide]",
stack_size = util.get_stack_size(100)
stack_size = 100
},
{
type = "item",
@ -24,7 +24,7 @@ data:extend({
icon_size = 128, icon_mipmaps = 3,
subgroup = "raw-material",
order = "b[tungsten-plate]",
stack_size = util.get_stack_size(100)
stack_size = 100
}
})
end
@ -33,7 +33,7 @@ data:extend({
{
type = "recipe",
name = util.me.tungsten_plate,
main_product = util.me.tungsten_plate,
--main_product = util.me.tungsten_plate,
category = "smelting",
order = "d[tungsten-plate]",
icons = (mods["Krastorio2"] and {
@ -45,34 +45,10 @@ data:extend({
{
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128},
}),
normal = (mods["Krastorio2"] and
{
enabled = false,
energy_required = 24,
ingredients = {{"tungsten-ore", 15}},
result = util.me.tungsten_plate,
result_count = 5,
} or
{
enabled = false,
energy_required = 32/15,
ingredients = {{"tungsten-ore", mods.bobplates and 4 or 2}},
result = util.me.tungsten_plate,
}),
expensive = (mods["Krastorio2"] and
{
enabled = false,
energy_required = 32,
ingredients = {{"tungsten-ore", 20}},
result = util.me.tungsten_plate,
result_count = 5,
} or
{
enabled = false,
energy_required = 48/15,
ingredients = {{"tungsten-ore", mods.bobplates and 6 or 3}},
result = util.me.tungsten_plate,
}),
enabled = false,
energy_required = mods["Krastorio2"] and 24 or 32/15,
ingredients = {{type="item", name="tungsten-ore", amount=mods["Krastorio2"] and 15 or (mods.bobplates and 4 or 2)}},
results = {{type="item", name=util.me.tungsten_plate, amount=mods["Krastorio2"] and 5 or 1}}
},
{
type = "technology",
@ -118,24 +94,10 @@ data:extend({
subgroup = "raw-material",
category = "big-smelting",
order = "d[tungsten-plate]",
normal =
{
enabled = false,
energy_required = 6, --TODO
ingredients = {{"tungsten-ore", 100}},
results = {
{type="item", name = util.me.tungsten_plate, amount=50},
}
},
expensive =
{
enabled = false,
energy_required = 15, --TODO
ingredients = {{"tungsten-ore", 99}},
results = {
{type="item", name = util.me.tungsten_plate, amount=33},
}
}
enabled = false,
energy_required = 6, --TODO
ingredients = {{type="item", name="tungsten-ore", amount=100}},
results = {{type="item", name = util.me.tungsten_plate, amount=50}}
} or nil,
})
@ -174,40 +136,17 @@ data:extend({
{
type = "recipe",
name = util.me.tungsten_carbide_recipe,
main_product = util.me.tungsten_carbide_recipe,
--main_product = util.me.tungsten_carbide_recipe,
category = (mods["Krastorio2"] and "smelting" or "smelting-carbon"),
order = "z[tungsten-carbide]",
icons = { mods.bobplates and
{ icon = "__bobplates__/graphics/icons/plate/tungsten-carbide-plate.png", icon_size = 64}
or { icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", icon_size = 128}
},
normal = (mods["Krastorio2"] and
{
enabled = false,
energy_required = 48,
ingredients = {{"tungsten-plate", 10}, {"coke", 5}},
result = "tungsten-carbide",
result_count = 4,
} or {
enabled = false,
energy_required = 64/3,
ingredients = {{"tungsten-plate", 5}},
result = "tungsten-carbide",
result_count = 2,
}),
expensive = (mods["Krastorio2"] and
{
enabled = false,
energy_required = 48,
ingredients = {{"tungsten-plate", 10}, {"coke", 5}},
result = "tungsten-carbide",
result_count = 2,
} or {
enabled = false,
energy_required = 64/3,
ingredients = {{"tungsten-plate", 5}},
result = "tungsten-carbide",
}),
enabled = false,
energy_required = mods["Krastorio2"] and 48 or 64/3,
ingredients = {{type="item", name="tungsten-plate", amount=mods["Krastorio2"] and 10 or 5}, mods["Krastorio2"] and {type="item", name="kr-coke", amount=5} or nil},
results = {{type="item", name="tungsten-carbide", amount=mods["Krastorio2"] and 4 or 2}}
},
})
@ -219,7 +158,7 @@ data:extend({
icon_size = 128,
subgroup = "intermediate-product",
order = "z[rocket-engine-nozzle]",
stack_size = util.get_stack_size(100)
stack_size = 100
},
{
type = "recipe",
@ -232,8 +171,8 @@ data:extend({
},
enabled = false,
energy_required = 5,
ingredients = {{"tungsten-plate", 2}},
results = {{"rocket-engine-nozzle", 1}},
ingredients = {{type="item", name="tungsten-plate", amount=2}},
results = {{type="item", name="rocket-engine-nozzle", amount=1}},
}
})
@ -246,7 +185,7 @@ if util.me.cuw() then
icon_size = 128,
subgroup = "raw-material",
order = "z[cuw]",
stack_size = util.get_stack_size(100),
stack_size = 100,
},
{
type = "recipe",
@ -256,10 +195,10 @@ if util.me.cuw() then
enabled = false,
energy_required = 80,
ingredients = {
{"tungsten-plate", 15},
{"copper-plate", 5},
{type="item", name="tungsten-plate", amount=15},
{type="item", name="copper-plate", amount=5},
},
results = {{"cuw", 20}},
results = {{type="item", name="cuw", amount=20}},
},
})
util.add_unlock(util.me.tungsten_processing, "cuw")
@ -279,8 +218,8 @@ data:extend({
category = "double-smelting-carbon",
enabled = false,
energy_required = 32/3,
ingredients = {{"tungsten-ore", 5}},
results = {{"tungsten-carbide", 1}},
ingredients = {{type="item", name="tungsten-ore", amount=5}},
results = {{type="item", name="tungsten-carbide", amount=1}},
}
})
util.add_effect(util.me.tungsten_processing, {type = "unlock-recipe", recipe = "double-tungsten"})