Expand description
Gear stat decoding: typed StatType enum over WoW DBC stat_type IDs plus apply_item_stat.
MacrosΒ§
- stat_
type_ πtable
StructsΒ§
- Matching
Armor Passive - DBC-provided primary-stat percentages gated by matching equipped armor.
- Percent π
- Unknown
Stat Type - Returned by
StatType::try_fromfor an unrecognisedstat_typeinteger.
EnumsΒ§
- Stat
Bucket - Spec-resolved destination bucket for an item-stat row.
- Stat
Type - Maps a
WoWDBCstat_typeinteger 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βsutil::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.