Quantcast

Scale BurningEmbers() and SoulShards() to represent full resources.

Johnny C. Lam [03-05-13 - 11:29]
Scale BurningEmbers() and SoulShards() to represent full resources.

BurningEmbers() and SoulShards() are always between 0 and 4 and partial
progress toward another full resource is represented by a fraction, e.g.
``BurningEmbers() >1.5'' means ``at least one and a half Burning Embers''.

This should break fewer existing warlock scripts.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@729 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleState.lua
diff --git a/OvaleState.lua b/OvaleState.lua
index 5700dd6..723f119 100644
--- a/OvaleState.lua
+++ b/OvaleState.lua
@@ -96,7 +96,7 @@ function OvaleState:Reset()
 	self.attenteFinCast = self.maintenant
 	self.state.combo = OvaleComboPoints.combo
 	for k,v in pairs(OvaleData.power) do
-		self.state[k] = UnitPower("player", v.id, v.segments)
+		self.state[k] = UnitPower("player", v.id, v.segments) / (v.segments and 10 or 1)
 	end

 	self:UpdatePowerRates()