暂存condition desc

This commit is contained in:
2025-08-11 22:16:16 +08:00
parent 126d539543
commit 2f90aa1917
4 changed files with 35 additions and 1 deletions

View File

@@ -85,7 +85,20 @@ namespace WulaFallenEmpire
HandleAction(def.immediateEffects);
// Format the description AFTER immediate effects have run
// Append conditional descriptions
if (!def.conditionalDescriptions.NullOrEmpty())
{
foreach (var condDesc in def.conditionalDescriptions)
{
string reason;
if (AreConditionsMet(condDesc.conditions, out reason))
{
selectedDescription += "\n\n" + condDesc.text;
}
}
}
// Format the description AFTER immediate effects have run and conditional text is appended
selectedDescription = FormatDescription(selectedDescription);
}