โ† Local RoB Wiki ยท Chronicle

[HHLocal Custom] HHLocal:Four-Clock Engine

HHLocal never reads the wall clock to advance the world. A caller feeds explicit elapsed real time, and WorldClock converts it through the active rate. Three elapsed totals are kept independently and persisted as whole nanoseconds: world time, human-owned timers and AI-owned timers. Because the totals are converted once at read time, a thousand 1 ms advances and one 1 s advance produce identical simulated time.

The three owner domains

DomainOnlineOfflineWhat it advances
world1.0x0.1xTerrain processes, crop growth, and the shared sky, hunger and season calendar
human2.0x0.5xTimers owned by human characters: their claims, their Study Desk and their station work
ai1.0x0.1xTimers owned by AI villagers, so bots do not outrun a human who is offline

Benchmark mode is the one exception: when zero humans are connected, a headless run may use 8.0x to 32.0x. The accelerated rate applies equally to the world and to both owner domains. The moment any human connects, the online rate wins and the bench rate waits.

The sky clock

The world total feeds two derived calendars and never advances them on its own.

Both calendars are pure functions of the persisted world total. A checkpoint that restores the totals restores the same sky day, season and hunger window.

Offline Study Desk maths

A Study Desk advances from its owner's timer domain, not from the world clock. The desk always uses the supplied owner total, so an online pass and an offline pass run exactly the same completion and auto-queue logic.

The practical consequence: 8 real hours offline at 0.5x is 4 simulated hours of desk progress, and the auto-queue keeps the desk busy rather than idle.

Claim authority and the Bond study

A Personal Claim drains from its owner's timer domain: human-owned claims read the human total and AI-owned claims read the AI total. The full authority pool drains across exactly 54 simulated days of that domain, with no logout-only clamp. Because human timers run 2.0x online and 0.5x offline, a claim's wall-clock lifetime depends on how its owner plays, not on the world's calendar.

The Personal Claim Bond is the non-spending refill path. While the Bond is equipped in the study:

Example: a Bond study that earns 100 LP across three claims grants 34, 33 and 33 Presence, because the single remainder point goes to the first claim. The same 100 LP spread across four claims grants 25 each.

Where to look in the code