From 39d881d37578522692793b7de648256f0cc1f7c2 Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 20 Sep 2026 19:46:20 +0000 Subject: [PATCH] Update concealment test for merchant targeting --- tests/wiring.test.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/wiring.test.mjs b/tests/wiring.test.mjs index d64999d..3c4e048 100644 --- a/tests/wiring.test.mjs +++ b/tests/wiring.test.mjs @@ -329,7 +329,8 @@ test('dense clouds conceal ships and suppress long-range pirate fire', async () assert.match(source, /this\.player\.setData\('cloudConcealment', playerConcealment\)/); assert.match(source, /const presence = cloud\.getData\('presence'\) \?\? 1/); assert.match(source, /radialStrength \* strength \* presence/); - assert.match(source, /const targetObscured = playerConcealment >= CLOUD_FIRE_SUPPRESSION_CONCEALMENT/); + assert.match(source, /const targetConcealment = targetState\.kind === 'player'/); + assert.match(source, /const targetObscured = targetConcealment >= CLOUD_FIRE_SUPPRESSION_CONCEALMENT/); assert.match(source, /distance > CLOUD_CLOSE_ENGAGE_RANGE/); assert.match(source, /if \(!targetObscured && distance < broadsideRange/); assert.match(source, /concealment: this\.player\?\.getData\?\.\('cloudConcealment'\) \|\| 0/);