Skip to main content

Module stats

Module stats 

Source
Expand description

Stat and rating recomputation. Secondary/tertiary stats on CombatStats are stored as percent points (25.0 = 25%), never as a fraction.

Macrosยง

stat_accessors ๐Ÿ”’

Structsยง

CombatStats
Primary and secondary combat stats; secondary/tertiary stats are percent points (25.0 == 25%), not fractions.
PrimaryStats
Player primary attributes.
Ratings
Raw secondary and tertiary stat ratings before DR conversion.
StatsError
Error raised while converting raw ratings into effective stats.

Enumsยง

StatsErrorKind ๐Ÿ”’

Constantsยง

BASE_CRIT_MULTIPLIER ๐Ÿ”’
BASE_MASTERY_POINTS
Baseline mastery points every spec starts with.
PLACEHOLDER_CRIT_PCT ๐Ÿ”’
PLACEHOLDER_HASTE_PCT ๐Ÿ”’
PLACEHOLDER_MASTERY_PCT ๐Ÿ”’
PLACEHOLDER_POWER ๐Ÿ”’
PLACEHOLDER_VERSATILITY_PCT ๐Ÿ”’
SECONDARY_DR_CURVE_ID
DR curve for Crit/Haste/Mastery/Versatility.
TERTIARY_DR_CURVE_ID
DR curve for Leech/Speed/Avoidance.

Functionsยง

attack_and_spell_power ๐Ÿ”’
combat_rating_divisor
Selects the combat-rating divisor for rating_type from the resolved level row.
crit_multiplier
Converts critical-damage bonus percent points into the full critical multiplier.
default_stats
Placeholder gearless CombatStats; see the module note on units (percent points).
divisor_for ๐Ÿ”’
dr_curve_id ๐Ÿ”’
haste_multiplier
Converts haste percent points into a cadence multiplier.
primary_stat_for_spec
Returns the primary attribute used by a spec.
rating_multiplier_at_ilvl
Selects the item-level rating multiplier for a gear budget slot.
rating_percent_points
Convert raw rating from resolved game data into effective percent points.
rating_to_percent
Convert a raw rating to effective percent points via the DBC DR curve.
recompute
Produces CombatStats from primaries, ratings, passives, and spec data.
versatility_multiplier
Converts versatility percent points into a damage/healing multiplier.