updated for LuaLS findings
This commit is contained in:
@@ -66,8 +66,6 @@ local function ParseZoneName(input)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
MINIMAL_UNITS_ALIVE_RATIO = 0.21
|
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
---@param zoneName string
|
---@param zoneName string
|
||||||
---@param priority MissionPriority
|
---@param priority MissionPriority
|
||||||
@@ -232,7 +230,7 @@ end
|
|||||||
---@param messageIfDone boolean
|
---@param messageIfDone boolean
|
||||||
function ZoneMission:UpdateState(checkHealth, messageIfDone)
|
function ZoneMission:UpdateState(checkHealth, messageIfDone)
|
||||||
if checkHealth == nil then checkHealth = false end
|
if checkHealth == nil then checkHealth = false end
|
||||||
if messageIfDone == false then messageIfDone = true end
|
if messageIfDone == nil then messageIfDone = true end
|
||||||
|
|
||||||
|
|
||||||
if checkHealth == true then
|
if checkHealth == true then
|
||||||
|
|||||||
@@ -133,9 +133,9 @@ function Mission:ForceMissionComplete()
|
|||||||
self:NotifyMissionComplete()
|
self:NotifyMissionComplete()
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param groupId number
|
---@param _groupId number
|
||||||
---@diagnostic disable-next-line: unused-local
|
---@diagnostic disable-next-line: unused-local
|
||||||
function Mission:MarkMissionAreaToGroup(groupId) end
|
function Mission:MarkMissionAreaToGroup(_groupId) end
|
||||||
|
|
||||||
---endregion
|
---endregion
|
||||||
|
|
||||||
@@ -147,8 +147,6 @@ function Mission:ToStateString() return "status: in progress" end
|
|||||||
|
|
||||||
--endregion
|
--endregion
|
||||||
|
|
||||||
do --aliases
|
|
||||||
|
|
||||||
--- @alias MissionPriority
|
--- @alias MissionPriority
|
||||||
--- | "none"
|
--- | "none"
|
||||||
--- | "primary"
|
--- | "primary"
|
||||||
@@ -170,6 +168,5 @@ do --aliases
|
|||||||
--- | "ACTIVE"
|
--- | "ACTIVE"
|
||||||
--- | "COMPLETED"
|
--- | "COMPLETED"
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
return Mission
|
return Mission
|
||||||
Reference in New Issue
Block a user