mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-11 03:43:38 +00:00
Ops
This commit is contained in:
@@ -447,7 +447,7 @@ function UNIT:IsRefuelable()
|
||||
|
||||
local system=nil
|
||||
|
||||
local Desc=self:GetDesc().attributes
|
||||
local Desc=self:GetDesc()
|
||||
if Desc and Desc.tankerType then
|
||||
system=Desc.tankerType
|
||||
end
|
||||
@@ -466,25 +466,26 @@ function UNIT:IsTanker()
|
||||
|
||||
local system=nil
|
||||
|
||||
local Desc=self:GetDesc().attributes
|
||||
local Desc=self:GetDesc()
|
||||
if Desc and Desc.tankerType then
|
||||
system=Desc.tankerType
|
||||
end
|
||||
|
||||
local typename=self:GetTypeName()
|
||||
|
||||
if typename=="IL-78M" then
|
||||
system=1 --probe
|
||||
elseif typename=="KC130" then
|
||||
system=-1 --?
|
||||
system=1 --probe
|
||||
elseif typename=="KC135BDA" then
|
||||
system=-1 --?
|
||||
elseif typename=="KC135BDA" then
|
||||
system=-1 --?
|
||||
system=1 --probe
|
||||
elseif typename=="KC135MPRS" then
|
||||
system=0 --boom
|
||||
system=1 --probe
|
||||
elseif typename=="S-3B Tanker" then
|
||||
system=1 --probe
|
||||
end
|
||||
|
||||
env.info(string.format("unit %s type=%s: tanker=%s system=%s", tostring(self.UnitName), tostring(typename), tostring(tanker), tostring(system)))
|
||||
|
||||
return tanker, system
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user