Skip to main content

Module dbc

Module dbc 

Source
Expand description

DBC effect/aura constants and pure classifiers shared by data resolution.

Modules§

decode đź”’
Per-spell DBC decode arithmetic: power-cost scaling and energize-gain matching.
effect_lookup đź”’
game_data đź”’
Interpretation policy over resolved game data.
live_modifier đź”’
Classification of the DBC effects the generic live-aura path folds into a damage modifier.
passives đź”’
Passive aura modifiers resolved from DBC effects.
semantics đź”’
Canonical DBC spell, effect, aura, modifier, and school semantics.
spell_props đź”’
test_support
Reusable DBC fixtures for passive-effect tests.
weapon đź”’
Weapon classification into the game.item_damage_scaling.weapon_type key.

Structs§

AttributeMask
AuraSubtypeSemantic
One registered DBC apply-aura subtype.
CombatRatingMask
DBC combat-rating bitmask carried in a MOD_RATING effect’s misc_value_0. A single effect may set several bits (e.g. all three versatility variants).
CritChanceScaledCritDamage
One crit-damage term a passive states as a share of the caster’s critical strike chance.
CrowdControlSemantic
Generic control behavior carried by a DBC apply-aura subtype.
DungeonDifficultyFlags
EffectLookup
Read-only resolved-data view for one spell effect.
HealthCosts
Health costs decoded from the active health-power row.
ImplicitTargetSemantic
TrinityCore’s five-axis decomposition of one DBC Targets selector.
ItemBonusListGroupEntryFlags
MechanicMask
DBC spell-mechanic mask. Bit positions are the Mechanic identities.
ModifiedPowerCoefficients
Spell-power and attack-power coefficients after property-24 modifiers.
ModifierOperations
Modifier operations implemented for one property.
ModifierPropertySemantic
One registered spell-modifier property from misc_value_0.
PassiveDamageMods
Static damage multipliers a set of passive auras applies to one spell.
PassiveModifierComponents
Flat and multiplicative components of one affected-spell modifier property.
PassivePetStatMods
Passive aura-382 inheritance multipliers for one companion NPC.
PassiveProcChanceMods
Flat percent points and a final multiplier applied to a spell’s proc chance.
PassiveQuery
Passive selection and the spell whose values are being resolved.
PassiveStatMods
Player-wide sheet-stat adjustments from passive auras.
PowerModifiers
power_type_enum -> display_modifier divisors used to descale DBC power amounts.
ProcAttributeSemantic
One registered server-side proc attribute.
ProcAttributes
Server-side SpellProcEntry.AttributesMask, retaining unknown future bits.
ProcTypeMask
RaidDifficultyFlags
RatingMultiplierMask
SpellAttributeSemantic
One registered spell-level DBC attribute.
SpellAuraInterruptFlags
Primary SpellAuraInterruptFlags word consumed by combat aura lifecycles.
SpellCastTargetFlagSemantic
Engine coverage for one authored or derived cast-target flag.
SpellCastTargetFlags
TrinityCore SpellCastTargetFlags, sourced from SpellDefines.h.
SpellEffectAttributes
DBC SpellEffectAttributes.
SpellEffectSemantic
One registered DBC spell-effect type.
SpellEffectTargetSemantic
Target fallback metadata for one DBC spell-effect kind.
SpellInterruptFlags
DBC SpellInterrupts.InterruptFlags controlling cast interruption and pushback.
SpellSchoolMask
DBC SpellSchoolMask: one bit per damage school.
SpellShapeshiftFormFlags
Behavior flags from SpellShapeshiftForm.Flags.
SpellTargetMasks
Explicit and required target masks calculated from effect selectors and restrictions.
TraitCurrencyFlags
TriggerPayload
Spell-power/attack-power coefficient bundle extracted from a damage effect.
TriggerProgram
Ordered, bounded child operations reached through one DBC trigger edge.
TriggerResolveError
TriggeredDamage
Terminal damage payload reached by following one DBC trigger edge.

Enums§

ArmorSubclass
Item.SubclassID when ClassID == ItemClass::Armor.
AuraState
Complete TrinityCore/DBC AuraStateType vocabulary.
AuraSubtypeKind
Typed aura-subtype identities used by shared engine code.
CombatRating
A secondary/tertiary combat rating granted by a MOD_RATING effect.
ConsumableSubclass
Item.SubclassID when ClassID == ItemClass::Consumable.
CooldownMutation
Typed cooldown mutation shared by direct and triggered effect programs.
CritChanceScaledAxis
Which multiplier a crit-chance-scaled crit-damage term belongs on.
CrowdControlKind
Target-generic loss-of-control category lowered from a DBC aura subtype.
DefenseType
DBC SpellMisc.DefenseType attack-resolution category.
DifficultyId
Difficulty.ID stored on difficulty-specific spell tables.
DiminishingGroup
Authoritative TrinityCore diminishing-return groups used by represented CC.
DispelType
TrinityCore/DBC DispelType identity.
EffectSemanticCoverage
Conformance result for one DBC spell effect.
EnchantEffectKind
DBC SpellItemEnchantment.Effect type.
EnchantTriggerSemantic
Engine behavior selected by the spell triggered from an item enchantment.
GemSubclass
Item.SubclassID when ClassID == ItemClass::Gem.
ImplicitTargetCheck
Relationship/identity predicate applied to candidates.
ImplicitTargetDirection
Direction modifier carried by an implicit selector.
ImplicitTargetObject
Object produced or selected by an implicit-target selector.
ImplicitTargetReference
Coordinate or actor from which an implicit selector resolves.
ImplicitTargetSelection
Spatial selection algorithm used by an implicit selector.
ImplicitTargetSelector
Raw Targets selector identity when no implicit selector is present.
InventoryType
Item.InventoryType.
ItemBonusType
ItemClass
Item.ClassID.
ItemContext
ItemEffectTrigger
ItemEffect.TriggerType.
LiveDamageModifierKind
A damage modifier the generic live-aura path derives from a single DBC effect.
Mechanic
TrinityCore/DBC Mechanics identity.
ModifierFilter
Filter used by a spell-modifier aura to select affected spells.
ModifierOperation
Operation performed by a spell-modifier aura.
ModifierPropertyKind
Typed spell-modifier property identities used by shared engine code.
PetStatKind
Aura-382 misc_value_0 identities for the inherited pet power being modified.
PowerType
ProcAttributeKind
Named server-side proc-attribute identity.
ResourcePassive
One resource adjustment a selected talent’s passive aura contributes.
SemanticSupport
Degree to which the shared engine interprets a DBC semantic automatically.
ShapeshiftForm
A WoW shapeshift form needing a bespoke cast-gating bridge (only Stealth; ordinary forms resolve via MOD_SHAPESHIFT).
SpellAttributeKind
Spell-level DBC attribute identities consumed by shared engine resolution.
SpellEffectImplicitTarget
How a spell effect obtains its target when its A/B selectors do not provide one.
SpellEffectKind
Typed spell-effect identities used by shared engine code.
StatModifierKind
misc_value_0 identities used by stat-modifying aura effects.
TraitConditionType
TraitEffectOperation
How a trait rank’s curve value combines with the talent spell effect’s own base points.
TraitNodeType
Raw TraitNode.Type identity retained with serialized talent-tree data.
TraitTreeIndex
Raw TraitTree family index retained with serialized talent-tree data.
TriggerCooldownTarget
Cooldown coordinate selected by a DBC effect-program operation.
TriggerOperation
One typed combat operation resolved from a DBC trigger child.
WeaponClass
Weapon classification bucket keyed by game.item_damage_scaling.weapon_type.
WeaponSubclass
Ranged identities from Item.SubclassID when ClassID == ItemClass::Weapon.

Constants§

AURA_SUBTYPE_SEMANTICS
Canonical registry of apply-aura subtypes understood by the engine.
CONSUMED_PROC_ATTRIBUTES
Proc attributes consumed by generic runtime code.
CR_MULTIPLIER_BASE_ILVL
Item level at which the armor combat-rating multiplier is sampled for -7 scaling.
EXPANSION_LEVEL_SCALING
Continuous level-scaling rows use ExpectedStat.ExpansionID == -2.
IMPLICIT_TARGET_SEMANTICS
Complete selector table for TrinityCore Targets values 0 through 152.
MODIFIER_PROPERTY_SEMANTICS
Canonical registry of modifier properties implemented by shared resolution.
POWER_REGEN_PERIOD_SECONDS
The fixed cadence used by DBC aura 85 resource-regeneration amounts.
PROC_ATTRIBUTE_SEMANTICS
Canonical registry of SpellProcEntry attributes known to the engine.
SCALING_CLASS_ARMOR_MULTIPLIED
scaling_class -7: budget reads the item column scaled by the ilvl-1 armor CR multiplier.
SCALING_CLASS_DAMAGE_REPLACE_STAT
scaling_class -8 (DAMAGE_REPLACE_STAT): budget reads the damage_replace_stat column.
SCALING_CLASS_DAMAGE_SECONDARY
scaling_class -9 (DAMAGE_SECONDARY): budget reads the damage_secondary column.
SCALING_CLASS_PRIMARY_STAT
scaling_class -1: budget reads the primary-stat item column without an armor multiplier.
SPELL_ATTRIBUTE_SEMANTICS
Canonical registry of spell attributes interpreted by the engine.
SPELL_CAST_TARGET_FLAG_SEMANTICS
Canonical coverage registry for TrinityCore cast-target flags.
SPELL_EFFECT_SEMANTICS
Canonical registry of spell-effect types understood by the engine.

Traits§

ResolvedGameDataEffectExt
Effect-coordinate access for code that has resolved data but no combat hook context.
ResolvedGameDataSemanticExt
SpellEffectSemanticExt
Typed semantic predicates for a resolved DBC spell effect.

Functions§

apply_passive_cooldowns
Applies passive modifiers to every spell-owned cooldown clock.
aura_subtype_is
aura_subtype_is_any
aura_subtype_kind
aura_subtype_modifier
Returns the modifier operation/filter carried by a modifier aura subtype.
aura_subtype_raw
aura_subtype_semantic
Registry lookup for a raw apply-aura subtype.
cast_time_ms
Cast time in ms; channeled spells store their duration in the duration slot.
class_passive_spell_ids
Returns baseline class-passive spell IDs.
classify_enchant_buff_effect
Classify a weapon-enchant buff effect into its stat bucket and amount.
classify_weapon
Classify a weapon by inventory_type, item_subclass, and caster-weapon flag; None for non-weapons.
cost_entry_index
1-based DBC power-cost entry index for the resource type’s cost; 0 when absent.
crit_chance_scaled_crit_damage
Reads the crit-damage terms spell states as a share of the caster’s critical strike chance.
crit_chance_scaled_spell_percent
Percentage of the caster’s critical strike chance the terms add to one spell’s crit bonus.
crowd_control_semantic
damage_def
Returns the first AP/SP damage effect or a zero-valued flat fallback.
damage_school
A spell’s resolved damage school; None when the spell is absent.
effect_redirects_to_trigger_spell
True if an effect forwards to its trigger_spell for the real damage payload.
effect_semantic_coverage
Classify one DBC effect against the engine’s canonical semantic registry.
enchant_effect_is
Whether a raw enchant-effect type has the requested typed identity.
enchant_effect_kind
Typed identity for a raw SpellItemEnchantment.Effect type.
enchant_trigger_semantic
Typed behavior for a raw trigger-spell identity stored in SpellItemEnchantment.
enchantment_stat_value
Returns a flat stat amount for an enchantment effect.
equipped_weapon_matches
Whether the equipped weapon in hand satisfies a DBC item restriction.
extract_damage_payload
Extract the damage coefficient payload from a spell, preferring direct school damage over the first periodic-damage aura.
health_cost
Flat, percentage, and optional health costs from the active health-power row.
implicit_target_semantic
Typed selector lookup; unknown DBC values resolve to None.
is_channeled_spell
Whether the spell’s cast-time slot represents a channeled duration.
is_damage_modifier_passive
Whether spell carries any damage-done modifier effect this module models.
is_physical
Whether a spell deals exclusively physical damage; None when absent.
is_primary_stat_misc
Whether a AuraSubtypeKind::ModStat effect’s misc_value_0 targets the primary stat (the spec’s main stat) rather than a specific stat index.
is_stat_modifier_passive
Whether spell carries any player-wide sheet-stat effect this module models.
is_target_damage_taken_debuff
Whether spell is a damage-taken debuff the caster maintains on its own target.
item_effect_scaling_budget
Item-level budget used by a DBC spell effect with no backing item instance.
item_matches_consumable_query
Whether an item satisfies the consumable lookup coordinates used by data resolvers.
item_scaled_effect_value
Resolves one effect’s coefficient against the item-level budget selected by its scaling class.
live_damage_modifier
The damage modifier the generic live-aura path folds from one DBC effect, if any.
modified_effect_amplitude
Return an effect’s value multiplier after property-27 flat and percentage modifiers.
modified_effect_base_points
Return effective effect base points after selected P_EFFECT_N passives apply.
modified_effect_coefficient
Returns an effect coefficient after percentage P_EFFECT_N modifiers.
modified_power_coefficients
Resolve property 24 against the first populated coefficient field, preserving flat-before-percent order.
modifier_combination_supported
Whether a modifier aura/property combination is implemented generically.
modifier_property_for_effect
Property selecting one exact one-based effect coordinate.
modifier_property_is
modifier_property_is_any
modifier_property_kind
modifier_property_raw
modifier_property_semantic
Registry lookup for a raw spell-modifier property.
normalized_speed_s
Normalized weapon speed (seconds) for AP-contribution.
passive_auto_attack_mult
Compound auto-attack damage multiplier across passive aura 344 effects.
passive_cast_time_ms
Cast time after selected passive flat and percentage modifiers.
passive_chain_multiplier
Returns the per-hop chain multiplier after percentage modifiers.
passive_chain_target_range
Resolve chain jump distance after passive property-35 modifiers.
passive_chain_targets
Returns the effective chain-target count after flat and percentage modifiers.
passive_cooldown_ms
Returns the cooldown after passive modifiers targeting spell.
passive_damage_mods
Returns compound damage and critical-strike modifiers.
passive_doses
Resolves SpellAuraOptions.ProcCharges after passive property-31 modifiers.
passive_duration_ms
Aura duration after selected passive flat/percent modifiers targeting spell.
passive_gcd_ms
Global cooldown after selected passive flat and percentage modifiers.
passive_guardian_damage_mult
Compound guardian damage multiplier across passive aura 531 effects.
passive_hasted_cooldown
Whether a passive aura marks this spell’s cooldown as haste-scaled.
passive_hasted_gcd
Whether the spell’s global cooldown scales with the actor’s haste.
passive_hostile_max_range
Resolve hostile maximum range after passive property-5 modifiers.
passive_mana_regen_multiplier
Multiplicative mana-regeneration modifier from passive auras.
passive_max_charges
Maximum spell charges after category-based passive charge modifiers.
passive_max_stacks
Resolves an aura’s maximum stack count after passive modifiers.
passive_max_targets
Resolve the spell-level target cap after passive property-40 modifiers.
passive_modifier_components
Resolve one passive spell-modifier property while retaining flat-before-percent ordering.
passive_period_ms
Returns a periodic effect’s interval after flat and percentage tick-time modifiers.
passive_pet_damage_mult
Compound pet damage multiplier across passive aura 429 effects.
passive_pet_stat_mods
Resolve NPC-filtered attack/spell-power inheritance from passive aura 382 effects.
passive_proc_chance_mods
Resolve passive spell-modifier property 18 while preserving flat-before-percent order.
passive_radius
Resolve effect radius after passive property-6 modifiers.
passive_resource_cost
Resource cost after passive modifiers; raw DBC flat values descale through modifiers.
passive_stat_mods
Folds passive sheet-stat effects into one PassiveStatMods.
passive_target_armor_mult
Target-armor multiplier after additive passive armor-penetration percentages.
pet_stat_kind
Typed aura-382 pet-stat identity, or None for an unknown raw value.
primary_cost
Primary power cost (descaled) and its power type, matched by resource type; -1 when absent.
primary_cost_pct
primary_max_cost_pct
primary_optional_cost
primary_optional_cost_pct
primary_power_burn_cost
Optional primary-resource spend encoded as a Power Burn spell effect.
primary_resource_gain
Resource gain from the first ENERGIZE effect granting the primary resource type, descaled.
proc_attribute_semantic
resolve_effect_program
Resolves one immediate DBC effect into the shared typed effect program.
resolve_item_budget
Resolve the item stat/rating budget after interpreting the raw DBC quality.
resolve_trigger_program
Resolve one trigger edge into an ordered program of supported child operations.
resolve_triggered_damage
Follow a source effect to the first terminal child damage payload.
resolve_weapon_stats
Resolve an equipped weapon’s damage range from its DBC item and scaling rows.
rppm_crit_scaled
Whether an RPPM proc’s rate scales with critical strike chance.
rppm_haste_scaled
Whether an RPPM proc’s rate scales with haste.
scale_power_amount
Descale a raw DBC power amount by its display_modifier (or leave it as-is when absent).
secondary_cost
Minimum secondary power cost from the row matching the spec’s secondary resource type.
secondary_optional_cost
Optional secondary power cost above the minimum (for variable-point finishers).
secondary_resource_gain
Resource gain from the first ENERGIZE effect granting the secondary resource type, descaled.
spell_attribute_is
Whether an attribute-block slice contains expected.
spell_attribute_is_any
Whether an attribute-block slice contains any requested identity.
spell_attribute_semantic
Registry lookup for a raw spell-attribute id.
spell_cast_target_flag_semantic
Lookup one single-bit cast-target flag in the canonical coverage registry.
spell_effect_is
spell_effect_is_any
spell_effect_kind
spell_effect_raw
spell_effect_semantic
Registry lookup for a raw spell-effect type.
spell_effect_target_semantic
TrinityCore SpellEffectInfo::_data lookup for effect IDs 0 through 355.
spell_props_from
Builds resolved spell properties from flattened DBC data and resource metadata.
spell_scaling_budget
Spell-scaling budget for scaling_class at level; None when the level row is absent.
spell_target_masks
Calculate Trinity-style explicit and required masks from effect A/B selectors and authored flags.
stance_mask_allows
Whether a spell’s stance mask permits the given shapeshift form.
talent_resource_passives
Returns resource adjustments from a selected passive talent.

Type Aliases§

RankedPassive
A passive spell and its rank multiplier.