fix: e interacts from the distance the header promises (#8) - #38
fix: e interacts from the distance the header promises (#8)#38blippip69 wants to merge 1 commit into
Conversation
view() offers e hablar from two cells away via nearbyNpc(2), but enter() listened with the default range of 1, so pressing e at the advertised distance answered aca no hay nada. Both sides now use the same range.
a46019d to
92ceaed
Compare
| game.drain(game.field.boss.touch(game.field.player, game.field.time + 20)) | ||
| t.is(game.player.hp, life - 6, 'field contact updates the persistent character sheet') | ||
| test('e reaches the resident the header promises, two cells away (#8)', (t) => { |
There was a problem hiding this comment.
🚨 Bug: World-boss test missing closing }) breaks whole suite
The test('the world boss animates powers with real field damage', ...) block opened at line 1120 is never closed: line 1201 ends with a t.is(...) assertion and line 1202 immediately starts the next test(...) with no intervening }). node --check test/index.js fails with SyntaxError: Unexpected end of input, so the file cannot be parsed and no tests in the suite run. Add the missing }) after line 1201 to close the arrow callback and the test( call.
Close the world-boss test callback before the next test declaration.:
t.is(game.player.hp, life - 6, 'field contact updates the persistent character sheet')
})
test('e reaches the resident the header promises, two cells away (#8)', (t) => {
- Apply fix
Check the box to apply the fix or reply for a change | Was this helpful? React with 👍 / 👎
CI failed: CI failed due to a syntax error and formatting check failure in test/index.js from missing code structure.OverviewTwo failures occurred in the CI pipeline across jobs: a Prettier formatting/syntax error check failed on FailuresPrettier Formatting and Syntax Error (confidence: high)
Test Execution Syntax Error (confidence: high)
Summary
Code Review 🚫 Blocked 0 resolved / 1 findingsFixes NPC interaction range issues to match header specifications, but the world-boss test is missing a closing parenthesis that breaks the entire suite. 🚨 Bug: World-boss test missing closing
|
| Auto-apply | Compact |
|
|
Important
Your trial ends in 7 days — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more.
Was this helpful? React with 👍 / 👎 | Gitar
|
Thanks for this one. The fix itself is right, and it is the better of the two But the PR cannot be merged as it stands, because the test file does not parse. Merged onto current The whole suite fails to load, so not a single test runs. Where it comes fromThe new test was inserted before the closing t.is(game.player.hp, life - 6, 'field contact updates the persistent character sheet')
test('e reaches the resident the header promises, two cells away (#8)', (t) => {
...
})Closing the previous test before opening the new one should be all it takes. While you are in there
After that, |
fix: e interacts from the distance the header promises (#8)