feat: add person history and trust reactions
This commit is contained in:
@@ -84,6 +84,17 @@ func _run() -> void:
|
||||
),
|
||||
"Memory summaries should distinguish lasting and recent knowledge"
|
||||
)
|
||||
var lasting_history: Array = manager.get_retained_memory_events(lasting_listener.id, 4)
|
||||
var recent_history: Array = manager.get_retained_memory_events(recent_listener.id, 4)
|
||||
_check(
|
||||
(
|
||||
lasting_history.size() == 1
|
||||
and lasting_history[0] == deposit_event
|
||||
and recent_history.size() == 1
|
||||
and recent_history[0] == deposit_event
|
||||
),
|
||||
"Person-history queries should resolve each retained fact to objective history"
|
||||
)
|
||||
|
||||
var objective_event_count: int = manager.economic_events.size()
|
||||
var objective_next_event_id: int = manager.next_event_id
|
||||
@@ -148,6 +159,13 @@ func _run() -> void:
|
||||
),
|
||||
"Forgetting knowledge must not prune or replay objective event history"
|
||||
)
|
||||
_check(
|
||||
(
|
||||
manager.get_retained_memory_events(recent_listener.id, 4).is_empty()
|
||||
and deposit_event in manager.get_npc_events(contributor.id, 3)
|
||||
),
|
||||
"Forgotten subjective facts should leave the contributor's objective personal history intact"
|
||||
)
|
||||
var lasting_relationship: RelationshipStateRecord = (
|
||||
manager.relationship_system.get_relationship(lasting_listener.id, contributor.id)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user