minor updates to colors and extra stages
This commit is contained in:
Binary file not shown.
@@ -51,10 +51,10 @@ Stage.__index = Stage
|
|||||||
|
|
||||||
Stage.StageColors = {
|
Stage.StageColors = {
|
||||||
INVISIBLE = { r=0, g=0, b=0, a=0 },
|
INVISIBLE = { r=0, g=0, b=0, a=0 },
|
||||||
RED_ACTIVE = { r=1, g=0, b=0, a=0.15 },
|
RED_ACTIVE = { r=1, g=0, b=0, a=0.12 },
|
||||||
RED_PREACTIVE = { r=230/255, g=153/255, b=0, a=0.3},
|
RED_PREACTIVE = { r=1, g=0, b=0, a=0.05},
|
||||||
BLUE = { r=0, g=0, b=1, a=0.15},
|
BLUE = { r=0, g=0, b=1, a=0.10},
|
||||||
GRAY = { r=80/255, g=80/255, b=80/255, a=0.15 }
|
GRAY = { r=80/255, g=80/255, b=80/255, a=0.10 }
|
||||||
}
|
}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
|
|||||||
@@ -35,8 +35,17 @@ end
|
|||||||
---@param number integer
|
---@param number integer
|
||||||
function ExtraStage:OnStageNumberChanged(number)
|
function ExtraStage:OnStageNumberChanged(number)
|
||||||
|
|
||||||
|
if self._activeStage == number then --only activate once for a stage
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local previousActive = self._activeStage
|
||||||
self._activeStage = number
|
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)
|
self:PreActivate(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user