Wiki/Resources/Turns & Regeneration

Turns & Regeneration

Turns are Pocketrealm's global action currency. The server regenerates them lazily over time, with separate regen rates and bank caps for free and Champion players.

Account Tiers

New players begin with 86,400 turns. From there, the bank regenerates continuously until it reaches the account's cap.

AccountRegen RateBank CapEmpty to Full
Free1/sec64,80018h
Champion1.1/sec95,04024h

Lazy Regeneration Formula

Turn regeneration is calculated when your turn bank is read or written, not by a background tick. To support Champion's 1.1/sec rate, the server stores fractional progress in hundredths of a turn.

scaledRegenRate = round(regenRate × 100)
totalScaledTurns = storedTurns × 100 + regenProgress + elapsedSeconds × scaledRegenRate
cappedScaledTurns = min(totalScaledTurns, bankCap × 100)
currentTurns = floor(cappedScaledTurns / 100)
regenProgress = cappedScaledTurns - currentTurns × 100 // reset to 0 at cap

Time to Cap

If your bank is not full, time-to-cap is computed from the remaining scaled turns and the active regen rate:

secondsToCap = ceil((bankCap × 100 - (currentTurns × 100 + regenProgress)) / scaledRegenRate)

Once currentTurns reaches the bank cap, regeneration stops and secondsToCap becomes null until you spend turns again.

Constants Reference

ConstantValueDescription
STARTING_TURNS86,400Turns granted to a new account
REGEN_RATE1/secFree-account turn regeneration rate
BANK_CAP64,800Maximum free-account turn storage
TURN_REGEN_RATE1.1/secChampion turn regeneration rate
TURN_BANK_CAP95,040Maximum Champion turn storage
TURN_REGEN_SCALE100Fractional precision used to carry partial turn progress