This diagram models a sophisticated Cookie Clicker idle economy, centered around a dual-resource production loop and an exponential cost-scaling upgrade system.
At its core, the system features a manual "Click" Source and an "Automatic cookie production" Source that funnel resources into a central "Cookies" Pool. To simulate late-game progression, five distinct upgrade tiers—ranging from Cursors and Grandmas to specialized Factories—track their own "Production Levels." These levels feed into a series of Registers that calculate both the increasing cookie yield and the scaling purchase costs, which are then applied back to interactive Converters to ensure that every subsequent building is significantly more expensive than the last.
Beyond the standard accumulation loop, the model incorporates a "Golden Cookie" high-variance mechanic to simulate temporary power spikes. An automatic Gate uses a "Dice" distribution to periodically trigger a "Golden Cookie" spawn, which activates a 60-step Delay representing the duration of the bonus. During this time, a "Double time" State Connection modifies the central "Automatic production modifier" Register, effectively doubling the efficiency of all active buildings.