mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-16 07:56:35 +00:00
#AIRWING - Check if STORAGE object has NO warehouse!
This commit is contained in:
@@ -340,7 +340,7 @@ function AIRWING:AddSquadron(Squadron)
|
|||||||
local NAssets = Squadron.Ngroups * Nunits
|
local NAssets = Squadron.Ngroups * Nunits
|
||||||
local storage = STORAGE:New(airbasename)
|
local storage = STORAGE:New(airbasename)
|
||||||
--self:T(self.lid.."Adding "..typename.." #"..NAssets)
|
--self:T(self.lid.."Adding "..typename.." #"..NAssets)
|
||||||
if storage and storage:IsLimitedAircraft() and typename ~= "none" then
|
if storage and storage.warehouse and storage:IsLimitedAircraft() and typename ~= "none" then
|
||||||
local NInStore = storage:GetItemAmount(typename) or 0
|
local NInStore = storage:GetItemAmount(typename) or 0
|
||||||
if NAssets > NInStore then
|
if NAssets > NInStore then
|
||||||
storage:AddItem(typename,NAssets)
|
storage:AddItem(typename,NAssets)
|
||||||
|
|||||||
@@ -529,6 +529,7 @@ ENUMS.ReportingName =
|
|||||||
Orion = "P-3C",
|
Orion = "P-3C",
|
||||||
Viking = "S-3B",
|
Viking = "S-3B",
|
||||||
Osprey = "V-22",
|
Osprey = "V-22",
|
||||||
|
Intruder = "A6E",
|
||||||
-- Bomber Rus
|
-- Bomber Rus
|
||||||
Badger = "H6-J",
|
Badger = "H6-J",
|
||||||
Bear_J = "Tu-142", -- also Tu-95
|
Bear_J = "Tu-142", -- also Tu-95
|
||||||
|
|||||||
Reference in New Issue
Block a user