This commit is contained in:
Frank
2020-03-24 21:34:05 +01:00
parent 56ec7f122f
commit fc79188fe2
6 changed files with 52 additions and 24 deletions
+10 -1
View File
@@ -628,8 +628,17 @@ function AIRWING:onafterStatus(From, Event, To)
local status=asset.flightgroup:GetState()
local fuelmin=asset.flightgroup:GetFuelMin()
local fuellow=asset.flightgroup:IsFuelLow()
local fuelcri=asset.flightgroup:IsFuelCritical()
text=text..string.format("%s fuel=%d (low=%s)", status, fuelmin, tostring(fuellow))
text=text..string.format("%s fuel=%d", status, fuelmin)
if fuelcri then
text=text.." (critical!)"
elseif fuellow then
text=text.." (low)"
end
local lifept, lifept0=asset.flightgroup:GetLifePoints()
text=text..string.format(" life=%d/%d", lifept, lifept0)
else
text=text.."N/A"
end