mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-24 03:55:27 +00:00
Rename AUFTRAG.transportCategories/etc to carrierCategories/etc
This commit is contained in:
@@ -3136,9 +3136,9 @@ function AUFTRAG:SetRequiredCarriers(NcarriersMin, NcarriersMax, Categories, Att
|
|||||||
self.NcarriersMax=self.NcarriersMin
|
self.NcarriersMax=self.NcarriersMin
|
||||||
end
|
end
|
||||||
|
|
||||||
self.transportCategories = UTILS.EnsureTable(Categories, true)
|
self.carrierCategories = UTILS.EnsureTable(Categories, true)
|
||||||
self.transportAttributes = UTILS.EnsureTable(Attributes, true)
|
self.carrierAttributes = UTILS.EnsureTable(Attributes, true)
|
||||||
self.transportProperties = UTILS.EnsureTable(Properties, true)
|
self.carrierProperties = UTILS.EnsureTable(Properties, true)
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1508,7 +1508,7 @@ function COMMANDER:CheckMissionQueue()
|
|||||||
local Transport=nil
|
local Transport=nil
|
||||||
local Legions=mission.transportLegions or self.legions
|
local Legions=mission.transportLegions or self.legions
|
||||||
|
|
||||||
TransportAvail, Transport=LEGION.AssignAssetsForTransport(self, Legions, assets, mission.NcarriersMin, mission.NcarriersMax, mission.transportDeployZone, mission.transportDisembarkZone, mission.transportCategories, mission.transportAttributes, mission.transportProperties)
|
TransportAvail, Transport=LEGION.AssignAssetsForTransport(self, Legions, assets, mission.NcarriersMin, mission.NcarriersMax, mission.transportDeployZone, mission.transportDisembarkZone, mission.carrierCategories, mission.carrierAttributes, mission.carrierProperties)
|
||||||
|
|
||||||
-- Add opstransport to mission.
|
-- Add opstransport to mission.
|
||||||
if TransportAvail and Transport then
|
if TransportAvail and Transport then
|
||||||
@@ -1702,7 +1702,7 @@ function COMMANDER:RecruitAssetsForMission(Mission)
|
|||||||
local cohort=_cohort --Ops.Cohort#COHORT
|
local cohort=_cohort --Ops.Cohort#COHORT
|
||||||
|
|
||||||
-- Check if cohort can perform transport to target.
|
-- Check if cohort can perform transport to target.
|
||||||
local can=LEGION._CohortCan(cohort, AUFTRAG.Type.OPSTRANSPORT, Mission.transportCategories, Mission.transportAttributes, Mission.transportProperties, nil, TargetVec2)
|
local can=LEGION._CohortCan(cohort, AUFTRAG.Type.OPSTRANSPORT, Mission.carrierCategories, Mission.carrierAttributes, Mission.carrierProperties, nil, TargetVec2)
|
||||||
|
|
||||||
-- MaxWeight of cargo assets is limited by the largets available cargo bay. We don't want to select, e.g., tanks that cannot be transported by APCs or helos.
|
-- MaxWeight of cargo assets is limited by the largets available cargo bay. We don't want to select, e.g., tanks that cannot be transported by APCs or helos.
|
||||||
if can and (MaxWeight==nil or cohort.cargobayLimit>MaxWeight) then
|
if can and (MaxWeight==nil or cohort.cargobayLimit>MaxWeight) then
|
||||||
|
|||||||
@@ -714,7 +714,7 @@ function LEGION:CheckMissionQueue()
|
|||||||
local Legions=mission.transportLegions or {self}
|
local Legions=mission.transportLegions or {self}
|
||||||
|
|
||||||
-- Assign carrier assets for transport.
|
-- Assign carrier assets for transport.
|
||||||
TransportAvail, Transport=self:AssignAssetsForTransport(Legions, assets, mission.NcarriersMin, mission.NcarriersMax, mission.transportDeployZone, mission.transportDisembarkZone, mission.transportCategories, mission.transportAttributes, mission.transportProperties)
|
TransportAvail, Transport=self:AssignAssetsForTransport(Legions, assets, mission.NcarriersMin, mission.NcarriersMax, mission.transportDeployZone, mission.transportDisembarkZone, mission.carrierCategories, mission.carrierAttributes, mission.carrierProperties)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add opstransport to mission.
|
-- Add opstransport to mission.
|
||||||
@@ -2252,7 +2252,7 @@ function LEGION:RecruitAssetsForMission(Mission)
|
|||||||
local cohort=_cohort --Ops.Cohort#COHORT
|
local cohort=_cohort --Ops.Cohort#COHORT
|
||||||
|
|
||||||
-- Check if cohort can perform transport to target.
|
-- Check if cohort can perform transport to target.
|
||||||
local can=LEGION._CohortCan(cohort, AUFTRAG.Type.OPSTRANSPORT, Mission.transportCategories, Mission.transportAttributes, Mission.transportProperties, nil, TargetVec2)
|
local can=LEGION._CohortCan(cohort, AUFTRAG.Type.OPSTRANSPORT, Mission.carrierCategories, Mission.carrierAttributes, Mission.carrierProperties, nil, TargetVec2)
|
||||||
|
|
||||||
-- MaxWeight of cargo assets is limited by the largets available cargo bay. We don't want to select, e.g., tanks that cannot be transported by APCs or helos.
|
-- MaxWeight of cargo assets is limited by the largets available cargo bay. We don't want to select, e.g., tanks that cannot be transported by APCs or helos.
|
||||||
if can and (MaxWeight==nil or cohort.cargobayLimit>MaxWeight) then
|
if can and (MaxWeight==nil or cohort.cargobayLimit>MaxWeight) then
|
||||||
|
|||||||
Reference in New Issue
Block a user