Update concealment test for merchant targeting

This commit is contained in:
Admin 2026-09-20 19:46:20 +00:00
parent 3f3d4500cf
commit 39d881d375

View File

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