diff --git a/aluminum-burner-phase.lua b/aluminum-burner-phase.lua index 2bc206b..67570ed 100644 --- a/aluminum-burner-phase.lua +++ b/aluminum-burner-phase.lua @@ -107,6 +107,8 @@ 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") util.replace_ingredients_prior_to("electronics", "electronic-circuit", "aluminum-cable") diff --git a/changelog.txt b/changelog.txt index 02288c0..6fe1a8a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +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: diff --git a/compatibility/textplates.lua b/compatibility/textplates.lua new file mode 100644 index 0000000..592833f --- /dev/null +++ b/compatibility/textplates.lua @@ -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 + diff --git a/info.json b/info.json index c034b05..a7deced 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzaluminum", - "version": "0.4.18", + "version": "0.4.19", "factorio_version": "1.1", "title": "Aluminum", "author": "Brevven",