diff --git a/Moose_CTLD_FAC.lua b/Moose_CTLD_FAC.lua index 1554a9b..79aeb13 100644 --- a/Moose_CTLD_FAC.lua +++ b/Moose_CTLD_FAC.lua @@ -24,6 +24,9 @@ Design notes are conservative approximations to avoid silent failures. ]] +---@diagnostic disable: undefined-global, lowercase-global +-- MOOSE framework globals are defined at runtime by DCS World + if not _G.BASE then env.info('[Moose_CTLD_FAC] Moose (BASE) not detected. Ensure Moose.lua is loaded before this script.') end diff --git a/Moose_CTLD_Init_DualCoalitions.lua b/Moose_CTLD_Init_DualCoalitions.lua index 4ddd479..00e0535 100644 --- a/Moose_CTLD_Init_DualCoalitions.lua +++ b/Moose_CTLD_Init_DualCoalitions.lua @@ -15,6 +15,8 @@ -- RED : PICKUP_RED_MAIN, DROP_RED_1, FOB_RED_A -- Adjust names below if you use different zone names. +---@diagnostic disable: undefined-global, lowercase-global +-- MOOSE framework globals are defined at runtime by DCS World -- Create CTLD instances only if Moose and CTLD are available if _MOOSE_CTLD and _G.BASE then diff --git a/Moose_Convoy.lua b/Moose_Convoy.lua index 50a479b..d384dc8 100644 --- a/Moose_Convoy.lua +++ b/Moose_Convoy.lua @@ -27,6 +27,8 @@ ------------------------------------------------------------------- -- CONFIGURATION SECTION ------------------------------------------------------------------- +---@diagnostic disable: undefined-global, lowercase-global +-- MOOSE framework globals are defined at runtime by DCS World -- Logging Configuration LOGGING_ENABLED = true -- Enable/disable detailed logging diff --git a/catalogs/Moose_CTLD_Catalog.lua b/catalogs/Moose_CTLD_Catalog.lua index 2e7c7a2..76fc66b 100644 --- a/catalogs/Moose_CTLD_Catalog.lua +++ b/catalogs/Moose_CTLD_Catalog.lua @@ -4,6 +4,8 @@ -- Notes: -- - Each entry has keys: description/menu, dcsCargoType, required or requires (composite), side, category, build(point, headingDeg) -- - Single-unit entries spawn one unit by DCS type. Composite "SITE" entries spawn a multi-unit group approximating system components. +---@diagnostic disable: undefined-global, lowercase-global +-- MOOSE framework globals are defined at runtime by DCS World local function singleUnit(unitType) return function(point, headingDeg) diff --git a/catalogs/Moose_CTLD_Catalog_LowCounts.lua b/catalogs/Moose_CTLD_Catalog_LowCounts.lua index d357d73..d5c5fd0 100644 --- a/catalogs/Moose_CTLD_Catalog_LowCounts.lua +++ b/catalogs/Moose_CTLD_Catalog_LowCounts.lua @@ -4,7 +4,8 @@ -- Notes: -- - Each entry has keys: description/menu, dcsCargoType, required or requires (composite), side, category, build(point, headingDeg) -- - Single-unit entries spawn one unit by DCS type. Composite "SITE" entries spawn a multi-unit group approximating system components. - +---@diagnostic disable: undefined-global, lowercase-global +-- MOOSE framework globals are defined at runtime by DCS World local function singleUnit(unitType) return function(point, headingDeg) local name = string.format('%s-%d', unitType, math.random(100000,999999))