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