Test non-mutating first player hit flow
This commit is contained in:
parent
de804d2529
commit
19ce095e7f
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user