ingame/champion/championstar.lua:547 -- self.pointsSpinner:SetPlaySoundFunction(function(spinner, currentValue, oldValue)
local championSkillData = self.star:GetChampionSkillData()
local currentJumpPoint = championSkillData:GetJumpPointForValue(currentValue)
local oldJumpPoint = championSkillData:GetJumpPointForValue(oldValue)
local isUnlocked = championSkillData:WouldBeUnlockedNodeAtValue(currentValue)
local wasUnlocked = championSkillData:WouldBeUnlockedNodeAtValue(oldValue)
if currentValue > oldValue then
if not wasUnlocked and isUnlocked then
PlaySound(SOUNDS.CHAMPION_STAR_UNLOCKED)
elseif championSkillData:HasJumpPoints() and currentJumpPoint > oldJumpPoint then
PlaySound(SOUNDS.CHAMPION_STAR_STAGE_UP)
else
PlaySound(SOUNDS.CHAMPION_SPINNER_UP)
end
else
if wasUnlocked and not isUnlocked then
PlaySound(SOUNDS.CHAMPION_STAR_LOCKED)
elseif championSkillData:HasJumpPoints() and currentJumpPoint < oldJumpPoint then
PlaySound(SOUNDS.CHAMPION_STAR_STAGE_DOWN)
else
PlaySound(SOUNDS.CHAMPION_SPINNER_DOWN)
end
end
end)