Skip to main content

Module gear

Module gear 

Source
Expand description

Gear stat decoding: typed StatType enum over WoW DBC stat_type IDs plus apply_item_stat.

MacrosΒ§

stat_type_table πŸ”’

StructsΒ§

MatchingArmorPassive
DBC-provided primary-stat percentages gated by matching equipped armor.
Percent πŸ”’
UnknownStatType
Returned by StatType::try_from for an unrecognised stat_type integer.

EnumsΒ§

StatBucket
Spec-resolved destination bucket for an item-stat row.
StatType
Maps a WoW DBC stat_type integer onto the engine’s typed stat buckets.

ConstantsΒ§

BASE_CRIT_DAMAGE_MULTIPLIER πŸ”’
COMBO_PRIMARY_STAT_MAX πŸ”’
COMBO_PRIMARY_STAT_MIN πŸ”’
CRAFTED_PLACEHOLDER_STAT_IDS πŸ”’
CRIT_EFFECTIVENESS_PER_UNIQUE_COLOR πŸ”’
MATCHING_ARMOR_INVENTORY_MASK πŸ”’
MATCHING_ARMOR_SLOTS
Armor slots required for specialization; cloaks are exempt.

FunctionsΒ§

apply_item_stat
Apply a single item-stat row onto primary / ratings; unknown ids are dropped and logged.
apply_resolved_item_stats
Apply all resolved item-stat rows, including crafted placeholder remapping.
class_armor_subclass
Returns a class’s specialized armor subclass; mirrors SimC’s util::matching_armor_type.
crit_damage_bonus_from_effectiveness
Convert critical-strike effectiveness into bonus critical-damage percentage points.
crit_effectiveness_with_percent
Apply a percentage increase to critical-strike effectiveness.
crit_effectiveness_with_unique_gems
Fold the Powerful Eversong Diamond bonus over distinct Midnight gem colors.
gem_color_key
Extract the Midnight gem color suffix while excluding meta gems.
inventory_type_bit πŸ”’
matching_armor_specialization_passive
Resolves a matching-armor specialization passive and its DBC stat payload.
rating_multiplier_slot
Returns the rating-multiplier column for an inventory type.
remap_crafted_stat πŸ”’
scale_rating_item_stat
Scales and rounds rating stats by the slot multiplier.