added npc images to API and frontend

This commit is contained in:
2025-11-25 15:52:22 -06:00
parent e198d9ac8a
commit bda363de76
13 changed files with 12 additions and 1 deletions

View File

@@ -225,6 +225,7 @@ Main NPC definition with personality and dialogue data for AI generation.
| `location_id` | str | ID of location where NPC resides |
| `personality` | NPCPersonality | Personality traits and speech patterns |
| `appearance` | NPCAppearance | Physical description |
| `image_url` | Optional[str] | URL path to NPC portrait image (e.g., "/static/images/npcs/crossville/grom_ironbeard.png") |
| `knowledge` | Optional[NPCKnowledge] | What the NPC knows (public and secret) |
| `relationships` | List[NPCRelationship] | How NPC feels about other NPCs |
| `inventory_for_sale` | List[NPCInventoryItem] | Items NPC sells (if merchant) |