mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 13:40:00 +00:00
debuffs: add support for dynamic debuff durations
This commit is contained in:
@@ -48,7 +48,6 @@ pfUI supports and contains language specific code for the following gameclients.
|
||||
## Other Addons
|
||||
* [pfUI-fonts](https://github.com/shagu/pfUI-fonts) Additional fonts for pfUI
|
||||
* [DPSMate](https://github.com/Geigerkind/DPSMate) An advanced combat analyzation tool
|
||||
* [DebuffTimers](https://github.com/shagu/DebuffTimers) Timer Overlays for enemy debuffs
|
||||
* [Clique](https://github.com/shagu/Clique) Simply powerful click-casting interface
|
||||
* [SortBags](https://github.com/shirsig/SortBags) Automatically stacks and sorts your items.
|
||||
|
||||
|
||||
Vendored
+9
@@ -122,6 +122,15 @@ pfUI_locale["deDE"]["critters"] = {
|
||||
'Irrwisch',
|
||||
}
|
||||
|
||||
pfUI_locale["deDE"]["dyndebuffs"] = {
|
||||
["Rupture"] = "Blutung",
|
||||
["Kidney Shot"] = "Nierenhieb",
|
||||
["Rend"] = "Verwunden",
|
||||
["Shadow Word: Pain"] = "Schattenwort: Schmerz",
|
||||
["Demoralizing Shout"] = "Demoralisierungsruf",
|
||||
["Frostbolt"] = "Frostblitz",
|
||||
}
|
||||
|
||||
pfUI_locale["deDE"]["interrupts"] = {
|
||||
["Schildhieb"] = true,
|
||||
["Zuschlagen"] = true,
|
||||
|
||||
Vendored
+9
@@ -122,6 +122,15 @@ pfUI_locale["enUS"]["critters"] = {
|
||||
'Wisp',
|
||||
}
|
||||
|
||||
pfUI_locale["enUS"]["dyndebuffs"] = {
|
||||
["Rupture"] = "Rupture",
|
||||
["Kidney Shot"] = "Kidney Shot",
|
||||
["Rend"] = "Rend",
|
||||
["Shadow Word: Pain"] = "Shadow Word: Pain",
|
||||
["Demoralizing Shout"] = "Demoralizing Shout",
|
||||
["Frostbolt"] = "Frostbolt",
|
||||
}
|
||||
|
||||
pfUI_locale["enUS"]["interrupts"] = {
|
||||
["Shield Bash"] = true,
|
||||
["Pummel"] = true,
|
||||
|
||||
Vendored
+9
@@ -122,6 +122,15 @@ pfUI_locale["esES"]["critters"] = {
|
||||
'Fuego fatuo',
|
||||
}
|
||||
|
||||
pfUI_locale["esES"]["dyndebuffs"] = {
|
||||
["Rupture"] = "Ruptura",
|
||||
["Kidney Shot"] = "Golpe en los riñones",
|
||||
["Rend"] = "Desgarrar",
|
||||
["Shadow Word: Pain"] = "Palabra de las Sombras: dolor",
|
||||
["Demoralizing Shout"] = "Grito desmoralizador",
|
||||
["Frostbolt"] = "Descarga de Escarcha",
|
||||
}
|
||||
|
||||
pfUI_locale["esES"]["interrupts"] = {
|
||||
["Azote de escudo"] = true,
|
||||
["Zurrar"] = true,
|
||||
|
||||
Vendored
+9
@@ -117,6 +117,15 @@ pfUI_locale["frFR"]["critters"] = {
|
||||
'Feu follet',
|
||||
}
|
||||
|
||||
pfUI_locale["frFR"]["dyndebuffs"] = {
|
||||
["Rupture"] = "Rupture",
|
||||
["Kidney Shot"] = "Aiguillon perfide",
|
||||
["Rend"] = "Pourfendre",
|
||||
["Shadow Word: Pain"] = "Mot de l'ombre : Douleur",
|
||||
["Demoralizing Shout"] = "Cri démoralisant",
|
||||
["Frostbolt"] = "Eclair de givre",
|
||||
}
|
||||
|
||||
pfUI_locale["frFR"]["interrupts"] = {
|
||||
["Coup de bouclier"] = true,
|
||||
["Volée de coups"] = true,
|
||||
|
||||
Vendored
+9
@@ -122,6 +122,15 @@ pfUI_locale["koKR"]["critters"] = {
|
||||
'위습',
|
||||
}
|
||||
|
||||
pfUI_locale["koKR"]["dyndebuffs"] = {
|
||||
["Rupture"] = "파열",
|
||||
["Kidney Shot"] = "급소 가격",
|
||||
["Rend"] = "분쇄",
|
||||
["Shadow Word: Pain"] = "어둠의 권능: 고통",
|
||||
["Demoralizing Shout"] = "사기의 외침",
|
||||
["Frostbolt"] = "얼음 화살",
|
||||
}
|
||||
|
||||
pfUI_locale["koKR"]["interrupts"] = {
|
||||
["방패 가격"] = true,
|
||||
["자루 공격"] = true,
|
||||
|
||||
Vendored
+9
@@ -122,6 +122,15 @@ pfUI_locale["ruRU"]["critters"] = {
|
||||
'Огонек',
|
||||
}
|
||||
|
||||
pfUI_locale["ruRU"]["dyndebuffs"] = {
|
||||
["Rupture"] = "Рваная рана",
|
||||
["Kidney Shot"] = "Удар по почкам",
|
||||
["Rend"] = "Кровопускание",
|
||||
["Shadow Word: Pain"] = "Слово Тьмы: Боль",
|
||||
["Demoralizing Shout"] = "Деморализующий крик",
|
||||
["Frostbolt"] = "Ледяная стрела",
|
||||
}
|
||||
|
||||
pfUI_locale["ruRU"]["interrupts"] = {
|
||||
["Удар щитом"] = true,
|
||||
["Зуботычина"] = true,
|
||||
|
||||
Vendored
+9
@@ -117,6 +117,15 @@ pfUI_locale["zhCN"]["critters"] = {
|
||||
'小精灵',
|
||||
}
|
||||
|
||||
pfUI_locale["zhCN"]["dyndebuffs"] = {
|
||||
["Rupture"] = "割裂",
|
||||
["Kidney Shot"] = "肾击",
|
||||
["Rend"] = "撕裂",
|
||||
["Shadow Word: Pain"] = "暗言术:痛",
|
||||
["Demoralizing Shout"] = "挫志怒吼",
|
||||
["Frostbolt"] = "寒冰箭",
|
||||
}
|
||||
|
||||
pfUI_locale["zhCN"]["interrupts"] = {
|
||||
["盾击"] = true,
|
||||
["拳击"] = true,
|
||||
|
||||
+23
-2
@@ -106,8 +106,29 @@ pfUI:RegisterModule("debuffs", function ()
|
||||
if L["debuffs"][effect] and rank then
|
||||
local rank = string.gsub(rank, RANK .. " ", "")
|
||||
local duration = L["debuffs"][effect][tonumber(rank)] or pfUI.debuffs:GetDuration(effect)
|
||||
-- TODO: add combo point calculation here
|
||||
-- TODO: add talent calculation here
|
||||
if effect == L["dyndebuffs"]["Rupture"] then
|
||||
-- Rupture: +2 sec per combo point
|
||||
duration = duration + GetComboPoints()*2
|
||||
elseif effect == L["dyndebuffs"]["Kidney Shot"] then
|
||||
-- Kidney Shot: +1 sec per combo point
|
||||
duration = duration + GetComboPoints()*1
|
||||
elseif effect == L["dyndebuffs"]["Rend"] then
|
||||
-- Improved Rend: 15%, 25%, 35%
|
||||
local _,_,_,_,count = GetTalentInfo(1,3)
|
||||
if count and count > 0 then duration = duration + ( duration / 100 * (5+count*10)) end
|
||||
elseif effect == L["dyndebuffs"]["Demoralizing Shout"] then
|
||||
-- Booming Voice: 10% per talent
|
||||
local _,_,_,_,count = GetTalentInfo(2,1)
|
||||
if count and count > 0 then duration = duration + ( duration / 100 * (count*10)) end
|
||||
elseif effect == L["dyndebuffs"]["Shadow Word: Pain"] then
|
||||
-- Improved Shadow Word: Pain: +3s per talent
|
||||
local _,_,_,_,count = GetTalentInfo(3,4)
|
||||
if count and count > 0 then duration = duration + count * 3 end
|
||||
elseif effect == L["dyndebuffs"]["Frostbolt"] then
|
||||
-- Permafrost: +1s per talent
|
||||
local _,_,_,_,count = GetTalentInfo(3,7)
|
||||
if count and count > 0 then duration = duration + count end
|
||||
end
|
||||
return duration
|
||||
elseif L["debuffs"][effect] and L["debuffs"][effect][0] then
|
||||
return L["debuffs"][effect][0]
|
||||
|
||||
Reference in New Issue
Block a user