Add tutorial and QoL improvements
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user