Skip to main content

Module constants

Module constants 

Source
Expand description

Shared numeric constants used across the workspace.

Constants§

ANCESTRAL_CALL_SPELL_ID
Mag’har Orc Ancestral Call spell.
AUGMENT_RUNE_SPELL_ID
Crystallized augment rune buff spell.
AUGMENT_RUNE_SPELL_IDS
Ordered augment-rune name fragments and their buff spells.
BACKOFF_MULTIPLIER
Exponential backoff multiplier.
BERSERKING_SPELL_ID
Troll Berserking spell.
BLOODLUST_SPELL_ID
Bloodlust raid-buff spell.
BLOOD_FURY_SPELL_ID
Orc Blood Fury spell.
BYTES_PER_KB
Bytes per kilobyte (f64).
BYTES_PER_KB_USIZE
Bytes per kilobyte (usize).
BYTES_PER_MB
Bytes per megabyte (f64).
BYTES_PER_MB_USIZE
Bytes per megabyte (usize).
CURRENT_EXPANSION_ID
Current WoW expansion identifier.
DEFAULT_DURATION_S
Default simulation duration in seconds.
DEFAULT_GCD_MS
Default GCD duration in milliseconds.
DEFAULT_GCD_MS_I32
Default GCD duration in milliseconds (i32 for DBC field compatibility).
DEFAULT_ICON_FILENAME
Default icon filename for unknown/missing icons.
DEFAULT_WOW_PATCH
Default WoW patch version used for game-data queries when WOWLAB_PATCH is unset.
FLASK_ALCHEMICAL_CHAOS_SPELL_ID
Flask of Alchemical Chaos buff spell.
FOOD_PRIMARY_STAT_COEFFICIENT_EFFECT_INDEX
Effect index containing the primary-stat food coefficient.
FOOD_PRIMARY_STAT_COEFFICIENT_SPELL_ID
Spell containing the primary-stat food coefficient.
GCD_FLOOR_MS
Minimum GCD duration in milliseconds.
HTTP_CONNECT_TIMEOUT_SECS
HTTP connect timeout in seconds.
HTTP_REQUEST_TIMEOUT_SECS
HTTP request timeout in seconds.
HUNDRED
Percentage conversion, rounding denominators, etc.
HUNDRED_U32
Percentage conversion (u32 for integer math).
HUNDRED_U64
Percentage conversion (u64 for integer math).
JSON_ERROR_PREVIEW_LEN
Maximum length of JSON error preview strings.
MAX_PLAYER_LEVEL
Maximum player level supported by the current game-data release.
MAX_RETRY_ATTEMPTS
Maximum number of retry attempts for fallible operations.
MS_PER_HOUR
Milliseconds per hour (f64).
MS_PER_MINUTE
Milliseconds per minute (f64).
MS_PER_SECOND
Milliseconds per second (f64).
MS_PER_SECOND_U64
Milliseconds per second (u64).
ONE_MILLION
Microsecond conversion, large-scale factors.
POWERFUL_EVERSONG_DIAMOND_SPELL_ID
Powerful Eversong Diamond passive item-effect spell.
PRIMARY_FOOD_BUFF_SPELL_IDS
Ordered primary-stat food use spells and their resulting buff spells.
PROTO_DPS_SCALE
DPS values are stored as (value * 10) in protobuf for one decimal place.
PROTO_RESOURCE_SCALE
Resource/percentage values use a wire-format scale of two decimal places.
QUANTILE_P01
Quantile fraction for p01 (1st percentile).
QUANTILE_P05
Quantile fraction for p05 (5th percentile).
QUANTILE_P10
Quantile fraction for p10 (10th percentile).
QUANTILE_P25
Quantile fraction for p25 (25th percentile).
QUANTILE_P50
Quantile fraction for p50 (50th percentile / median).
QUANTILE_P75
Quantile fraction for p75 (75th percentile).
QUANTILE_P90
Quantile fraction for p90 (90th percentile).
QUANTILE_P95
Quantile fraction for p95 (95th percentile).
QUANTILE_P99
Quantile fraction for p99 (99th percentile).
RACIAL_ON_USE_SPELL_IDS
Ordered race-to-modeled-on-use-racial spell IDs.
SECONDS_PER_DAY
Seconds per day (u64).
SECONDS_PER_HOUR
Seconds per hour (u64).
SECONDS_PER_MINUTE
Seconds per minute (f64).
SECONDS_PER_MINUTE_U64
Seconds per minute (u64).
TEMPERED_POTION_SPELL_ID
Tempered Potion buff spell.
TEN_THOUSAND
High-precision scaling (e.g. CI bounds).
THOUSAND
Generic one-thousand scalar for non-time arithmetic.
WAIT_UNTIL_POLL_SECS
Default wait-until poll interval in seconds.