feat: seed household familiarity from shared home proximity

NPCs whose home positions are within 4m of each other gain mutual familiarity at baseline 0.5. Stored per NPC as a Dictionary keyed by other npc_id, serialized through NPCStateRecord with backward-compatible fallback for old saves. Household pairs form naturally from the home_positions configuration in main.tscn. Includes save/load round-trip test verifying familiarity persists.
This commit is contained in:
2026-07-09 00:03:20 +02:00
parent 8094975094
commit fce5c533fe
4 changed files with 70 additions and 1 deletions
+1
View File
@@ -32,6 +32,7 @@ var has_travel_target := false
var inventory: Dictionary = {}
var last_task: StringName
var random_source: RandomNumberGenerator
var familiarity: Dictionary = {}
var debug_logs := true