Skip to content

Add masteries to power report#9604

Open
ksnyder9801 wants to merge 1 commit intoPathOfBuildingCommunity:devfrom
ksnyder9801:dev
Open

Add masteries to power report#9604
ksnyder9801 wants to merge 1 commit intoPathOfBuildingCommunity:devfrom
ksnyder9801:dev

Conversation

@ksnyder9801
Copy link

Fixes #3704 .

Description of the problem being solved:

Masteries are not in the power report

Steps taken to verify a working solution:

  • Manually tested with my build and cross-checked with stat differences tooltips
  • Added spec

Link to a build that showcases this PR:

literally any build

Before screenshot:

image

After screenshot:

image

for nodeId, node in pairs(self.build.spec.nodes) do
wipeTable(node.power)
if node.type == "Mastery" then
node.power.masteryEffects = { }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: adding a new table to node.power since a single power per node can't represent unallocated mastery options

end
end
end

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opted to duplicate the power calc in the loop here instead of a bigger refactor for readability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

power report: add passive masteries

1 participant