Test per-volley player damage wiring
This commit is contained in:
parent
8373bc0d2e
commit
806fe2e878
@ -99,3 +99,13 @@ test('player hit FX runs after queued hit processing, outside the overlap callba
|
||||
assert.match(source, /this\.flashShip\(this\.player, 0xffcccc\)/);
|
||||
assert.match(source, /combat:player-hit-fx-error/);
|
||||
});
|
||||
|
||||
test('pirate broadsides assign a volley id and player damage deduplicates by volley', async () => {
|
||||
const source = await read('src/game-v4.js');
|
||||
|
||||
assert.match(source, /const volleyId = actor === 'pirate' \? this\.nextPirateVolleyId\+\+ : null/);
|
||||
assert.match(source, /shot\.setData\('volleyId', volleyId\)/);
|
||||
assert.match(source, /volleyId: shot\.getData\('volleyId'\)/);
|
||||
assert.match(source, /seenVolleyIds: this\.damagedPlayerVolleys/);
|
||||
assert.match(source, /this\.damagedPlayerVolleys = result\.seenVolleyIds/);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user