added fleet stuff

This commit is contained in:
2024-10-04 13:07:49 +02:00
parent 913d3ea3b5
commit 86fc8ebc4e
6 changed files with 245 additions and 30 deletions
+12 -1
View File
@@ -28,6 +28,7 @@ do -- DB
o.tables.random_mission_zones = {}
o.tables.farp_zones = {}
o.tables.cap_route_zones = {}
o.tables.carrier_route_zones = {}
o.tables.stage_zonesByNumer = {}
o.tables.stage_numberPerzone = {}
@@ -66,6 +67,10 @@ do -- DB
if string.lower(split_string[1]) == "caproute" then
table.insert(o.tables.cap_route_zones, zone_name)
end
if string.lower(split_string[1]) == "carrierroute" then
table.insert(o.tables.carrier_route_zones, zone_name)
end
end
end
end
@@ -181,7 +186,8 @@ do -- DB
end
end
end
o.tables.farpZonesPerStage = {}
for _, farpZoneName in pairs(o.tables.farp_zones) do
@@ -437,6 +443,7 @@ do -- DB
end
end
end
o.Logger:debug(o.tables.capRoutesPerStageNumber)
o.tables.missionCodes = {}
@@ -517,6 +524,10 @@ do -- DB
return self.tables.stage_zones
end
o.getCarrierRouteZones = function (self)
return self.tables.carrier_route_zones
end
o.getMissionsForStage = function (self, stagename)
return self.tables.missionZonesPerStage[stagename] or {}
end