
std = "luajit+minetest+modpack"
ignore = { "212" }

files[".luacheckrc"].std = "min+luacheck"
files["cmo_attacks"].std = std .. "+attacks_deps"
files["cmo_dodge"].std = std .. "+dodge_deps"
files["cmo_fx"].std = std .. "+fx_deps"

stds.luacheck = {}
stds.luacheck.globals = {
    "files",
    "ignore",
    "std",
    "stds"
}

stds.minetest = {}
stds.minetest.read_globals = {
    "DIR_DELIM",
    "minetest",
    "dump",
    "vector",
    "VoxelManip",
    "VoxelArea",
    "PseudoRandom",
    "PcgRandom",
    "ItemStack",
    "Settings",
    "unpack",
    "assert",
    "Raycast",
    table = { fields = { "copy", "indexof" } },
    math = { fields = { "sign", "round" } }
}

stds.modpack = {}
stds.modpack.globals = {
    "cmo"
}

stds.attacks_deps = {}
stds.attacks_deps.read_globals = {
    "XEnchanting"
}

stds.dodge_deps = {}
stds.dodge_deps.read_globals = {
    "controls",
    "hud_timers",
    "unified_stamina"
}

stds.fx_deps = {}
stds.fx_deps.read_globals = {
    "lighting_monoids",
    "unified_stamina"
}