Survival mode bugfixes and revive mechanism
All checks were successful
CI / lint (push) Successful in 31s
CI / build (push) Successful in 32s
CI / release (push) Successful in 32s

This commit is contained in:
Kamal Tufekcic 2026-07-08 18:10:09 +03:00
commit 2fa85e8b1f
14 changed files with 529 additions and 35 deletions

View file

@ -9,6 +9,7 @@ public sealed class SurvivalRun(Func<string, Config.SurvivalCardDef?> cardDef) :
private readonly Func<string, Config.SurvivalCardDef?> _cardDef = cardDef;
public double WaveXp { get; set; } // raw combat XP banked THIS wave (granted + reset at wave clear; forfeited on a wipe/leave mid-wave)
public int RunPoints { get; set; } // unspent draft picks
public int ReviveCharges { get; set; } // Field Medic teammate-revives left THIS wave (refreshed at wave start from the medic-card level)
public Dictionary<string, int> Cards { get; } = []; // card key -> times picked (get-only: the ref is fixed, the contents mutate)
public List<string> DrawnThisBreak { get; set; } = []; // the current offered draw (stable across reopen within a break)