minor logging additions
This commit is contained in:
Binary file not shown.
@@ -115,6 +115,8 @@ function ZoneMission.new(zoneName, priority, database, logger, parentStage)
|
||||
self._completeAtIndex = completeAtIndex
|
||||
end
|
||||
|
||||
self._logger:debug("Complete at index " .. self.zoneName .. ": " .. self._completeAtIndex)
|
||||
|
||||
local SpearheadGroup = Spearhead.classes.stageClasses.Groups.SpearheadGroup
|
||||
local groupNames = database:getGroupsForMissionZone(zoneName)
|
||||
for _, groupName in pairs(groupNames) do
|
||||
@@ -266,6 +268,7 @@ function ZoneMission:UpdateState(checkHealth, messageIfDone)
|
||||
|
||||
local deadRatio = (total - alive) / total
|
||||
if deadRatio >= self._completeAtIndex then
|
||||
self._logger:debug("Dead ratio " .. self.zoneName .. deadRatio .. " >= " .. self._completeAtIndex)
|
||||
self._state = "COMPLETED"
|
||||
end
|
||||
else
|
||||
@@ -283,6 +286,8 @@ function ZoneMission:UpdateState(checkHealth, messageIfDone)
|
||||
|
||||
local deadRatio = (total - alive) / total
|
||||
if deadRatio >= self._completeAtIndex then
|
||||
self._logger:debug("Dead ratio " .. self.zoneName .. deadRatio .. " >= " .. self._completeAtIndex)
|
||||
|
||||
self._state = "COMPLETED"
|
||||
end
|
||||
end
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
|
||||
SpearheadConfig = {
|
||||
|
||||
debugEnabled = false,
|
||||
debugEnabled = true,
|
||||
CapConfig = {
|
||||
--quickly enable of disable the entire CAP Logic
|
||||
--(you can also just rename all units to not be named "CAP_")
|
||||
|
||||
Reference in New Issue
Block a user