Update concealment test for merchant targeting
This commit is contained in:
parent
3f3d4500cf
commit
39d881d375
@ -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, /this\.player\.setData\('cloudConcealment', playerConcealment\)/);
|
||||||
assert.match(source, /const presence = cloud\.getData\('presence'\) \?\? 1/);
|
assert.match(source, /const presence = cloud\.getData\('presence'\) \?\? 1/);
|
||||||
assert.match(source, /radialStrength \* strength \* presence/);
|
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, /distance > CLOUD_CLOSE_ENGAGE_RANGE/);
|
||||||
assert.match(source, /if \(!targetObscured && distance < broadsideRange/);
|
assert.match(source, /if \(!targetObscured && distance < broadsideRange/);
|
||||||
assert.match(source, /concealment: this\.player\?\.getData\?\.\('cloudConcealment'\) \|\| 0/);
|
assert.match(source, /concealment: this\.player\?\.getData\?\.\('cloudConcealment'\) \|\| 0/);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user