@jtff/miztemplate-lib 3.4.6 → 3.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -87,20 +87,26 @@ function startCapWarZone(objCapWarZone)
|
|
|
87
87
|
unit:OptionROT(ENUMS.ROT.EvadeFire)
|
|
88
88
|
end
|
|
89
89
|
local CapZone = nil
|
|
90
|
+
local CapZoneName = nil
|
|
90
91
|
if capsqnconfig.patrolZoneName then
|
|
91
92
|
if capsqnconfig.patrolZoneGroupName then
|
|
92
93
|
CapZone = ZONE_POLYGON:New(capsqnconfig.patrolZoneGroupName, GROUP:FindByName(capsqnconfig.patrolZoneGroupName))
|
|
94
|
+
CapZoneName = capsqnconfig.patrolZoneGroupName
|
|
93
95
|
else
|
|
94
96
|
CapZone = ZONE:New(capsqnconfig.patrolZoneName)
|
|
97
|
+
CapZoneName = capsqnconfig.patrolZoneName
|
|
95
98
|
end
|
|
96
99
|
else
|
|
97
100
|
if capsqnconfig.patrolZoneGroupName then
|
|
98
101
|
CapZone = ZONE_POLYGON:New(capsqnconfig.patrolZoneGroupName, GROUP:FindByName(capsqnconfig.patrolZoneGroupName))
|
|
102
|
+
CapZoneName = capsqnconfig.patrolZoneGroupName
|
|
99
103
|
else
|
|
100
104
|
CapZone = objCapWarZone.objZone
|
|
105
|
+
--CapZoneName = objCapWarZone.objZone:GetName()
|
|
106
|
+
CapZoneName = "unknown"
|
|
101
107
|
end
|
|
102
108
|
end
|
|
103
|
-
jtff_log.info(string.format("Assigned Squadron %s to %s patrol Zone...", CAPSquadronName,
|
|
109
|
+
jtff_log.info(string.format("Assigned Squadron %s to %s patrol Zone...", CAPSquadronName, CapZoneName),"CAP_WAR_ZONE")
|
|
104
110
|
objCapWarZone.objDispatcher:SetSquadronCap(
|
|
105
111
|
CAPSquadronName,
|
|
106
112
|
CapZone,
|