mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
CHIEF - Added `:RemoveStrategicZone()` function - Added `:SetLimitMission()` function to limit number of total or specific mission types. - Improved Tactical Overview OPSZONE - Improved `Stop()` function
This commit is contained in:
@@ -3452,10 +3452,20 @@ function AUFTRAG:Evaluate()
|
||||
text=text..string.format("=========================")
|
||||
self:I(self.lid..text)
|
||||
end
|
||||
|
||||
-- Trigger events.
|
||||
if failed then
|
||||
self:I(self.lid..string.format("Mission %d [%s] failed!", self.auftragsnummer, self.type))
|
||||
if self.chief then
|
||||
self.chief.Nfailure=self.chief.Nfailure+1
|
||||
end
|
||||
self:Failed()
|
||||
else
|
||||
self:Success()
|
||||
self:I(self.lid..string.format("Mission %d [%s] success!", self.auftragsnummer, self.type))
|
||||
if self.chief then
|
||||
self.chief.Nsuccess=self.chief.Nsuccess+1
|
||||
end
|
||||
self:Success()
|
||||
end
|
||||
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user