fixed briefings faulty giving warnings
This commit is contained in:
@@ -350,18 +350,6 @@ function Database.New(Logger)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, missionZone in pairs(self._tables.MissionZones) do
|
|
||||||
if self._tables.MissionZoneData[missionZone] == nil or self._tables.MissionZoneData[missionZone].description == nil then
|
|
||||||
MissionEditorWarnings.Add("Mission with zonename: " .. missionZone .. " does not have a briefing")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, missionZone in pairs(self._tables.RandomMissionZones) do
|
|
||||||
if self._tables.MissionZoneData[missionZone] == nil or self._tables.MissionZoneData[missionZone].description == nil then
|
|
||||||
MissionEditorWarnings.Add("Mission with zonename: " .. missionZone .. " does not have a briefing")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, farpZoneName in pairs(self._tables.AllFarpZones) do
|
for _, farpZoneName in pairs(self._tables.AllFarpZones) do
|
||||||
for _, airbase in pairs(world.getAirbases()) do
|
for _, airbase in pairs(world.getAirbases()) do
|
||||||
if airbase:getDesc().category == Airbase.Category.HELIPAD then
|
if airbase:getDesc().category == Airbase.Category.HELIPAD then
|
||||||
@@ -447,6 +435,21 @@ function Database.New(Logger)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Checks for missing briefings in mission zones and random mission zones
|
||||||
|
do
|
||||||
|
for _, missionZone in pairs(self._tables.MissionZones) do
|
||||||
|
if self._tables.MissionZoneData[missionZone] == nil or self._tables.MissionZoneData[missionZone].description == nil then
|
||||||
|
MissionEditorWarnings.Add("Mission with zonename: " .. missionZone .. " does not have a briefing")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, missionZone in pairs(self._tables.RandomMissionZones) do
|
||||||
|
if self._tables.MissionZoneData[missionZone] == nil or self._tables.MissionZoneData[missionZone].description == nil then
|
||||||
|
MissionEditorWarnings.Add("Mission with zonename: " .. missionZone .. " does not have a briefing")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if missions == 0 then missions = 1 end
|
if missions == 0 then missions = 1 end
|
||||||
|
|
||||||
self._logger:info("initiated the database with amount of zones: ")
|
self._logger:info("initiated the database with amount of zones: ")
|
||||||
|
|||||||
Reference in New Issue
Block a user