Compare commits

...

6 commits
2.0.2 ... main

Author SHA1 Message Date
Simon Brodtmann
0b7c35cee4 2.0.4 2025-11-01 23:02:05 +01:00
Simon Brodtmann
b4b889e735 Fix booleans being strings 2025-11-01 12:50:45 +01:00
pla
41856e5e17 Fix K2 matter recipe generation and tech icon (#1)
![image](/attachments/f900592e-41ad-4956-a382-ce622274a4bb)

Co-authored-by: pla
Reviewed-on: #1
Co-authored-by: pla <pla@noreply.example.org>
Co-committed-by: pla <pla@noreply.example.org>
2025-11-01 12:50:23 +01:00
Simon Brodtmann
6e8406c86a 2.0.3 2025-10-21 15:36:10 +02:00
Simon Brodtmann
8954c9d919 Update to bz mods version 2 2025-10-21 14:59:27 +02:00
Simon Brodtmann
0f7c32fccf Fix recipe with missing ingredient type 2025-10-19 14:02:43 +02:00
7 changed files with 33 additions and 17 deletions

View file

@ -1,4 +1,17 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.0.4
Date: 01.11.2025
Bug Fixes:
- Fix K2 matter integration (thanks pla)
---------------------------------------------------------------------------------------------------
Version: 2.0.3
Date: 21.10.2025
Changes:
- Switch to bz mods forks
- Add incompatibility with Space Age
Bug Fixes:
- Fix recipe with missing ingredient type
---------------------------------------------------------------------------------------------------
Version: 2.0.2 Version: 2.0.2
Date: 13.10.2025 Date: 13.10.2025
Bug Fixes: Bug Fixes:

View file

@ -855,8 +855,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier)
end end
util.remove_prior_unlocks(tech, old) util.remove_prior_unlocks(tech, old)
for i, recipe in pairs(data.raw.recipe) do for i, recipe in pairs(data.raw.recipe) do
if (recipe.enabled and recipe.enabled ~= 'false') if (recipe.enabled and recipe.enabled ~= false)
and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes and (not recipe.hidden or recipe.hidden == true) -- probably don't want to change hidden recipes
and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :( and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :(
then then
-- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :| -- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :|

View file

@ -1,19 +1,20 @@
{ {
"name": "Cobalt2", "name": "Cobalt2",
"version": "2.0.2", "version": "2.0.4",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Cobalt", "title": "Cobalt",
"description": "Cobalt is a mod adding the element Cobalt.\n\nThis mod is inspired by Brevven's BZ mods.",
"author": "Timeken, cackling fiend", "author": "Timeken, cackling fiend",
"homepage": "https://discord.gg/ufvFUJtVwk", "homepage": "https://discord.gg/ufvFUJtVwk",
"dependencies": [ "dependencies": [
"base >= 2.0.0", "base >= 2.0.0",
"? 248k-Redux", "? 248k-Redux",
"? bobassembly", "? bobassembly",
"? bzfoundry", "? bzfoundry2",
"? Chromium2", "? Chromium2",
"? Krastorio2", "? Krastorio2",
"? space-exploration", "? space-exploration",
"? Tantalite2" "? Tantalite2",
], "! space-age"
"description": "Cobalt is a mod adding the element Cobalt.\n\nThis mod is inspired by Brevven's BZ mods. \n\n Most if not all art is placeholder." ]
} }

View file

@ -3,6 +3,7 @@ cobalt-refining=Cobalt refining
cobalt-carbide=Cobalt carbide cobalt-carbide=Cobalt carbide
cobalt-electromagnet=Cobalt electromagnet cobalt-electromagnet=Cobalt electromagnet
cobalt-substrates=Cobalt substrates cobalt-substrates=Cobalt substrates
cobalt-matter-processing=Cobalt conversion
[technology-description] [technology-description]

View file

@ -10,15 +10,16 @@ data:extend(
icons = icons =
{ {
{ {
icon = "__Krastorio2Assets__/technologies/matter-coal.png", icon = "__Krastorio2Assets__/technologies/backgrounds/matter.png",
icon_size = 256, icon_size = 256,
}, },
{ {
icon = "__Cobalt2__/graphics/icons/cobaltite-ore.png", icon = "__Cobalt2__/graphics/icons/cobaltite-ore.png",
icon_size = 64, icon_size = 64,
scale = 1.4, scale = 1,
} }
}, },
effects = {},
prerequisites = {"kr-matter-processing"}, prerequisites = {"kr-matter-processing"},
unit = unit =
{ {
@ -38,16 +39,16 @@ matter.make_recipes({
material = { type = "item", name = "cobaltite-ore", amount = 10 }, material = { type = "item", name = "cobaltite-ore", amount = 10 },
matter_count = 5, matter_count = 5,
energy_required = 1, energy_required = 1,
need_stabilizer = false, needs_stabilizer = false,
unlocked_by_technology = "cobalt-matter-processing" unlocked_by = "cobalt-matter-processing"
}) })
matter.make_recipes({ matter.make_deconversion_recipe({
material = { type = "item", name = "cobalt-plate", amount = 10 }, material = { type = "item", name = "cobalt-plate", amount = 10 },
matter_count = 10, matter_count = 10,
energy_required = 3, energy_required = 3,
only_deconversion = true, -- only_deconversion = true,
need_stabilizer = true, needs_stabilizer = true,
unlocked_by_technology = "cobalt-matter-processing" unlocked_by = "cobalt-matter-processing"
}) })
end end

View file

@ -49,7 +49,7 @@ if mods["space-exploration"] then
}, },
energy_required = 45, energy_required = 45,
ingredients = { ingredients = {
{name = mods["Krastorio2"] and "enriched-cobalt" or "cobaltite-ore", amount = 24}, {type = "item", name = mods["Krastorio2"] and "enriched-cobalt" or "cobaltite-ore", amount = 24},
{type = "fluid", name = "se-pyroflux", amount = 10}, {type = "fluid", name = "se-pyroflux", amount = 10},
}, },
enabled = false, enabled = false,

View file

@ -9,7 +9,7 @@ data:extend({{
}) })
local founding_category = "crafting" local founding_category = "crafting"
if mods["bzfoundry"] then if mods["bzfoundry2"] then
founding_category = "founding" founding_category = "founding"
end end