fix: add is_sheltered attribute to AgentSnapshot class

- Add is_sheltered parameter to AgentSnapshot in both locations
- Include is_sheltered in agent_data dictionary for idle chat

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
empty
2026-01-02 01:18:14 +08:00
parent 4f3bd5695c
commit ce0be0045d
7 changed files with 87 additions and 29 deletions

View File

@@ -574,18 +574,19 @@ namespace TheIsland.Core
switch (location.ToLower())
{
case "tree_left":
return new Vector3(-10f, 0f, 8f);
return new Vector3(-12f, 0f, 5.0f); // Phase 20-C.2: Recalibrated
case "tree_right":
return new Vector3(10f, 0f, 8f);
return new Vector3(13f, 0f, 5.5f); // Phase 20-C.2: Recalibrated
case "campfire":
case "center":
return new Vector3(0f, 0f, 0f);
case "water":
case "beach":
return new Vector3(Random.Range(-5, 5), 0f, 4f);
// Shore starts at Z=7.0. Safe beach area is Z=[3, 6]
return new Vector3(Random.Range(-5, 5), 0f, Random.Range(4, 6));
case "nearby":
// Move to random nearby spot (wandering)
return new Vector3(Random.Range(-12, 12), 0f, Random.Range(-2, 6));
// Wandering constrained to dry land Z=[-6, 6]
return new Vector3(Random.Range(-15, 15), 0f, Random.Range(-6, 6));
case "herb_patch":
// Phase 16: Herb gathering location
return new Vector3(-8f, 0f, -5f);