mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Chief.lua
added remove conflict zone
This commit is contained in:
parent
65cc72e28b
commit
fe58253a44
@ -1482,7 +1482,7 @@ end
|
||||
-- * Enemies in these zones will only be engaged if strategy is at least `CHIEF.STRATEGY.DEFENSIVE`.
|
||||
--
|
||||
-- @param #CHIEF self
|
||||
-- @param Core.Set#SET_ZONE BorderZoneSet Set of zones, defining our borders.
|
||||
-- @param Core.Set#SET_ZONE BorderZoneSet Set of zones defining our borders.
|
||||
-- @return #CHIEF self
|
||||
function CHIEF:SetBorderZones(BorderZoneSet)
|
||||
|
||||
@ -1498,7 +1498,7 @@ end
|
||||
-- * Enemies in these zones will only be engaged if strategy is at least `CHIEF.STRATEGY.DEFENSIVE`.
|
||||
--
|
||||
-- @param #CHIEF self
|
||||
-- @param Core.Zone#ZONE Zone The zone.
|
||||
-- @param Core.Zone#ZONE Zone The zone to be added.
|
||||
-- @return #CHIEF self
|
||||
function CHIEF:AddBorderZone(Zone)
|
||||
|
||||
@ -1508,7 +1508,7 @@ function CHIEF:AddBorderZone(Zone)
|
||||
return self
|
||||
end
|
||||
|
||||
--- Remove a zone defining your territory.
|
||||
--- Remove a border zone defining your territory.
|
||||
-- @param #CHIEF self
|
||||
-- @param Core.Zone#ZONE Zone The zone to be removed.
|
||||
-- @return #CHIEF self
|
||||
@ -1542,7 +1542,7 @@ end
|
||||
-- * Enemies in these zones will only be engaged if strategy is at least `CHIEF.STRATEGY.OFFENSIVE`.
|
||||
--
|
||||
-- @param #CHIEF self
|
||||
-- @param Core.Zone#ZONE Zone The zone to add.
|
||||
-- @param Core.Zone#ZONE Zone The zone to be added.
|
||||
-- @return #CHIEF self
|
||||
function CHIEF:AddConflictZone(Zone)
|
||||
|
||||
@ -1552,6 +1552,19 @@ function CHIEF:AddConflictZone(Zone)
|
||||
return self
|
||||
end
|
||||
|
||||
--- Remove a conflict zone.
|
||||
-- @param #CHIEF self
|
||||
-- @param Core.Zone#ZONE Zone The zone to be removed.
|
||||
-- @return #CHIEF self
|
||||
function CHIEF:RemoveConflictZone(Zone)
|
||||
|
||||
-- Add a conflict zone.
|
||||
self.yellowzoneset:Remove(Zone:GetName())
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
|
||||
--- Set attack zone set.
|
||||
--
|
||||
-- * Enemies in these zones will only be engaged if strategy is at least `CHIEF.STRATEGY.AGGRESSIVE`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user