Skip to content

Commit

Permalink
Add options to show modified base stat amounts in breakdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Oct 31, 2024
1 parent 426c9ee commit 4cacbfb
Show file tree
Hide file tree
Showing 13 changed files with 171 additions and 94 deletions.
184 changes: 121 additions & 63 deletions RatingBuster.lua

Large diffs are not rendered by default.

70 changes: 39 additions & 31 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,6 @@ StatLogic.StatModInfo = {
initialValue = 0,
finalAdjust = 0,
},
["MOD_AGI"] = {
initialValue = 1,
finalAdjust = 0,
},
["MOD_AP"] = {
initialValue = 0,
finalAdjust = 1,
},
["MOD_ARMOR"] = {
initialValue = 1,
finalAdjust = 0,
Expand All @@ -399,10 +391,6 @@ StatLogic.StatModInfo = {
initialValue = 1,
finalAdjust = 0,
},
["MOD_INT"] = {
initialValue = 1,
finalAdjust = 0,
},
["MOD_MANA"] = {
initialValue = 1,
finalAdjust = 0,
Expand All @@ -419,26 +407,10 @@ StatLogic.StatModInfo = {
initialValue = 1,
finalAdjust = 0,
},
["MOD_RANGED_AP"] = {
initialValue = 0,
finalAdjust = 1,
},
["MOD_SPELL_DMG"] = {
initialValue = 0,
finalAdjust = 1,
},
["MOD_SPI"] = {
initialValue = 1,
finalAdjust = 0,
},
["MOD_STA"] = {
initialValue = 1,
finalAdjust = 0,
},
["MOD_STR"] = {
initialValue = 1,
finalAdjust = 0,
},
}

-- StatMods used by RatingBuster to dynamically add options for stat breakdowns
Expand Down Expand Up @@ -670,12 +642,48 @@ local addedInfoMods = {
mod = "RESILIENCE",

},
{
mod = "AGI",
initialValue = 1,
},
{
mod = "AP",
finalAdjust = 1,
},
{
mod = "INT",
initialValue = 1,
},
{
mod = "RANGED_AP",
finalAdjust = 1,
},
{
mod = "SPI",
initialValue = 1,
},
{
mod = "STA",
initialValue = 1,
},
{
mod = "STR",
initialValue = 1,
},
}

for _, statMod in ipairs(addedInfoMods) do
local name = ("ADD_%s_MOD_%s"):format(statMod.add, statMod.mod)
statMod.initialValue = 0
statMod.finalAdjust = 0
local name = ""
if statMod.add then
name = ("ADD_%s_"):format(statMod.add)
end
name = name .. ("MOD_%s"):format(statMod.mod)
if not statMod.initialValue then
statMod.initialValue = 0
end
if not statMod.finalAdjust then
statMod.finalAdjust = 0
end
StatLogic.StatModInfo[name] = statMod
end

Expand Down
1 change: 1 addition & 0 deletions locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = "%s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = "%s "..SHOW
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down
1 change: 1 addition & 0 deletions locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ L["statList"] = {
-- "%2$s $1$s" -> "Crit +1.34%"
L["StatBreakdownOrder"] = "%s %s"
L["Show %s"] = SHOW.." %s"
L["Show Modified %s"] = "Show Modified %s"
-- for hit rating showing both physical and spell conversions
-- (+1.21%, S+0.98%)
-- (+1.21%, +0.98% S)
Expand Down

0 comments on commit 4cacbfb

Please sign in to comment.