I'm currently preparing my addon for MoP.
I've started with the Warlock class where I've found out by experimenting that:
UnitPower('player', 15) = Demonic Fury
UnitPower('player', 7) = Soul Shards
UnitPower('player', 14) = Burning Embers*
*But the burning embers only seem to go from 1 to 3 (integer numbers), even though I can see on the default blizzard GUI that I get a smaller amount of Burning embers when doing damage with for example 'Fel Flame', and it takes like 10 'Fel Flame's to get 1 burning embers...
So is there any 'top-secret' (easy) way of getting the 'real' amount of Burning Embers?
... And is there a place where one can read in detail about that kind of changes..? (wowpedia doesn't seem to provide much detail about this kind of stuff...)
I'm currently preparing my addon for MoP.
I've started with the Warlock class where I've found out by experimenting that:
UnitPower('player', 15) = Demonic Fury
UnitPower('player', 7) = Soul Shards
UnitPower('player', 14) = Burning Embers*
So is there any 'top-secret' (easy) way of getting the 'real' amount of Burning Embers?
edit: I think I see what you're asking, maybe. Here's how the Blizzard GUI is currently updated ("self" here is the embers bar, and "self.emberN" is a specific ember graphic). I've elided some extraneous stuff for brevity. Comments are Blizzard's except for the obvious "...." pseudocode text.
local MAX_POWER_PER_EMBER = 10
function BurningEmbersBar_Update(self, powerType, forceUpdate)
.....
local maxPower = UnitPowerMax("player", SPELL_POWER_BURNING_EMBERS, [b]true[/b])
local power = UnitPower("player", SPELL_POWER_BURNING_EMBERS, [b]true[/b])
local numEmbers = floor(maxPower / MAX_POWER_PER_EMBER)
if ( self.emberCount ~= numEmbers ) then
if ( numEmbers == 3 ) then
self.ember1:SetPoint("TOPLEFT", 17, 7)
self.ember2:SetPoint("LEFT", self.ember1, 40, 0)
self.ember3:SetPoint("LEFT", self.ember2, 40, 0)
self.ember4.fire:Hide()
self.ember4.active = false
self.ember4:Hide()
else
self.ember1:SetPoint("TOPLEFT", 16, 7)
self.ember2:SetPoint("LEFT", self.ember1, 26, 0)
self.ember3:SetPoint("LEFT", self.ember2, 26, 0)
self.ember4:Show()
end
self.emberCount = numEmbers
end
self.power = power
self.maxPower = maxPower
if ( forceUpdate ) then
BurningEmbersBar_SetPower(self, power)
end
end
function BurningEmbersBar_SetPower(self, power)
self.displayedPower = power
for i = 1, self.emberCount do
local ember = self["ember"..i]
WarlockPowerFrame_UpdateFill(ember.fill, WARLOCK_POWER_FILLBAR["Destruction"], power, MAX_POWER_PER_EMBER)
-- animate?
if ( power >= MAX_POWER_PER_EMBER ) then
.... animate the "heating up" graphics
else
.... animate the "smoking / cooling off" graphics
end
-- leftover for the other embers
power = power - MAX_POWER_PER_EMBER
end
end
That may or may not answer your question.
The WarlockPowerFrame_UpdateFill function is just handling which texcoords to use and :Show based on the warlock spec; it doesn't do anything with the current ember value other than "do we show this at all?"
Note the bolded "true"s passed in. That 3rd parameter is used nowhere else in Blizzard's code, not even for the other two warlock specs. It apparently means "use the fractional units". I printed out values while nuking a targeting dummy on my premade beta toon; by default UnitPowerMax always returned 3 and UnitPower was the 1/2/3 number of embers I had filled. With the 3rd param, UnitPowerMax returned 30 and UnitPower returned numbers like 9, 13, 24, eventually 30. So that may be what you're looking for.
I have no idea what game effect would activate the 4th hidden-by-default ember. Presumably it's in preparation for a future tier set bonus or something.
... And is there a place where one can read in detail about that kind of changes..? (wowpedia doesn't seem to provide much detail about this kind of stuff...)
There's a list accumulating at http://www.wowpedia.org/Patch_5.0.1/API_changes but, like all other wowpedia pages, it's community driven. "This kind of stuff" has to be discovered and then also written down.
I have no idea what game effect would activate the 4th hidden-by-default ember. Presumably it's in preparation for a future tier set bonus or something.
Oh, and there's a hidden 4th soul shard too, for future affliction bonuses.
Doesn't seem to be anything graphical for demonic fury. Guessing they just get more demonically pissed off.
Oh, and there's a hidden 4th soul shard too, for future affliction bonuses.
Doesn't seem to be anything graphical for demonic fury. Guessing they just get more demonically pissed off.
The 4th soul shard is from a glyph, and soul shards is only used for Affliction it seems. But when you request soul shard numbers from the API with another talent spec it will act like you always have 3 (or 4 with the glyph) soul shards even though you can't use them. The same goes for demonic fury where there seem to be a base of 200 and when doing damage it will count towards 1000, even when you aren't speced into Demonology.
Demonic Fury is displayed in a bar with Demonology :)
Thank you very much guys. I managed to extract the files with the wow-console, and have now made win7 index the content of the lua files in the blizzard code folder for easier searching.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've started with the Warlock class where I've found out by experimenting that:
UnitPower('player', 15) = Demonic Fury
UnitPower('player', 7) = Soul Shards
UnitPower('player', 14) = Burning Embers*
*But the burning embers only seem to go from 1 to 3 (integer numbers), even though I can see on the default blizzard GUI that I get a smaller amount of Burning embers when doing damage with for example 'Fel Flame', and it takes like 10 'Fel Flame's to get 1 burning embers...
So is there any 'top-secret' (easy) way of getting the 'real' amount of Burning Embers?
... And is there a place where one can read in detail about that kind of changes..? (wowpedia doesn't seem to provide much detail about this kind of stuff...)
It looks like http://www.wowpedia.org/PowerType has been updated with new information and new constants.
edit: I think I see what you're asking, maybe. Here's how the Blizzard GUI is currently updated ("self" here is the embers bar, and "self.emberN" is a specific ember graphic). I've elided some extraneous stuff for brevity. Comments are Blizzard's except for the obvious "...." pseudocode text.
That may or may not answer your question.
The WarlockPowerFrame_UpdateFill function is just handling which texcoords to use and :Show based on the warlock spec; it doesn't do anything with the current ember value other than "do we show this at all?"
Note the bolded "true"s passed in. That 3rd parameter is used nowhere else in Blizzard's code, not even for the other two warlock specs. It apparently means "use the fractional units". I printed out values while nuking a targeting dummy on my premade beta toon; by default UnitPowerMax always returned 3 and UnitPower was the 1/2/3 number of embers I had filled. With the 3rd param, UnitPowerMax returned 30 and UnitPower returned numbers like 9, 13, 24, eventually 30. So that may be what you're looking for.
I have no idea what game effect would activate the 4th hidden-by-default ember. Presumably it's in preparation for a future tier set bonus or something.
There's a list accumulating at http://www.wowpedia.org/Patch_5.0.1/API_changes but, like all other wowpedia pages, it's community driven. "This kind of stuff" has to be discovered and then also written down.
Oh, and there's a hidden 4th soul shard too, for future affliction bonuses.
Doesn't seem to be anything graphical for demonic fury. Guessing they just get more demonically pissed off.
Where do you find the code for the Blizzard GUI? (that might come in very handy when I take a look at the other classes)
The 4th soul shard is from a glyph, and soul shards is only used for Affliction it seems. But when you request soul shard numbers from the API with another talent spec it will act like you always have 3 (or 4 with the glyph) soul shards even though you can't use them. The same goes for demonic fury where there seem to be a base of 200 and when doing damage it will count towards 1000, even when you aren't speced into Demonology.
Demonic Fury is displayed in a bar with Demonology :)
I meant in terms of extra resources, akin to the 4th shard or 4th ember.
All of this stuff can be extracted from the beta client (link), although you'd have to remember to do that each time there's a patch. Ketho and Tekkub often host the diffs themselves (link).
IIRC there is a glyph for a 4th burning ember too.
I'm googling something like "wow ui sources tekkub", first link to GitHub, there by link branches with MoP Beta. Downloadable as zip.
You can also get it directly from the game files installed on your PC: Viewing Blizzard's interface code