Add tutorial and QoL improvements

This commit is contained in:
2026-10-24 00:52:14 +02:00
parent ac48c24a03
commit ec3e784683
53 changed files with 3526 additions and 939 deletions
+5 -1
View File
@@ -36,6 +36,7 @@ namespace KernelPanic.UI
string rules = CardEffectFactory.GetRulesText(card);
if (card.DrawRider > 0) rules += $" Draw {card.DrawRider}.";
target.tooltip = rules;
if (card.IsBroken) target.tooltip += "\n\n" + CardPreviewService.CorruptionDetails(card);
var body = new VisualElement();
body.AddToClassList("software-body");
// Break at a sentence boundary only. Never reinterpret effect amounts or conditions.
@@ -46,7 +47,10 @@ namespace KernelPanic.UI
var footer = new VisualElement();
footer.AddToClassList("software-footer");
string state = card.IsBroken ? "[!] CORRUPTED" : card.IsLocked ? $"[L] UNLOCK {EnemyArchetypeCatalog.DrmUnlockCycleCost}c"
string state = card.IsBroken
? card.CorruptionRoundsRemaining > 0
? $"[!] RECOVER {card.CorruptionRoundsRemaining} {(card.CorruptionRoundsRemaining == 1 ? "ROUND" : "ROUNDS")}" : "[!] CORRUPTED"
: card.IsLocked ? $"[L] UNLOCK {EnemyArchetypeCatalog.DrmUnlockCycleCost}c"
: card.IsUpgraded ? $"[+] PATCH {card.UpgradeLevel}" : definition.IsToken ? "TOKEN" : definition.DistroExclusive ? "DISTRO" : "";
footer.Add(Text(state, "software-state"));
footer.Add(Text(definition.Rarity.ToString(), "software-rarity"));