This commit is contained in:
Frank
2020-03-17 23:44:06 +01:00
parent 8823b96b5f
commit 1371445e94
6 changed files with 72 additions and 33 deletions
+8 -7
View File
@@ -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