Skip to content

Commit

Permalink
Add ArP summary option
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Aug 26, 2022
1 parent d9e702b commit 524b73b
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 8 deletions.
19 changes: 19 additions & 0 deletions RatingBuster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,26 @@ local options = {
type = 'toggle',
name = L["Sum Ignore Armor"],
desc = L["Ignore Armor Summary"],
hidden = function()
return StatLogic:RatingExists(CR_ARMOR_PENETRATION)
end
},
sumArmorPenetration = {
type = 'toggle',
name = L["Sum Armor Penetration"],
desc = L["Armor Penetration Summary"],
hidden = function()
return not StatLogic:RatingExists(CR_ARMOR_PENETRATION)
end
},
sumArmorPenetrationRating = {
type = 'toggle',
name = L["Sum Armor Penetration Rating"],
desc = L["Armor Penetration Rating Summary"],
hidden = function()
return not StatLogic:RatingExists(CR_ARMOR_PENETRATION)
end
}
},
},
spell = {
Expand Down
3 changes: 3 additions & 0 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,9 @@ function StatLogic:GetEffectFromDefense(defense, attackerLevel)
return (defense - attackerLevel * 5) * 0.04
end

function StatLogic:RatingExists(id)
return not not addonTable.RatingBase[id]
end

--[[---------------------------------
{ :GetEffectFromRating(rating, id, [level])
Expand Down
3 changes: 2 additions & 1 deletion libs/StatLogic/locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@ D["StatIDToName"] = {
["MELEE_HASTE"] = {"Hast(%)", "Hast(%)"}, --
["RANGED_HASTE"] = {PLAYERSTAT_RANGED_COMBAT.." Hast(%)", PLAYERSTAT_RANGED_COMBAT.." Hast(%)"},
["SPELL_HASTE"] = {PLAYERSTAT_SPELL_COMBAT.." Hast(%)", PLAYERSTAT_SPELL_COMBAT.." Hast(%)"},
["EXPERTISE"] = {"Waffenkunde", "Waffenkunde"},
["DAGGER_WEAPON"] = {"Dagger "..SKILL, "Dagger"}, -- SKILL = "Skill"
["SWORD_WEAPON"] = {"Sword "..SKILL, "Sword"},
["2H_SWORD_WEAPON"] = {"Two-Handed Sword "..SKILL, "2H Sword"},
Expand All @@ -556,6 +555,8 @@ D["StatIDToName"] = {
["BOW_WEAPON"] = {"Bow "..SKILL, "Bow"},
["FERAL_WEAPON"] = {"Feral "..SKILL, "Feral"},
["FIST_WEAPON"] = {"Unarmed "..SKILL, "Unarmed"},
["EXPERTISE"] = {"Waffenkunde", "Waffenkunde"},
["ARMOR_PENETRATION"] = {"Rüstungsdurchschlag(%)", "ArP(%)"},

---------------------------------------------------------------------------
-- Tier3 Stats - Stats that only show up when broken down from a Tier2 stat
Expand Down
2 changes: 1 addition & 1 deletion libs/StatLogic/locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ D["StatIDToName"] = {
["FERAL_WEAPON"] = {"Feral "..SKILL, "Feral"},
["FIST_WEAPON"] = {"Unarmed "..SKILL, "Unarmed"},
["STAFF_WEAPON"] = {"Staff "..SKILL, "Staff"}, -- Leggings of the Fang ID:10410
--["EXPERTISE"] = {STAT_EXPERTISE, STAT_EXPERTISE},
["EXPERTISE"] = {"Expertise", "Expertise"},
["ARMOR_PENETRATION"] = {"Armor Penetration(%)", "ArP(%)"},

---------------------------------------------------------------------------
-- Tier3 Stats - Stats that only show up when broken down from a Tier2 stat
Expand Down
2 changes: 1 addition & 1 deletion libs/StatLogic/locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ D["StatIDToName"] = {
["FERAL_WEAPON"] = {"Feral "..SKILL, "Feral"},
["FIST_WEAPON"] = {"Unarmed "..SKILL, "Unarmed"},
["STAFF_WEAPON"] = {"Staff "..SKILL, "Staff"}, -- Leggings of the Fang ID:10410
--["EXPERTISE"] = {STAT_EXPERTISE, STAT_EXPERTISE},
["EXPERTISE"] = {"Pericia", "Pericia"},
["ARMOR_PENETRATION"] = {"Penetr. Armadura(%)", "ArP(%)"},

---------------------------------------------------------------------------
-- Tier3 Stats - Stats that only show up when broken down from a Tier2 stat
Expand Down
4 changes: 1 addition & 3 deletions libs/StatLogic/locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,8 @@ D["StatIDToName"] = {
["FERAL_WEAPON"] = {"Compétence en Combat farouche", "Combat farouche"},
["FIST_WEAPON"] = {"Compétence en Armes de pugilat", "Armes de pugilat"},
["STAFF_WEAPON"] = {"Compétence en Bâtons", "Bâtons"}, -- [Jambières du Croc] ID:10410
--["EXPERTISE"] = {STAT_EXPERTISE, STAT_EXPERTISE},
["EXPERTISE"] = {"Expertise", "Expertise"},
--["UNARMED_WEAPON"] = {"Compétence en Mains nues", "Mains nues"},
--["POLEARMS_WEAPON"] = {"Compétence en Armes d'hast", "Armes d'hast"},
["ARMOR_PENETRATION"] = {"Pénétration d'armure(%)", "PenAr(%)"},

---------------------------------------------------------------------------
-- Tier3 Stats - Stats that only show up when broken down from a Tier2 stat
Expand Down
2 changes: 1 addition & 1 deletion libs/StatLogic/locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ D["StatIDToName"] = {
["FERAL_WEAPON"] = {"야생 "..SKILL, "Feral"},
["FIST_WEAPON"] = {"장착 무기류 "..SKILL, "Unarmed"},
["STAFF_WEAPON"] = {"지팡이류 "..SKILL, "Staff"}, -- Leggings of the Fang ID:10410
--["EXPERTISE"] = {STAT_EXPERTISE, STAT_EXPERTISE},
["EXPERTISE"] = {"숙련 ", "Expertise"},
["ARMOR_PENETRATION"] = {"방어구 관통(%)", "방어구 관통(%)"},

---------------------------------------------------------------------------
-- Tier3 Stats - Stats that only show up when broken down from a Tier2 stat
Expand Down
1 change: 1 addition & 0 deletions libs/StatLogic/locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ D["StatIDToName"] = {
["FIST_WEAPON"] = {"徒手战斗技能", "徒手"},
["STAFF_WEAPON_RATING"] = {"法杖技能", "法杖"}, -- Leggings of the Fang ID:10410
["EXPERTISE"] = {"精准", "精准"},
["ARMOR_PENETRATION"] = {"护甲穿透(%)", "护甲穿透(%)"},

---------------------------------------------------------------------------
-- Tier3 Stats - Stats that only show up when broken down from a Tier2 stat
Expand Down
2 changes: 1 addition & 1 deletion libs/StatLogic/locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ D["StatIDToName"] = {
["FERAL_WEAPON"] = {"野性技能", "野性"},
["FIST_WEAPON"] = {"徒手技能", "徒手"},
["STAFF_WEAPON"] = {"法杖技能", "法杖"}, -- Leggings of the Fang ID:10410
--["EXPERTISE"] = {STAT_EXPERTISE, STAT_EXPERTISE},
["EXPERTISE"] = {"熟練", "熟練"},
["ARMOR_PENETRATION"] = {"護甲穿透(%)", "護甲穿透(%)"},

---------------------------------------------------------------------------
-- Tier3 Stats - Stats that only show up when broken down from a Tier2 stat
Expand Down
4 changes: 4 additions & 0 deletions locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ L["Spell Penetration Summary"] = "Durchschlagsübersicht"
-- /rb sum stat ignorearmor
L["Sum Ignore Armor"] = "Rüstungsmissachtung zusammenrechnen"
L["Ignore Armor Summary"] = "Rüstungsmissachtungsübersicht"
L["Sum Armor Penetration"] = "Rüstungsdurchlag zusammenrechnen"
L["Armor Penetration Summary"] = "Rüstungsdurchlagsübersicht"
L["Sum Armor Penetration Rating"] = "Rüstungsdurchlagwertung zusammenrechnen"
L["Armor Penetration Rating Summary"] = "Rüstungsdurchlagwertungsübersicht"
-- /rb sum stat weapondps
--["Sum Weapon DPS"] = true,
--["Weapon DPS Summary"] = true,
Expand Down
4 changes: 4 additions & 0 deletions locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ L["Spell Penetration Summary"] = true
-- /rb sum stat ignorearmor
L["Sum Ignore Armor"] = true
L["Ignore Armor Summary"] = true
L["Sum Armor Penetration"] = true
L["Armor Penetration Summary"] = true
L["Sum Armor Penetration Rating"] = true
L["Armor Penetration Rating Summary"] = true
-- /rb sum stat weapondps
--["Sum Weapon DPS"] = true,
--["Weapon DPS Summary"] = true,
Expand Down
4 changes: 4 additions & 0 deletions locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ L["Spell Penetration Summary"] = "Resumen Penetracion Hechizos"
-- /rb sum stat ignorearmor
L["Sum Ignore Armor"] = "Res. Ignorar armadura"
L["Ignore Armor Summary"] = "Resumen de Ignorar Armadura"
L["Sum Armor Penetration"] = "Res. Penetracion Armadura"
L["Armor Penetration Summary"] = "Resumen de Penetracion Armadura"
L["Sum Armor Penetration Rating"] = "Res. Indice Penetracion Armadura"
L["Armor Penetration Rating Summary"] = "Resumen Indice Penetracion de Armadura"
-- /rb sum stat weapondps
--["Sum Weapon DPS"] = true,
--["Weapon DPS Summary"] = true,
Expand Down
5 changes: 5 additions & 0 deletions locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ L["Spell Penetration Summary"] = "Inclure la Pénétration des sorts."
-- /rb sum stat ignorearmor
L["Sum Ignore Armor"] = "Pénétration d'armure"
L["Ignore Armor Summary"] = "Inclure la Pénétration d'armure."
-- TODO
L["Sum Armor Penetration"] = true
L["Armor Penetration Summary"] = true
L["Sum Armor Penetration Rating"] = true
L["Armor Penetration Rating Summary"] = true
-- /rb sum stat weapondps
--["Sum Weapon DPS"] = true,
--["Weapon DPS Summary"] = true,
Expand Down
4 changes: 4 additions & 0 deletions locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ L["Spell Penetration Summary"] = "주문 관통력 요약"
-- /rb sum stat ignorearmor
L["Sum Ignore Armor"] = "방어도 무시"
L["Ignore Armor Summary"] = "방어도 무시 요약"
L["Sum Armor Penetration"] = "방어도 관통력 합계"
L["Armor Penetration Summary"] = "방어도 관통력 요약"
L["Sum Armor Penetration Rating"] = "방어도 관통도 합계"
L["Armor Penetration Rating Summary"] = "방어도 관통도 요약"
-- /rb sum stat weapondps
--["Sum Weapon DPS"] = true,
--["Weapon DPS Summary"] = true,
Expand Down
6 changes: 6 additions & 0 deletions locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,12 @@ L["Ranged Haste <- Haste Rating, Ranged Haste Rating"] = "Скорости да
-- /rb sum physical rangedhasterating
L["Sum Ranged Haste Rating"] = "Сумма рейтинга скорости дальнего боя"
L["Ranged Haste Rating Summary"] = "Суммировать рейтинг скорости дальнего боя"
L["Sum Ignore Armor"] = "Сумма игнорирования брони"
L["Ignore Armor Summary"] = "Суммировать игнорирование брони"
L["Sum Armor Penetration"] = "Сумма пробивание брони"
L["Armor Penetration Summary"] = "Суммировать пробивание брони"
L["Sum Armor Penetration Rating"] = "Сумма рейтинга пробивание брони"
L["Armor Penetration Rating Summary"] = "Суммировать рейтинг пробивания брони"
-- /rb sum physical maxdamage
L["Sum Weapon Max Damage"] = "Сумма макс урона оружия"
L["Weapon Max Damage Summary"] = "Суммировать макс урон уружия"
Expand Down
4 changes: 4 additions & 0 deletions locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ L["Spell Penetration Summary"] = "统计法术穿透"
-- /rb sum stat ignorearmor
L["Sum Ignore Armor"] = "统计忽略护甲"
L["Ignore Armor Summary"] = "统计忽略护甲效果"
L["Sum Armor Penetration"] = "统计护甲穿透"
L["Armor Penetration Summary"] = "统计无视护甲穿透"
L["Sum Armor Penetration Rating"] = "统计无视护甲穿透等级"
L["Armor Penetration Rating Summary"] = "统计无视护甲穿透等级"
-- /rb sum stat weapondps
--["Sum Weapon DPS"] = true,
--["Weapon DPS Summary"] = true,
Expand Down
4 changes: 4 additions & 0 deletions locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ L["Spell Penetration Summary"] = "統計法術穿透力"
-- /rb sum stat ignorearmor
L["Sum Ignore Armor"] = "統計無視護甲"
L["Ignore Armor Summary"] = "統計無視護甲"
L["Sum Armor Penetration"] = "統計護甲穿透"
L["Armor Penetration Summary"] = "統計無視護甲穿透"
L["Sum Armor Penetration Rating"] = "統計無視護甲穿透等級"
L["Armor Penetration Rating Summary"] = "統計無視護甲穿透等級"
-- /rb sum stat weapondps
--["Sum Weapon DPS"] = true,
--["Weapon DPS Summary"] = true,
Expand Down

0 comments on commit 524b73b

Please sign in to comment.