Add dungeon map.#4208
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (4)
WalkthroughAdds a new "Dungeon" map: manifest and generator info defining dimensions and eight named nations with coordinates, registry entries (enum + maps array) exposing GameMapType.Dungeon, and an English translation entry "map.dungeon". ChangesDungeon Map Data
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed due to a network error. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/core/game/Game.ts`:
- Line 163: Add unit tests covering the new GameMapType.Dungeon enum and its
inclusion in mapCategories: create tests that import GameMapType and
mapCategories from src/core/game/Game (or the module that exports them), assert
that GameMapType contains the "Dungeon" member, and assert that mapCategories
includes the Dungeon value in the expected category list; also include any
serialization/deserialization or switch/lookup behavior that relies on
GameMapType (e.g., functions that map types to display names or allowed
features) to ensure the new enum value is handled. Ensure the tests live under
the src/core/ test suite, follow existing test patterns, and run with the
project test command.
- Line 163: The new enum value "Dungeon" was inserted between "Dyslexdria" and
"GreatLakes", which can shift numeric values for downstream serialization; move
"Dungeon" out of the middle and append it to the end of the enum declaration
(instead of inserting between Dyslexdria and GreatLakes), and update any
serialization/mapping logic that assumes enum order to reference names/explicit
values if needed to preserve backward compatibility.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: b6000218-d4c9-41c7-b1b3-ca5becc6c10d
⛔ Files ignored due to path filters (4)
map-generator/assets/maps/dungeon/image.pngis excluded by!**/*.pngresources/maps/dungeon/map.binis excluded by!**/*.binresources/maps/dungeon/map16x.binis excluded by!**/*.binresources/maps/dungeon/map4x.binis excluded by!**/*.bin
📒 Files selected for processing (7)
map-generator/assets/maps/dungeon/info.jsonmap-generator/main.goresources/lang/en.jsonresources/maps/dungeon/manifest.jsonresources/maps/dungeon/thumbnail.webpsrc/core/game/Game.tssrc/server/MapPlaylist.ts
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
map-generator/assets/maps/dungeon/info.json (1)
1-41:⚠️ Potential issue | 🟠 MajorAdd Dungeon map credit to CREDITS.md
CREDITS.mdhas no entries for “Dungeon” and no “agrippa.lich” reference.- Add the Dungeon map/design source and license/permission to
CREDITS.md(and credit “agrippa.lich” if they are the author/rights holder), or document why no attribution is needed.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@map-generator/assets/maps/dungeon/info.json` around lines 1 - 41, The CREDITS.md file is missing attribution for the Dungeon map (id "Dungeon", translation_key "map.dungeon"); add an entry that cites the map/design source and license or permission, crediting agrippa.lich if they are the author/rights holder (or explicitly state why no attribution is required), and include any URL, license name, and short note of permission; update CREDITS.md accordingly so Dungeon and agrippa.lich are documented.Source: Learnings
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@map-generator/assets/maps/dungeon/info.json`:
- Around line 1-41: The CREDITS.md file is missing attribution for the Dungeon
map (id "Dungeon", translation_key "map.dungeon"); add an entry that cites the
map/design source and license or permission, crediting agrippa.lich if they are
the author/rights holder (or explicitly state why no attribution is required),
and include any URL, license name, and short note of permission; update
CREDITS.md accordingly so Dungeon and agrippa.lich are documented.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a57d0c71-7a12-430a-9d47-e4058c0ed0ce
📒 Files selected for processing (4)
map-generator/assets/maps/dungeon/info.jsonresources/lang/en.jsonresources/maps/dungeon/manifest.jsonsrc/core/game/Maps.gen.ts
✅ Files skipped from review due to trivial changes (3)
- src/core/game/Maps.gen.ts
- resources/maps/dungeon/manifest.json
- resources/lang/en.json
cc3cc4a to
2e7d4cc
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Resolves #4162
Description:
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
agrippa.lich