textplates
This commit is contained in:
parent
f8b5125e14
commit
b88ae1ae15
4 changed files with 33 additions and 1 deletions
|
|
@ -107,6 +107,8 @@ util.add_prerequisite("heavy-armor", "copper-processing")
|
||||||
util.set_enabled("deadlock-copper-lamp", false)
|
util.set_enabled("deadlock-copper-lamp", false)
|
||||||
util.add_effect("copper-processing", { type = "unlock-recipe", recipe = "deadlock-copper-lamp" })
|
util.add_effect("copper-processing", { type = "unlock-recipe", recipe = "deadlock-copper-lamp" })
|
||||||
|
|
||||||
|
require("compatibility/textplates")
|
||||||
|
|
||||||
-- All customizations or custom unlocks prior to this block
|
-- All customizations or custom unlocks prior to this block
|
||||||
util.add_unlock_force("electronics", "electronic-circuit")
|
util.add_unlock_force("electronics", "electronic-circuit")
|
||||||
util.replace_ingredients_prior_to("electronics", "electronic-circuit", "aluminum-cable")
|
util.replace_ingredients_prior_to("electronics", "electronic-circuit", "aluminum-cable")
|
||||||
|
|
|
||||||
|
|
@ -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
|
Version: 0.4.18
|
||||||
Date: 2022-12-24
|
Date: 2022-12-24
|
||||||
Localization:
|
Localization:
|
||||||
|
|
|
||||||
25
compatibility/textplates.lua
Normal file
25
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
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzaluminum",
|
"name": "bzaluminum",
|
||||||
"version": "0.4.18",
|
"version": "0.4.19",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Aluminum",
|
"title": "Aluminum",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue