Home › JWorld Blog

What the tavern earns while you are away: how Dokkaebi Tavern pays your time off

JWorld team ·

How Dokkaebi Tavern turns the time the app was closed into coins. The 4-hour cap, what happens if the clock goes backwards, why helpers matter, and every way to stretch the cap, with the in-game names.

The best moment in an idle game is coming back after a long break and finding coins waiting. Dokkaebi Tavern shows a small window for it, titled "While you were away". There is no server behind that window. It is two clock readings and one calculation.

This article is based on the game's code (offline.ts and the catchUp routine) and its on-screen text, and it describes the version that is live today. Once you know how the number is made, it is easier to decide when to close the game and when to come back.

The tavern screen with 584M coins at the top and 1.3M/s income, and the list of dishes below
The tavern screen with 584M coins at the top and 1.3M/s income, and the list of dishes below

The whole rule is a clock difference

The game saves every 10 seconds and also whenever the page is hidden. Each save carries the time it was written. When you open the game again, it subtracts that time from the current time. That is your time away.

There are three cases.

SituationResult
Time away is shorter than the capYou are paid for all of it
Time away is longer than the capYou are paid the cap, and the window says "Builds up for up to N h"
The clock went backwards, or there is no saved timeZero

The default cap is 4 hours. Sleep for eight hours and you still collect four. Setting the device clock forward does not help much either, because of the cap. With no server, the game cannot fully stop clock tricks, so these two rules are the whole defense.

The same calculation runs even if you never fully close the game. If a browser tab or the app is hidden and then comes back, or if the game's timers froze and then resumed, the same function measures the gap. While a rewarded ad is playing the game is paused, and right after an ad it pays quietly, without the window.

Time is not replayed step by step

Four hours is 14,400 seconds, but the game does not loop through them. Every stall has a fixed "time per batch", so the payout is a single division.

  1. Divide the time away by the time one batch takes.
  2. The whole-number part is the number of finished batches. All of them are paid at once.
  3. The fraction stays on the progress bar. That is why a bar can resume halfway after you return.

Four hours or thirty-two hours cost the same to compute. Helper experience grows by the seconds away in the same way.

One practical tip follows from this: only stalls with a helper keep cooking. A stall you started by hand finishes one batch and stops. If you plan to be away for a long time, hiring helpers makes the biggest difference. Night orders also do not arrive while you are away. The yokai guests only visit while the game is running.

After a move, there is a floor

A move resets your stalls, so your income drops sharply. If you moved and then went to sleep, the morning payout would be tiny. To soften that, the new run is guaranteed a minimum rate of 5% of the previous run's income per second.

  • It only applies while the new run's automatic income is lower than that value.
  • Once your income passes it, the floor becomes zero and changes nothing.
  • The game also says "After a move, your away earnings start building again" in its move text.

What appears in the window

If you were gone less than 60 seconds, or there is nothing to collect, the coins are added quietly with no window. Otherwise the "While you were away" window opens, with a line like "N h earned X" and two buttons.

ButtonWhat it does
Watch an ad: ×2Finish the ad and you get the same amount again
CollectTake it as is

In places where no ad is available, the ×2 button is hidden. The rewarded ad is only a bonus, so skipping it costs you nothing.

There is one early-game exception. If you are away for 300 seconds (5 minutes) or more during the first-time tutorial flow, that flow is treated as finished.

Every way to raise the cap

The 4-hour base grows with the following. The names are the ones the game shows.

SourceWhereExtra time
Peddler's LedgerRumor Shop (Rumor 200)+2 hours
Thick LedgerRumor Shop (Rumor 30,000)+4 hours
Egg GhostRegulars, visits after your first move+1 hour
Neighborhood FavoritePick it as this run's specialty+4 hours (and all income ×1.5)
CatMascots, unlocked at 1e15 lifetime coinsHours equal to half the level, rounded up; +5 at max level 10
Long DreamGlutton tab, bought with Fortune+30 min per level, up to 16 levels = +8 hours
Long LedgerOptional item in the Shop4 h → 8 h

Add everything up and the theoretical top is 4 + 2 + 4 + 1 + 4 + 5 + 8 + 4 = 32 hours. Nobody has all of it at once, and you do not need all of it. A sensible order:

  • Right after your first move: buy Peddler's Ledger (200 Rumor) first. It is a much closer goal than Thick Ledger at 30,000.
  • If you open the game every morning: 4 hours is mostly enough. It only falls short when you close it in the evening and reopen it the next morning.
  • If you visit once or twice a day: the Neighborhood Favorite specialty or Long Dream gives the most.
The tavern at night, with Rumor 5M at the top and 4.69ab/s income
The tavern at night, with Rumor 5M at the top and 4.69ab/s income

A reminder when the ledger is full

On the Google Play version, if you have notifications turned on, you get one reminder at the moment your ledger fills up. The time is worked out from your real cap, not the default. If the cap is shorter than 30 minutes, no reminder is sent. The same rules apply as for all reminders: at most one a day, none during quiet night hours, and none after you have been away for more than a week.

Summary

  • The payout is "now minus last saved time". There is no server.
  • The base cap is 4 hours. A clock that moved backwards pays 0.
  • Only stalls with helpers keep cooking. A hand-started stall finishes once and stops.
  • Night orders do not arrive while you are away.
  • After a move, the game guarantees 5% of the previous run's income per second as a floor.
  • You can raise the cap with the Rumor Shop, Egg Ghost, Neighborhood Favorite, the Cat, Long Dream and Long Ledger. You can read more about the game on its JWorld page.

Written by the JWorld team from our game design documents and measured play data, with AI tools helping with the writing.

More posts

How Stitch Hoop makes its pictures: seven picture checks and boards that always solve

Every Stitch Hoop picture and board is tested before you see it. The seven rules that reject a picture, how needles are built, how a solver proves a board can be won, and the size of Today's picture.

devStitch Hooppuzzle game

"Hanseong Case Files Guide: Filling the Verdict, the Hint Ladder and the Daily Grid"

How picking up words and filling blanks works, what three tries and the retrial wait mean, how the three hints are priced, what earns the top grade, and how to solve the daily logic grid.

guideHanseong Case Filesdeduction

"Same shot, same result" in Putt Workshop: integer shots, a 240 Hz tick, physics with no dice

How Putt Workshop makes puzzles solvable by thinking instead of luck. Two-integer shots, a fixed time step, friction and cup rules, home-made sin/cos, hash checks, and how a solver sets par.

devPutt Workshopphysics

How Block Daily deals its blocks: 15 drawings, one seed, and a save that replays the dice

A look inside the 8×8 puzzle's core logic: how 37 blocks come from 15 text drawings, how weights stay fair, when a deal is redone, and how saves resume with the same upcoming blocks.

devBlock Dailypuzzle