minor updates to colors and extra stages

This commit is contained in:
2025-05-23 17:38:49 +02:00
parent c25ce52787
commit 07f3959592
3 changed files with 14 additions and 5 deletions
Binary file not shown.
@@ -51,10 +51,10 @@ Stage.__index = Stage
Stage.StageColors = {
INVISIBLE = { r=0, g=0, b=0, a=0 },
RED_ACTIVE = { r=1, g=0, b=0, a=0.15 },
RED_PREACTIVE = { r=230/255, g=153/255, b=0, a=0.3},
BLUE = { r=0, g=0, b=1, a=0.15},
GRAY = { r=80/255, g=80/255, b=80/255, a=0.15 }
RED_ACTIVE = { r=1, g=0, b=0, a=0.12 },
RED_PREACTIVE = { r=1, g=0, b=0, a=0.05},
BLUE = { r=0, g=0, b=1, a=0.10},
GRAY = { r=80/255, g=80/255, b=80/255, a=0.10 }
}
---comment
+10 -1
View File
@@ -35,8 +35,17 @@ end
---@param number integer
function ExtraStage:OnStageNumberChanged(number)
if self._activeStage == number then --only activate once for a stage
return
end
local previousActive = self._activeStage
self._activeStage = number
if Spearhead.capInfo.IsCapActiveWhenZoneIsActive(self.zoneName, number) == true then
if self.stageNumber - self._activeStage == self._stageConfig.AmountPreactivateStage then
self._logger:debug("Pre-activating stage: " .. self.zoneName .. " with number: " .. number)
self:PreActivate(true)
elseif Spearhead.capInfo.IsCapActiveWhenZoneIsActive(self.zoneName, number) == true then
self:PreActivate(false)
end