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
+9
View File
@@ -120,6 +120,9 @@ public sealed class ThingDef : Def
/// are granted per subject instead). Apparel ignores this and fills layers.
/// </summary>
public float CarryChance { get; init; }
/// <summary>Portrait fragment when this thing is in the person's frame. Null or empty — silent.</summary>
public PromptContribution? Prompt { get; init; }
}
public sealed class PositionDef : Def;
@@ -169,6 +172,9 @@ public sealed class RoomDef : Def
/// When set, pupil lockers in this room go to students of that sex (<c>male</c> / <c>female</c>).
/// </summary>
public string? LockerSex { get; init; }
/// <summary>Portrait fragment when the person is in a room of this def. Null or empty — silent.</summary>
public PromptContribution? Prompt { get; init; }
}
public sealed class BuildingDef : Def;
@@ -179,4 +185,7 @@ public sealed class TerritoryDef : Def
{
/// <summary>Game minutes spent occupying the yard when walking through it.</summary>
public float TravelMinutes { get; init; }
/// <summary>Portrait fragment when the person is in this yard. Null or empty — silent.</summary>
public PromptContribution? Prompt { get; init; }
}