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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user