remove broken recipes + maintenance (#5)

This commit is contained in:
Niklp 2023-07-11 21:16:37 +02:00 committed by GitHub
parent 6f4f80bdc6
commit 3f0ffe0b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 103 deletions

10
.github/workflows/luacheck.yml vendored Normal file
View File

@ -0,0 +1,10 @@
name: luacheck
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: ""

9
.luacheckrc Normal file
View File

@ -0,0 +1,9 @@
read_globals = {
"minetest",
"signs_lib",
"default"
}
globals = {
"basic_signs"
}

View File

@ -17,14 +17,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_green 2",
recipe = {
{ "dye:dark_green", "dye:white", "dye:dark_green" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_yellow",
recipe = {
@ -33,14 +25,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_yellow 2",
recipe = {
{ "dye:yellow", "dye:black", "dye:yellow" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_red",
recipe = {
@ -49,14 +33,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_red 2",
recipe = {
{ "dye:red", "dye:white", "dye:red" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_white_red",
recipe = {
@ -65,14 +41,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_white_red 2",
recipe = {
{ "dye:white", "dye:red", "dye:white" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_white_black",
recipe = {
@ -81,14 +49,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_white_black 2",
recipe = {
{ "dye:white", "dye:black", "dye:white" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_orange",
recipe = {
@ -97,14 +57,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_orange 2",
recipe = {
{ "dye:orange", "dye:black", "dye:orange" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_blue",
recipe = {
@ -113,14 +65,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_blue 2",
recipe = {
{ "dye:blue", "dye:white", "dye:blue" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_brown",
recipe = {
@ -129,14 +73,6 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_steel_brown 2",
recipe = {
{ "dye:brown", "dye:white", "dye:brown" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
minetest.register_craft( {
output = "basic_signs:sign_wall_glass 8",
recipe = {

View File

@ -111,7 +111,7 @@ local sign_colors = {
local cbox = signs_lib.make_selection_boxes(35, 25, true, 0, 0, 0, true)
for i, color in ipairs(sign_colors) do
for _, color in ipairs(sign_colors) do
signs_lib.register_sign("basic_signs:sign_wall_steel_"..color[1], {
description = S("Sign (@1, steel)", color[2]),
paramtype2 = "facedir",
@ -140,10 +140,14 @@ for i, color in ipairs(sign_colors) do
use_texture_alpha = "clip",
})
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_onpole", "basic_signs:sign_steel_"..color[1].."_onpole")
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_onpole_horiz", "basic_signs:sign_steel_"..color[1].."_onpole_horiz")
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_hanging", "basic_signs:sign_steel_"..color[1].."_hanging")
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_yard", "basic_signs:sign_steel_"..color[1].."_yard")
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_onpole",
"basic_signs:sign_steel_"..color[1].."_onpole")
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_onpole_horiz",
"basic_signs:sign_steel_"..color[1].."_onpole_horiz")
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_hanging",
"basic_signs:sign_steel_"..color[1].."_hanging")
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_yard",
"basic_signs:sign_steel_"..color[1].."_yard")
table.insert(signs_lib.lbm_restore_nodes, "signs:sign_wall_"..color[1])
minetest.register_alias("signs:sign_wall_"..color[1], "basic_signs:sign_wall_steel_"..color[1])

View File

@ -1,5 +1,5 @@
# textdomain: basic_signs
Locked Sign=gesperrter Schild
Locked Sign=Abgeschlossenes Schild
Glass Sign=Glas Schild
Obsidian Glass Sign=Obsidian Glas Schild
Plastic Sign=Plastik Schild