mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
add a global .luacheckrc
This commit is contained in:
parent
3ba59dc2d5
commit
f4db7d0fb1
11
.github/workflows/luacheck.yml
vendored
Normal file
11
.github/workflows/luacheck.yml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
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: ""
|
38
.luacheckrc
Normal file
38
.luacheckrc
Normal file
@ -0,0 +1,38 @@
|
||||
unused_args = false
|
||||
|
||||
globals = {
|
||||
"homedecor",
|
||||
"homedecor_lighting",
|
||||
"homedecor_windows_and_treatments",
|
||||
"homedecor_roofing",
|
||||
"homedecor_misc",
|
||||
"homedecor_exterior",
|
||||
"homedecor_electrical",
|
||||
"lavalamp",
|
||||
"lrfurn",
|
||||
"signs_lib",
|
||||
|
||||
-- mod-deps
|
||||
"armor"
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
"minetest", "core",
|
||||
"vector", "ItemStack",
|
||||
|
||||
-- Stdlib
|
||||
string = {fields = {"split", "trim"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
-- mod-deps
|
||||
"default",
|
||||
"unifieddyes",
|
||||
"player_api",
|
||||
"screwdriver",
|
||||
"hopper",
|
||||
"mesecon",
|
||||
"skins",
|
||||
"homedecor_doors_and_gates",
|
||||
"stairsplus",
|
||||
"creative"
|
||||
}
|
@ -283,8 +283,10 @@ for _, mat in ipairs(counter_materials) do
|
||||
end
|
||||
})
|
||||
|
||||
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet"..material
|
||||
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] = "homedecor:kitchen_cabinet"..material.."_locked"
|
||||
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] =
|
||||
"homedecor:kitchen_cabinet"..material
|
||||
homedecor.kitchen_convert_nodes[#homedecor.kitchen_convert_nodes + 1] =
|
||||
"homedecor:kitchen_cabinet"..material.."_locked"
|
||||
|
||||
end
|
||||
|
||||
|
@ -19,7 +19,7 @@ local tabletop_materials = {
|
||||
}
|
||||
}
|
||||
|
||||
leg_materials = {
|
||||
local leg_materials = {
|
||||
{ "brass", S("brass") },
|
||||
{ "wrought_iron", S("wrought iron") },
|
||||
{ "wood", S("wood") }
|
||||
@ -55,7 +55,7 @@ local tables_cbox = {
|
||||
}
|
||||
|
||||
for i, mat in ipairs(tabletop_materials) do
|
||||
local m, small_s, small_r, large = unpack(mat)
|
||||
local m = unpack(mat)
|
||||
local s
|
||||
|
||||
if m == "glass" then
|
||||
@ -101,7 +101,7 @@ for i, mat in ipairs(tabletop_materials) do
|
||||
})
|
||||
|
||||
for _, l in ipairs(leg_materials) do
|
||||
local leg_mat, desc = unpack(l)
|
||||
local leg_mat = unpack(l)
|
||||
|
||||
homedecor.register(string.format("%s_table_%s_with_%s_legs", m, shape, leg_mat), {
|
||||
description = string.format("%s %s table with %s legs", shape, m, leg_mat),
|
||||
|
@ -1,5 +1,5 @@
|
||||
local S = minetest.get_translator("homedecor_wardrobe")
|
||||
modpath = minetest.get_modpath("homedecor_wardrobe")
|
||||
local modpath = minetest.get_modpath("homedecor_wardrobe")
|
||||
|
||||
local wd_cbox = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user