From 1355bf0697ebce0337eb21c82b67345f8c5ea90e Mon Sep 17 00:00:00 2001 From: gravermistakes Date: Sun, 18 Oct 2026 22:52:37 -0700 Subject: [PATCH] M3: start horizon clock with stomach runtime --- core/src/economy/stomach.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/economy/stomach.tcl b/core/src/economy/stomach.tcl index 96625f5..d4b2082 100644 --- a/core/src/economy/stomach.tcl +++ b/core/src/economy/stomach.tcl @@ -32,6 +32,7 @@ oo::class create ::stomach::Economy { set sims [::stomach::SimsHub new] set registry [::stomach::EngineRegistry new [file join $::stomach::root sims]] set clock [::stomach::HorizonClock new] + $clock start set market [::stomach::Marketplace new $traders $wallets $conductor $sae $sims] set taxes {} } @@ -60,6 +61,7 @@ oo::class create ::stomach::Economy { method sim_engines {} { return [$registry names] } method sim_engine_status {} { return [$registry status] } method sim_horizons {} { return [$clock horizons] } + method sim_running {} { return [$clock running] } method sim_advance {wall_seconds} { return [$clock advance $wall_seconds] } method tax_event {trader_id amount source_wallet dest_wallet} { if {![string is double -strict $amount] || $amount < 0} { error "invalid_tax_amount" }