resolved conflicts from main

This commit is contained in:
2024-10-11 20:58:42 +02:00
3 changed files with 11 additions and 8 deletions
+7 -1
View File
@@ -1,6 +1,7 @@
import os
import sys
import glob
import datetime
def compileClasses(classesPath):
resultString = ""
@@ -15,7 +16,12 @@ def compileClasses(classesPath):
def compile(root, target):
classPath = os.path.join(root, "classes")
classes = compileClasses(classPath)
compiled = ""
dateTime = f"""--[[
Spearhead Compile Time: {datetime.datetime.now().isoformat()}
]]"""
compiled = f"{dateTime}\n"
compiled += classes
mainFileName = os.path.join(root, "main.lua")
+2 -3
View File
@@ -26,7 +26,7 @@ do
elseif first == "[" then
result.isBackup = false
else
table.insert(Spearhead.MissionEditingWarnings, "Could not parse the CAP config for group: " .. groupName)
Spearhead.AddMissionEditorWarning("Could not parse the CAP config for group: " .. groupName)
return nil
end
@@ -62,8 +62,7 @@ do
end
return result
else
table.insert(Spearhead.MissionEditingWarnings,
"CAP Group with name: " .. groupName .. "should have at least 3 parts, but has " .. partCount)
Spearhead.AddMissionEditorWarning("CAP Group with name: " .. groupName .. "should have at least 3 parts, but has " .. partCount)
return nil
end
end
+2 -4
View File
@@ -881,13 +881,11 @@ do --setup route util
---@return table
local function GetCAPTargetTypes(attackHelos)
local targetTypes = {
[1] = "Fighters",
[2] = "Multirole fighters",
[3] = "Bombers"
[1] = "Planes",
}
if attackHelos then
targetTypes[4] = "Helicopters"
targetTypes[2] = "Helicopters"
end
return targetTypes