mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Warehouse.lua
This commit is contained in:
@@ -5029,12 +5029,7 @@ function WAREHOUSE:onafterDestroyed(From, Event, To)
|
|||||||
for k,_ in pairs(self.stock) do
|
for k,_ in pairs(self.stock) do
|
||||||
self.stock[k]=nil
|
self.stock[k]=nil
|
||||||
end
|
end
|
||||||
|
|
||||||
--self.queue=nil
|
|
||||||
--self.queue={}
|
|
||||||
|
|
||||||
--self.stock=nil
|
|
||||||
--self.stock={}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -5814,11 +5809,9 @@ end
|
|||||||
-- @param Wrapper.Group#GROUP group The group that arrived.
|
-- @param Wrapper.Group#GROUP group The group that arrived.
|
||||||
function WAREHOUSE:_Arrived(group)
|
function WAREHOUSE:_Arrived(group)
|
||||||
self:_DebugMessage(string.format("Group %s arrived!", tostring(group:GetName())))
|
self:_DebugMessage(string.format("Group %s arrived!", tostring(group:GetName())))
|
||||||
--self:E(string.format("Group %s arrived!", tostring(group:GetName())))
|
|
||||||
|
|
||||||
if group then
|
if group then
|
||||||
--Trigger "Arrived event.
|
--Trigger "Arrived event.
|
||||||
--group:SmokeBlue()
|
|
||||||
self:__Arrived(1, group)
|
self:__Arrived(1, group)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -5830,14 +5823,10 @@ end
|
|||||||
-- @param #number n Waypoint passed.
|
-- @param #number n Waypoint passed.
|
||||||
-- @param #number N Final waypoint.
|
-- @param #number N Final waypoint.
|
||||||
function WAREHOUSE:_PassingWaypoint(group,n,N)
|
function WAREHOUSE:_PassingWaypoint(group,n,N)
|
||||||
self:T(string.format("Group %s passing waypoint %d of %d!", tostring(group:GetName()), n, N))
|
self:T(self.wid..string.format("Group %s passing waypoint %d of %d!", tostring(group:GetName()), n, N))
|
||||||
|
|
||||||
if group then
|
|
||||||
--group:SmokeGreen()
|
|
||||||
end
|
|
||||||
|
|
||||||
|
-- Final waypoint reached.
|
||||||
if n==N then
|
if n==N then
|
||||||
--group:SmokeBlue()
|
|
||||||
self:__Arrived(1, group)
|
self:__Arrived(1, group)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user