Align hit reaction wiring test with shared damage constant

This commit is contained in:
Admin 2026-09-19 01:25:35 +00:00
parent 9adf91162a
commit 3f86d45bd3

View File

@ -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/);