fix: preserve deterministic decisions across saves

This commit is contained in:
Rijad Zuzo
2026-08-12 20:30:21 +02:00
parent ed7236257a
commit 6851e15f77
5 changed files with 38 additions and 10 deletions
+13 -1
View File
@@ -138,7 +138,19 @@ static func from_dictionary(record_data: Dictionary) -> KnownEventStateRecord:
or hop_count != 0
):
return null
return KnownEventStateRecord.new(normalized)
return create(
knower_id,
event_id,
acquisition_method,
source_npc_id,
acquired_tick,
source_acquisition_method,
hop_count,
confidence,
salience,
source_actor_id,
bool(normalized["pinned"])
)
func get_knower_id() -> int: