Test non-mutating first player hit flow

This commit is contained in:
Admin 2026-09-18 00:52:17 +00:00
parent de804d2529
commit 19ce095e7f

View File

@ -26,7 +26,7 @@ test('first pirate hit removes exactly the default damage and does not end the g
});
test('actual queued first player hit destroys the projectile, applies 6 damage, and leaves gameplay active', () => {
test('actual queued first player hit applies 6 damage without mutating projectile lifecycle', () => {
const shot = {
active: true,
destroyed: false,
@ -43,8 +43,8 @@ test('actual queued first player hit destroys the projectile, applies 6 damage,
hits: [{ shot, damage: DEFAULT_PIRATE_SHOT_DAMAGE }],
});
assert.equal(shot.destroyed, true);
assert.equal(shot.active, false);
assert.equal(shot.destroyed, false);
assert.equal(shot.active, true);
assert.equal(firstFrame.hull, 94);
assert.equal(firstFrame.appliedHits, 1);
assert.equal(firstFrame.ignoredHits, 0);