Revert "Ops - Various"

This reverts commit 23ea5d9d06.
This commit is contained in:
Applevangelist
2021-12-07 18:13:13 +01:00
parent 9082054ba9
commit d42bdb2505
4 changed files with 16 additions and 45 deletions

View File

@@ -162,8 +162,6 @@
-- @field #number optionRTBfuel RTB on out-of-fuel.
-- @field #number optionECM ECM.
--
-- @field Core.Point#COORDINATE specialCoordinate Special point to reload Brigade units in place.
--
-- @extends Core.Fsm#FSM
--- *A warrior's mission is to foster the success of others.* - Morihei Ueshiba

View File

@@ -324,7 +324,7 @@ function LEGION:AddMission(Mission)
-- Set target for ALERT 5.
if Mission.type==AUFTRAG.Type.ALERT5 then
--Mission:_TargetFromObject(self:GetCoordinate())
Mission:_TargetFromObject(self:GetCoordinate())
end
-- Add mission to queue.
@@ -694,10 +694,6 @@ function LEGION:onafterMissionRequest(From, Event, To, Mission)
asset.flightgroup:MissionCancel(currM)
end
-- Cancel the current mission.
if currM and currM.type==AUFTRAG.Type.ONGUARD then
asset.flightgroup:MissionCancel(currM)
end
-- Trigger event.
self:__OpsOnMission(5, asset.flightgroup, Mission)
@@ -725,23 +721,18 @@ function LEGION:onafterMissionRequest(From, Event, To, Mission)
asset.requested=true
asset.isReserved=false
-- Set mission task so that the group is spawned with the right one.
-- Set missin task so that the group is spawned with the right one.
if Mission.missionTask then
asset.missionTask=Mission.missionTask
end
end
local coordinate = nil
if Mission.specialCoordinate then
coordinate = Mission.specialCoordinate
end
-- TODO: Get/set functions for assignment string.
local assignment=string.format("Mission-%d", Mission.auftragsnummer)
-- Add request to legion warehouse.
self:AddRequest(self, WAREHOUSE.Descriptor.ASSETLIST, Assetlist, #Assetlist, nil, nil, Mission.prio, assignment, coordinate)
self:AddRequest(self, WAREHOUSE.Descriptor.ASSETLIST, Assetlist, #Assetlist, nil, nil, Mission.prio, assignment)
-- The queueid has been increased in the onafterAddRequest function. So we can simply use it here.
Mission.requestID[self.alias]=self.queueid