Mastery Increase + Passive Talents

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
ectorzage
Posts: 3
Joined: Tue Nov 15, 2016 3:00 am

Mastery Increase + Passive Talents

#1 Post by ectorzage »

I've created an addon that allows me to spend gold to raise my mastery level of talent categories. While it's mostly been working, I have noticed that sustains need to be reset after the increase and passives need to have points added or taken away to reflect the new values. Is there a line of code that can refresh all talents, passives and sustains, after the mastery increase?

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Mastery Increase + Passive Talents

#2 Post by HousePet »

Code: Select all

self:updateAllTalentsPassives()
Not sure about sustains.
My feedback meter decays into coding. Give me feedback and I make mods.

Zizzo
Sher'Tul Godslayer
Posts: 2522
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

Re: Mastery Increase + Passive Talents

#3 Post by Zizzo »

Your best bet would probably be to poke around in the LevelupDialog and see what it does when it closes the dialog and applies the user-specified changes, since that's pretty much the same stuff you'll need to do.
"Blessed are the yeeks, for they shall inherit Arda..."

ectorzage
Posts: 3
Joined: Tue Nov 15, 2016 3:00 am

Re: Mastery Increase + Passive Talents

#4 Post by ectorzage »

Thank you both for the feedback!

Post Reply