feat: give the ruins residents and a straight east wall (#10) - #44
feat: give the ruins residents and a straight east wall (#10)#44blippip69 wants to merge 1 commit into
Conversation
| // The ruins were drawn a few columns short on the right and every row ended | ||
| // at a different wall column; padEnd used to hide that from defineMap()'s | ||
| // rectangularity check (#10). Normalizing to one fixed width gives the ruins | ||
| // a straight east wall, so the check means something again. | ||
| ].map((row) => (row + '###').slice(0, 60) + '#') |
There was a problem hiding this comment.
💡 Quality: Row normalization still hides ragged art from the check
.map((row) => (row + '###').slice(0, 60) + '#') forces every dungeon row to exactly 61 chars, so defineMap()'s rectangularity check can never throw for the dungeon — the same masking behavior the comment criticizes about the old padEnd, not a fix for it. It also silently drops the rightmost column of any row longer than 61 (rows here are 62 wide, so their real east-wall column is discarded), and 60-wide rows gain a redundant double wall, leaving the interior right edge jagged by one cell despite the 'straight east wall' claim. Consider fixing the source art to a uniform width and letting defineMap() validate it, rather than reshaping rows at load time.
Was this helpful? React with 👍 / 👎
The dungeon shipped structurally perfect and completely empty: across 941 walkable cells only the exit gate did anything, because MAPS.dungeon never defined npcs. Three residents now camp different chambers using the exact NPC machinery the city already runs, so the header hint, e-to-talk and dialogue all light up underground. The art itself was ragged on the right - rows ended at columns 59, 60 or 61 and padEnd hid that from the defineMap rectangularity check - so rows are normalized to one declared width with wall forced at column 60. Hero head clipping on arrival is already covered by the Bitcoindefi#16 solid-cell clip. Field-style encounters stay open as follow-up.
cd8eec5 to
0405c3f
Compare
CI failed: Code style check failed due to formatting issues in 2 files caught by Prettier.Overview1 code style failure found across 1 analyzed log, caused by Prettier formatting violations in change-related files. FailuresPrettier Code Style Check Failed (confidence: high)
Summary
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsAdds residents and a straight east wall to the ruins. Consider addressing the row normalization finding to prevent ragged art from bypassing validation. 💡 Quality: Row normalization still hides ragged art from the check📄 lib/map.js:1159-1163 📄 lib/map.js:1216-1223
🤖 Prompt for agentsTip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
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 |
|
Merged onto current The repository runs
|
feat: give the ruins residents and a straight east wall (#10)