Posted June 10, 2025 by Arijkx
Features
Crit Chance: +1 % per level (max 100 %)
Crit Damage: +50 % per level (no cap)
Mechanics
Click-handler performs a random roll against Crit Chance
On success: damage is multiplied, stored in lastCritDamage
Layout
New Metrics row above the boss button
Displays three panels side-by-side:
DPS (Damage Per Second)
GPS (Gold Per Second)
LCD (Last Crit Damage)
CPS Tracking
clickTimes[] collects each click’s timestamp
Rolling window (CPS_WINDOW_MS = 5000 ms) computes real CPS
Calculations
effClickDmg = clickDamage * damageMultiplier effAutoDmg = autoDamage * damageMultiplier DPS = effAutoDmg + (effClickDmg × CPS) GPS = GoldPerClick × CPS
Auto-damage no longer generates gold.
Optional Crit Log
You can now comment out the logMessage("CRIT! …") call without breaking anything
GPS Fix
Removed auto-gold term so GPS immediately drops to 0 when clicks stop
Persistence
Included clickTimes[] in the save file to avoid stale CPS after reload