Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search for how to calculate demishing stats #21

Open
royb3 opened this issue Nov 6, 2021 · 1 comment
Open

Search for how to calculate demishing stats #21

royb3 opened this issue Nov 6, 2021 · 1 comment
Labels
Feature Dafuq is this not in yet?

Comments

@royb3
Copy link
Member

royb3 commented Nov 6, 2021

Tooltip can be overrridden using:
image
STAT_HASTE_BASE_TOOLTIP = STAT_HASTE_BASE_TOOLTIP .. "\nLiefuh Frientjuh!"

@royb3 royb3 added the Feature Dafuq is this not in yet? label Nov 6, 2021
@Arco-Dielhof
Copy link
Sponsor Member

Arco-Dielhof commented Nov 25, 2021

Stats are adjusted based on how much % they give. This should be a flat value for Haste, Crit and Vers. However, this might be different per spec for Mastery.

Below is the first bit of code we are going to need to get the total stats to be converted into the actual stats.

AZP.ToolTips.DiminishingStats =
{
    [1] = { 30, 1.0},  --  0%
    [2] = { 39, 0.9},  -- 10%
    [3] = { 47, 0.8},  -- 20%
    [4] = { 54, 0.7},  -- 30%
    [5] = { 66, 0.6},  -- 40%
    [6] = {126, 0.5},  -- 50%
}

local DStats = AZP.ToolTips.DiminishingStats
local curDStats = !! highestStatsIndex !!
local statValues = nil
local actualStats = 0
for i = curDStats, 1, -1 do
    statValues = !! stats between curDStats[1] and (curDStats[1] - 1) !!
    actualStats = actualStats * curDStats[2]
end

@Arco-Dielhof Arco-Dielhof removed their assignment Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Dafuq is this not in yet?
Projects
None yet
Development

No branches or pull requests

2 participants