Add NixOS and Go

This commit is contained in:
2026-10-27 11:35:32 +01:00
parent 881b61a66d
commit 97d2685302
64 changed files with 1295 additions and 204 deletions
+9
View File
@@ -507,6 +507,13 @@ namespace KernelPanic.Editor
return false;
}
if (!_combat.CanSurrenderRun) return false;
if (_combat.PendingGoroutineCard != null)
{
var work = _combat.Go.Active.FirstOrDefault(g => _combat.IsEligibleGoSelection(g, _combat.PendingGoroutineCard));
if (work != null) _combat.SelectGoroutine(work.Id);
else _combat.CancelGoroutineSelection();
Progress(); return false;
}
int targetIndex = FindTarget();
if (targetIndex >= 0) _combat.SelectEnemy(targetIndex);
CardInstance chosen = null;
@@ -515,6 +522,7 @@ namespace KernelPanic.Editor
foreach (var card in _combat.HandController.Cards)
{
if (card.Definition == null || card.Definition.IsToken || card.IsBroken || card.IsLocked
|| _combat.GoPlayBlockReason(card) != null
|| _combat.GetDisplayedPlayCost(card) > _combat.PlayerState.Cycles) continue;
var preview = CardPreviewService.Build(_combat, card, target);
double damage = (preview.MinimumDamage + (double)preview.MaximumDamage) / 2;
@@ -524,6 +532,7 @@ namespace KernelPanic.Editor
chosen = card;
}
if (chosen != null && _combat.CardsPlayedThisRound < 64 && _combat.PlayCard(chosen)) { Progress(); return false; }
if (_combat.PendingGoroutineCard != null) { Progress(); return false; }
if (_report.options.prefetch && _combat.CardsPlayedThisRound < 64 && _combat.TryPrefetch())
{
_current.prefetches++;