Added luacheck config
PR Prerequisites / Lua Check (pull_request) Failing after 19s
PR Prerequisites / Bundles Without Errors (pull_request) Failing after 30s

This commit is contained in:
2026-09-20 14:22:24 +02:00
parent 0b012f59c6
commit 917266818d
2 changed files with 3 additions and 10 deletions
-9
View File
@@ -125,8 +125,6 @@ do --- privates
end
local spawnTemplate = Util.deepCopyTable(spawnData.groupTemplate)
---@type Array<string>
local removeableUnitNames = {}
--[[
TODO: Spawn units at "current"/LastKnown position with them going to the next waypoint.
ONLY when perstable data is found.
@@ -138,12 +136,6 @@ do --- privates
local name = unit["name"] --[[@as string]]
SpearheadEvents.addOnUnitLostEventListener(name, self)
local state = Persistence.UnitState(name)
if state then
if state.isDead == true then
removeableUnitNames[#removeableUnitNames+1] = name
end
end
if override and override.emptyLoadouts == true then
if unit["payload"] and unit["payload"]["pylons"] then
@@ -171,7 +163,6 @@ do --- privates
local group = coalition.addGroup(country, spawnData.category, spawnTemplate)
for _, unit in pairs(group:getUnits()) do
self:CheckUnitAndReplaceIfPersistentDead(unit)
if isPersistent == true then