Rebalance most languages and revamp main game loop
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user