Boss-gate tests: RunSave.Capture gained a credits parameter on master
Adapted the two boss-gate/demo-galaxy Capture call sites to pass 0 credits, the value master's other tests pass when credits are not under test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e3a457793b
commit
bd46f942bf
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ public sealed partial class RunStartTests
|
|||
var (galaxy, arena, staged, failures) = Launch(new DemoTerminus(), Inputs(() => 1));
|
||||
Assert.True(failures.Count == 0, string.Join("; ", failures));
|
||||
galaxy.Entrance.Contents = arena;
|
||||
var (game, zones) = RunSave.Capture(_cache, galaxy, arena, staged.Player, new SavedActionBarBinding[0]);
|
||||
var (game, zones) = RunSave.Capture(_cache, galaxy, arena, staged.Player, new SavedActionBarBinding[0], 0);
|
||||
RunSave.Commit(_cache, game, zones, _items.Lots);
|
||||
var restored = new Galaxy(_cache, _cache.GetGlobal<SavedGame>(), _ => { });
|
||||
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ public sealed partial class RunStartTests
|
|||
var before = Assert.Single(galaxy.Exit.Contents.Entities, entity => entity.IsBoss);
|
||||
Assert.False(RunGoal.ExitOpen(galaxy.Exit.Contents));
|
||||
|
||||
var (game, zones) = RunSave.Capture(_cache, galaxy, arena, staged.Player, new SavedActionBarBinding[0]);
|
||||
var (game, zones) = RunSave.Capture(_cache, galaxy, arena, staged.Player, new SavedActionBarBinding[0], 0);
|
||||
RunSave.Commit(_cache, game, zones, _items.Lots);
|
||||
var restored = new Galaxy(_cache, _cache.GetGlobal<SavedGame>(), _ => { });
|
||||
var exit = new Zone(_items, _planetSettings, restored.Exit.PackedContents, restored.Exit, restored);
|
||||
|
|
|
|||
Loading…
Reference in a new issue