Rebalance most languages and revamp main game loop

This commit is contained in:
2026-10-25 23:50:04 +01:00
parent 53f831d91e
commit a4109f5be0
76 changed files with 4198 additions and 573 deletions
+14
View File
@@ -186,10 +186,24 @@ namespace KernelPanic.Combat
{
if (card != null)
{
if (card.ExhaustOnPlay) { Exhaust(card); return; }
_discardPile.Add(card);
}
}
public IReadOnlyList<CardInstance> PeekTop(int count)
{
if (_drawPile.Count == 0) ReshuffleDiscardIntoDraw();
return _drawPile.AsEnumerable().Reverse().Take(System.Math.Max(0, count)).ToArray();
}
public bool TakeToHand(CardInstance card, HandController hand)
{
if (!_drawPile.Contains(card) || hand == null || !hand.Add(card)) return false;
_drawPile.Remove(card);
return true;
}
public void AddToDrawPile(CardInstance card, bool shuffle)
{
if (card == null)