Align hit reaction wiring test with shared damage constant
This commit is contained in:
parent
9adf91162a
commit
3f86d45bd3
@ -238,7 +238,7 @@ test('processed player hits drive sprite and HUD hit reactions', async () => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
assert.match(game, /this\.playerHitSequence \+= 1/);
|
assert.match(game, /this\.playerHitSequence \+= 1/);
|
||||||
assert.match(game, /playPlayerHitReaction\(damage = PIRATE_SHOT_DAMAGE\)/);
|
assert.match(game, /playPlayerHitReaction\(damage = DEFAULT_PIRATE_SHOT_DAMAGE\)/);
|
||||||
assert.match(game, /this\.player\.setTint\(0xffd7d7\)/);
|
assert.match(game, /this\.player\.setTint\(0xffd7d7\)/);
|
||||||
assert.match(game, /this\.cameras\.main\.shake\(120/);
|
assert.match(game, /this\.cameras\.main\.shake\(120/);
|
||||||
assert.doesNotMatch(game, /targets: this\.player/);
|
assert.doesNotMatch(game, /targets: this\.player/);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user