Add scene fragments to portrait prompts after clothing.

Thing, room, yard and climate precipitation can contribute a short prompt when they are in frame, with a budget so chairs stay silent.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-20 23:35:17 +03:00
co-authored by Cursor
parent f046f145ec
commit 3c682a2b74
26 changed files with 1020 additions and 26 deletions
+7
View File
@@ -454,8 +454,14 @@ public sealed class CatalogLoader
ValidateColor(color);
}
foreach (var thing in catalog.Things.Values)
{
PromptContributionValidator.Validate($"ThingDef '{thing.DefName}'", thing.Prompt);
}
foreach (var room in catalog.Rooms.Values)
{
PromptContributionValidator.Validate($"RoomDef '{room.DefName}'", room.Prompt);
foreach (var slot in room.Slots)
{
if (!catalog.Things.ContainsKey(slot.Thing))
@@ -532,6 +538,7 @@ public sealed class CatalogLoader
foreach (var territory in catalog.Territories.Values)
{
PromptContributionValidator.Validate($"TerritoryDef '{territory.DefName}'", territory.Prompt);
if (!territory.Abstract && territory.TravelMinutes <= 0)
{
throw new ContentLoadException($"TerritoryDef '{territory.DefName}' travelMinutes must be positive.");