mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- increased vertical offsets (by request)
- fixed Slice and Dice module for new Imp SnD talent values as well as the new SnD glyph
This commit is contained in:
@ -38,8 +38,8 @@ IceHUD.options =
|
|||||||
set = function(v)
|
set = function(v)
|
||||||
IceHUD.IceCore:SetVerticalPos(v)
|
IceHUD.IceCore:SetVerticalPos(v)
|
||||||
end,
|
end,
|
||||||
min = -400,
|
min = -700,
|
||||||
max = 400,
|
max = 700,
|
||||||
step = 10,
|
step = 10,
|
||||||
order = 11
|
order = 11
|
||||||
},
|
},
|
||||||
|
@ -6,12 +6,15 @@ local NetherbladeItemIdList = {29044, 29045, 29046, 29047, 29048}
|
|||||||
-- Parnic - bah, have to abandon the more robust string representation of each slot because of loc issues...
|
-- Parnic - bah, have to abandon the more robust string representation of each slot because of loc issues...
|
||||||
local NetherbladeEquipLocList = {1, 3, 5, 7, 10} --"HeadSlot", "ShoulderSlot", "ChestSlot", "LegsSlot", "HandsSlot"}
|
local NetherbladeEquipLocList = {1, 3, 5, 7, 10} --"HeadSlot", "ShoulderSlot", "ChestSlot", "LegsSlot", "HandsSlot"}
|
||||||
|
|
||||||
|
local GlyphSpellId = 56810
|
||||||
|
|
||||||
local baseTime = 9
|
local baseTime = 9
|
||||||
local gapPerComboPoint = 3
|
local gapPerComboPoint = 3
|
||||||
local netherbladeBonus = 3
|
local netherbladeBonus = 3
|
||||||
|
local glyphBonusSec = 3
|
||||||
local impSndTalentPage = 2
|
local impSndTalentPage = 2
|
||||||
local impSndTalentIdx = 4
|
local impSndTalentIdx = 4
|
||||||
local impSndBonusPerRank = 0.15
|
local impSndBonusPerRank = 0.25
|
||||||
local maxComboPoints = 5
|
local maxComboPoints = 5
|
||||||
local sndEndTime = 0
|
local sndEndTime = 0
|
||||||
local sndDuration = 0
|
local sndDuration = 0
|
||||||
@ -302,6 +305,10 @@ function SliceAndDice.prototype:GetMaxBuffTime(numComboPoints)
|
|||||||
maxduration = maxduration + netherbladeBonus
|
maxduration = maxduration + netherbladeBonus
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if self:HasGlyphBonus() then
|
||||||
|
maxduration = maxduration + glyphBonusSec
|
||||||
|
end
|
||||||
|
|
||||||
_, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx)
|
_, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx)
|
||||||
|
|
||||||
maxduration = maxduration * (1 + (rank * impSndBonusPerRank))
|
maxduration = maxduration * (1 + (rank * impSndBonusPerRank))
|
||||||
@ -335,6 +342,18 @@ function SliceAndDice.prototype:HasNetherbladeBonus()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function SliceAndDice.prototype:HasGlyphBonus()
|
||||||
|
for i=1,GetNumGlyphSockets() do
|
||||||
|
local enabled, _, spell = GetGlyphSocketInfo(i)
|
||||||
|
|
||||||
|
if enabled and spell == GlyphSpellId then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
function SliceAndDice.prototype:GetItemIdFromItemLink(linkStr)
|
function SliceAndDice.prototype:GetItemIdFromItemLink(linkStr)
|
||||||
local itemId
|
local itemId
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user