feat: add bounded npc memory retention
This commit is contained in:
@@ -50,6 +50,7 @@ func _run() -> void:
|
||||
contributor.position = Vector3.ZERO
|
||||
witness.position = Vector3(4.0, 0.0, 0.0)
|
||||
witness.hunger = 85.0
|
||||
listener.hunger = 20.0
|
||||
contributor.add_inventory(SimulationIds.RESOURCE_FOOD, 1.0)
|
||||
_check(
|
||||
is_equal_approx(
|
||||
@@ -64,7 +65,8 @@ func _run() -> void:
|
||||
_check(
|
||||
(
|
||||
"Known fact: %s deposited" % contributor.npc_name in inspector_label.text
|
||||
and "(witnessed)" in inspector_label.text
|
||||
and "witnessed · lasting" in inspector_label.text
|
||||
and "Memory: 1 lasting · 0 recent" in inspector_label.text
|
||||
and "Relationship: %s" % contributor.npc_name in inspector_label.text
|
||||
and "Because:" in inspector_label.text
|
||||
),
|
||||
@@ -86,7 +88,8 @@ func _run() -> void:
|
||||
_check(
|
||||
(
|
||||
"Known fact: %s deposited" % contributor.npc_name in inspector_label.text
|
||||
and "(heard from %s)" % witness.npc_name in inspector_label.text
|
||||
and "heard from %s · recent" % witness.npc_name in inspector_label.text
|
||||
and "Memory: 0 lasting · 1 recent" in inspector_label.text
|
||||
),
|
||||
"NPC inspector should identify who communicated a known fact"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user