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
+22
View File
@@ -180,6 +180,28 @@ public class TutorialTests
Assert.That(restored.Offers.Any(o => o.Sold), Is.True);
}
[Test]
public void RebalancedUnwrapStillCompletesTheGuidedFirstKillWithoutACrit()
{
Call(_combat, "SpawnEncounter");
var zombie = _combat.Enemies.Single(enemy => enemy.ArchetypeId == "zombie_process");
_combat.PlayerState.ForceMaxRolls = true; // Disables critical hits and Rust's rare overflow.
var card = _run.RunDeck.Single(item => item.Definition.Id == "lang_rs_unwrap");
var context = new CombatContext(card, _combat.PlayerState, new[] { zombie.State },
_combat, _combat.DamagePipeline, new StatusEffectController(), _combat.DeckController,
_combat.HandController, _combat.Enemies);
Call(_combat, "OnEnable");
try
{
foreach (var effect in CardEffectFactory.CreateEffects(card.Definition)) effect.Execute(context);
Assert.That(zombie.State.IsDefeated, Is.True);
Assert.That(zombie.PendingRevive, Is.True, "The guide requires an actual first kill and pending revival.");
}
finally { Call(_combat, "OnDisable"); }
}
[Test]
public void TargetingRequiresSelectingTheExpectedCardAndActualZombieRevival()
{