mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
small updates, fixes
This commit is contained in:
parent
19e2ebcd03
commit
649136f98f
@ -887,7 +887,6 @@ CTLD = {
|
|||||||
FreeUHFFrequencies = {}, -- Table of UHF
|
FreeUHFFrequencies = {}, -- Table of UHF
|
||||||
FreeFMFrequencies = {}, -- Table of FM
|
FreeFMFrequencies = {}, -- Table of FM
|
||||||
CargoCounter = 0,
|
CargoCounter = 0,
|
||||||
dropOffZones = {},
|
|
||||||
wpZones = {},
|
wpZones = {},
|
||||||
Cargo_Troops = {}, -- generic troops objects
|
Cargo_Troops = {}, -- generic troops objects
|
||||||
Cargo_Crates = {}, -- generic crate objects
|
Cargo_Crates = {}, -- generic crate objects
|
||||||
@ -897,8 +896,8 @@ CTLD = {
|
|||||||
CrateDistance = 35, -- list crates in this radius
|
CrateDistance = 35, -- list crates in this radius
|
||||||
debug = false,
|
debug = false,
|
||||||
wpZones = {},
|
wpZones = {},
|
||||||
pickupZones = {},
|
|
||||||
dropOffZones = {},
|
dropOffZones = {},
|
||||||
|
pickupZones = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
@ -981,7 +980,7 @@ CTLD.UnitTypes = {
|
|||||||
|
|
||||||
--- CTLD class version.
|
--- CTLD class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
CTLD.version="0.2.2a1"
|
CTLD.version="0.2.2a3"
|
||||||
|
|
||||||
--- Instantiate a new CTLD.
|
--- Instantiate a new CTLD.
|
||||||
-- @param #CTLD self
|
-- @param #CTLD self
|
||||||
@ -2237,7 +2236,7 @@ function CTLD:_ListInventory(Group, Unit)
|
|||||||
local troopno = countcargo(trptypes)
|
local troopno = countcargo(trptypes)
|
||||||
local staticno = countcargo(stctypes)
|
local staticno = countcargo(stctypes)
|
||||||
|
|
||||||
if (crateno > 0 or troopno > 0) then
|
if (crateno > 0 or troopno > 0 or staticno > 0) then
|
||||||
|
|
||||||
local report = REPORT:New("Inventory Sheet")
|
local report = REPORT:New("Inventory Sheet")
|
||||||
report:Add("------------------------------------------------------------")
|
report:Add("------------------------------------------------------------")
|
||||||
@ -2945,9 +2944,6 @@ end
|
|||||||
--- User function - Add *generic* static-type loadable as cargo. This type will create cargo that needs to be loaded, moved and dropped.
|
--- User function - Add *generic* static-type loadable as cargo. This type will create cargo that needs to be loaded, moved and dropped.
|
||||||
-- @param #CTLD self
|
-- @param #CTLD self
|
||||||
-- @param #string Name Unique name of this type of cargo as set in the mission editor (not: UNIT name!), e.g. "Ammunition-1".
|
-- @param #string Name Unique name of this type of cargo as set in the mission editor (not: UNIT name!), e.g. "Ammunition-1".
|
||||||
-- @param #string Template Name of Wrapper.Static#STATIC to us as template.
|
|
||||||
-- @param #CTLD_CARGO.Enum Type Type of cargo, here STATIC.
|
|
||||||
-- @param #number NoCrates Number of crates needed to build this cargo.
|
|
||||||
-- @param #number Mass Mass in kg of each static in kg, e.g. 100.
|
-- @param #number Mass Mass in kg of each static in kg, e.g. 100.
|
||||||
-- @param #number Stock Number of groups in stock. Nil for unlimited.
|
-- @param #number Stock Number of groups in stock. Nil for unlimited.
|
||||||
function CTLD:AddStaticsCargo(Name,Mass,Stock)
|
function CTLD:AddStaticsCargo(Name,Mass,Stock)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user