Module br.player.power
These functions help in retrieving information about player power.
Power functions are stored in br.player.power and can be utilized by `local power = br.player.power` in your profile. power is the table located at br.player.power powerType is the name of the power passed from the builder which cycles all the collected power from the power list powerIndex is the powerID passed from the builder which cycles all the collected power from the power list
Functions
power.powerType.deficit () | Gets the amount of specified power until max is reached |
power.powerType.frac () | Gets the fractional counts of their available runes - Used by DKs |
power.powerType.max () | Gets the maximum aount of the specified power |
power.powerType.percent () | Gets the current amount of specified power as a percentage |
power.powerType.regen () | Gets the current rate of regeneration for the specified power |
power.powerType.ttm () | Gets the time in seconds until the specified power is maxed |
power.powerType () | Gets the current amount of the specified power. |
Tables
power.powerList | Reference for powerIndex and powerType variables. |
Functions
- power.powerType.deficit ()
-
Gets the amount of specified power until max is reached
Returns:
-
number
- power.powerType.frac ()
-
Gets the fractional counts of their available runes - Used by DKs
Returns:
-
number
- power.powerType.max ()
-
Gets the maximum aount of the specified power
Returns:
-
number
- power.powerType.percent ()
-
Gets the current amount of specified power as a percentage
Returns:
-
number
- power.powerType.regen ()
-
Gets the current rate of regeneration for the specified power
Returns:
-
number
- power.powerType.ttm ()
-
Gets the time in seconds until the specified power is maxed
Returns:
-
number
- power.powerType ()
-
Gets the current amount of the specified power.
Returns:
-
number
Tables
- power.powerList
-
Reference for powerIndex and powerType variables.
Fields:
- 0 = mana
- 1 = rage
- 2 = focus
- 3 = energy
- 4 = comboPoints
- 5 = runes
- 6 = runicPower
- 7 = soulShards
- 8 = astralPower
- 9 = holyPower
- 10 = altPower
- 11 = maelstrom
- 12 = chi
- 13 = insanity
- 16 = arcaneCharges
- 17 = fury
- 18 = pain
- 19 = essence