Make some overall changes to utilities

This commit is contained in:
2026-10-26 22:09:36 +01:00
parent a4109f5be0
commit 881b61a66d
22 changed files with 376 additions and 790 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ namespace KernelPanic.UI
AddChoice(choices, run, WaveRoute.Repair, "Repair stop",
$"Restore up to {RunJourney.RepairUptime} Uptime on departure. Fight the standard encounter.");
AddChoice(choices, run, WaveRoute.Challenge, "Elite detour",
$"Extra Daemon. On clear: +{RunJourney.ChallengeBits} Bits and +1 draw on the first card without a draw rider (or +{RunJourney.ChallengeBits} Bits if none)."
RunRouteMap.Detail(WaveRoute.Challenge)
+ (run.Journey.selectedRoute == WaveRoute.Challenge
? $"\nElite: {(plan.EscortShield > 0 ? $"+{plan.EscortShield} Shield" : plan.EscortUptime > 0 ? $"+{plan.EscortUptime} Uptime" : "hidden intent")}." : ""));
section.Add(choices);
@@ -63,7 +63,7 @@ namespace KernelPanic.UI
var draw = new Button { name = "RewardDraw", text = "Draw +1 on resolution" };
effect.AddToClassList("primary-action"); draw.AddToClassList("primary-action");
modes.Add(effect); modes.Add(draw);
var claim = Action("claim upgrade / open map", "ClaimBuildRewardButton", () => run.ClaimBuildReward(cards[index], kind));
var claim = Action("claim upgrade", "ClaimBuildRewardButton", () => run.ClaimBuildReward(cards[index], kind));
content.Add(claim);
void Refresh()
{
@@ -93,7 +93,7 @@ namespace KernelPanic.UI
Refresh();
content.Add(target);
}
content.Add(Action($"take {RunManager.BuildRewardBits} Bits instead / open map", "RewardBits",
content.Add(Action($"take {RunManager.BuildRewardBits} Bits instead", "RewardBits",
() => run.ClaimBuildReward(null, CardUpgradeKind.MagnitudeUp, true)));
return content;
}