Skip to main content

Constants Reference

This page documents all game constants used throughout Hyperscape. These values are defined in packages/shared/src/constants/.

Combat Constants


Aggro Constants


Level Constants


Player Constants


Inventory Constants


Network Constants


Gathering Constants

Resource Respawn (Updated March 2026): All resource respawns are now purely tick-based and handled by ResourceSystem.processRespawns(). Legacy setTimeout-based respawn has been removed for deterministic OSRS-accurate timing.
Mining Depletion (Updated March 2026): Mining depletion now reads depleteChance from manifest instead of hardcoded constants. Regular ore rocks have depleteChance: 1.0 (always deplete). Rune essence rocks have depleteChance: 0 (never deplete, OSRS-accurate).

XP Constants


Style Bonuses


Skills


Smithing Constants


Context Menu Colors

All context menu handlers now use these centralized constants instead of hardcoded values. This ensures consistency across all interaction types.

Raycast Proxy Constants

Performance: VRM SkinnedMesh raycast is extremely slow (~700-1800ms) because THREE.js must transform every vertex by bone weights. Invisible capsule proxies provide instant click detection.

Equipment Slots


XP Table Reference