bobplates

This commit is contained in:
Brevven 2021-07-05 14:55:49 -07:00
parent e9afc3fd39
commit 2de09b4e12
4 changed files with 51 additions and 34 deletions

View file

@ -2,6 +2,8 @@
Version: 0.3.0 Version: 0.3.0
Date: 2021-07-06 Date: 2021-07-06
Features: Features:
- Bob's MCI (bobplates) compatibility. If you use bob's library without bobplates, you might
Need to re-research tungsten processing. Nothing else should change.
- Useful equipment compatibility - Useful equipment compatibility
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.2.8 Version: 0.2.8

View file

@ -3,10 +3,12 @@ local util = {}
util.name = "bztungsten" util.name = "bztungsten"
util.tungsten_ore = "tungsten-ore" util.tungsten_ore = "tungsten-ore"
util.tungsten_plate = "tungsten-plate" util.tungsten_plate = "tungsten-plate"
util.tungsten_carbide_recipe = "tungsten-carbide"
util.tungsten_processing = "tungsten-processing" util.tungsten_processing = "tungsten-processing"
if bobmods and bobmods.lib and bobmods.lib.recipe and bobmods.lib.tech then if mods.bobplates then
util.tungsten_processing = "bz-tungsten-processing" util.tungsten_processing = "bz-tungsten-processing"
util.tungsten_carbide_recipe = "bz-tungsten-carbide"
end end
function util.fe_plus(sub) function util.fe_plus(sub)

View file

@ -28,7 +28,7 @@ advanced-carbon-furnace=For making tungsten carbide quickly and efficiently. Bur
[technology-name] [technology-name]
tungsten-processing=Tungsten processing tungsten-processing=Tungsten processing
bz-tungsten-processing=Tungsten processing bz-tungsten-processing=Basic tungsten processing
enriched-tungsten=Enriched tungsten enriched-tungsten=Enriched tungsten
tungsten-matter-processing=Tungsten conversion tungsten-matter-processing=Tungsten conversion
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__ advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__

View file

@ -5,22 +5,46 @@ local util = require("__bztungsten__.data-util");
data:extend({ data:extend({
{ type = "recipe-category", name = "smelting-carbon"}, { type = "recipe-category", name = "smelting-carbon"},
}) })
data:extend(
{ if not mods.bobplates then
data:extend({
{
type = "item",
name = "tungsten-carbide",
icon = "__bztungsten__/graphics/icons/tungsten-carbide.png",
icon_size = 128,
subgroup = "raw-material",
order = "z[tungsten-carbide]",
stack_size = util.get_stack_size(100)
},
{
type = "item",
name = util.tungsten_plate,
icon = "__bztungsten__/graphics/icons/tungsten-plate.png",
icon_size = 128, icon_mipmaps = 3,
subgroup = "raw-material",
order = "b[tungsten-plate]",
stack_size = util.get_stack_size(100)
}
})
end
data:extend({
{ {
type = "recipe", type = "recipe",
name = util.tungsten_plate, name = util.tungsten_plate,
category = "smelting", category = "smelting",
subgroup = "raw-material", subgroup = "raw-material",
order = "d[tungsten-plate]", order = "d[tungsten-plate]",
icons = (mods["Krastorio2"] and icons = (mods["Krastorio2"] and {
{
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128, icon_mipmaps = 3, }, { icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128, icon_mipmaps = 3, },
{ icon = "__bztungsten__/graphics/icons/tungsten-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}}, { icon = "__bztungsten__/graphics/icons/tungsten-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}},
} or { } or mods.bobplates and {
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128, icon_mipmaps = 3, }, { icon = "__bobplates__/graphics/icons/plate/tungsten-plate.png", icon_size = 32},
} } or
), {
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128},
}),
normal = (mods["Krastorio2"] and normal = (mods["Krastorio2"] and
{ {
enabled = false, enabled = false,
@ -32,7 +56,7 @@ data:extend(
{ {
enabled = false, enabled = false,
energy_required = 32/15, energy_required = 32/15,
ingredients = {{"tungsten-ore", 2}}, ingredients = {{"tungsten-ore", mods.bobplates and 4 or 2}},
result = util.tungsten_plate, result = util.tungsten_plate,
}), }),
expensive = expensive =
@ -43,20 +67,15 @@ data:extend(
result = util.tungsten_plate result = util.tungsten_plate
} }
}, },
{
type = "item",
name = util.tungsten_plate,
icon = "__bztungsten__/graphics/icons/tungsten-plate.png",
icon_size = 128, icon_mipmaps = 3,
subgroup = "raw-material",
order = "b[tungsten-plate]",
stack_size = util.get_stack_size(100)
},
{ {
type = "technology", type = "technology",
name = util.tungsten_processing, name = util.tungsten_processing,
icon_size = 256, icon_mipmaps = 4, icons = {{ icon =
icon = "__bztungsten__/graphics/technology/tungsten-processing.png", mods.bobplates
and "__bobplates__/graphics/icons/technology/tungsten-processing.png"
or "__bztungsten__/graphics/technology/tungsten-processing.png",
icon_size = mods.bobplates and 64 or 256,
}},
effects = effects =
{ {
{ {
@ -65,7 +84,7 @@ data:extend(
}, },
{ {
type = "unlock-recipe", type = "unlock-recipe",
recipe = "tungsten-carbide", recipe = util.tungsten_carbide_recipe,
}, },
mods["TheBigFurnace"] and { mods["TheBigFurnace"] and {
type = "unlock-recipe", type = "unlock-recipe",
@ -114,22 +133,16 @@ data:extend(
}) })
data:extend({ data:extend({
{
type = "item",
name = "tungsten-carbide",
icon = "__bztungsten__/graphics/icons/tungsten-carbide.png",
icon_size = 128,
subgroup = "raw-material",
order = "z[tungsten-carbide]",
stack_size = util.get_stack_size(100)
},
{ {
type = "recipe", type = "recipe",
name = "tungsten-carbide", name = util.tungsten_carbide_recipe,
category = (mods["Krastorio2"] and "smelting" or "smelting-carbon"), category = (mods["Krastorio2"] and "smelting" or "smelting-carbon"),
subgroup = "raw-material", subgroup = "raw-material",
order = "z[tungsten-carbide]", order = "z[tungsten-carbide]",
icons = { { icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", icon_size = 128} }, 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 normal = (mods["Krastorio2"] and
{ {
enabled = false, enabled = false,