Conversation
Fictional map based on Scotland & Hebrides
|
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 selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughAdds a new map "Stornogorm" with metadata and manifest files, registers it in map lists and playlist frequencies, and adds an English localization key. No control flow or runtime logic changes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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
🧹 Nitpick comments (2)
map-generator/assets/maps/stornogorm/info.json (1)
1-3: Minor formatting inconsistency.Line 2 has 3 spaces of indentation while the rest of the file uses 2 spaces. This is cosmetic but worth fixing for consistency.
🔧 Proposed fix
{ - "name": "stornogorm", + "name": "stornogorm", "nations": [🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@map-generator/assets/maps/stornogorm/info.json` around lines 1 - 3, The JSON property line containing "name": "stornogorm" has 3 spaces of indentation while the file uses 2-space indentation elsewhere; update that line so the "name" key is indented with 2 spaces to match the rest of the file (ensure the "name" entry and surrounding braces use consistent 2-space indentation).resources/maps/stornogorm/manifest.json (1)
18-226: Thestrengthfield in nation entries is unused.The
Nationinterface insrc/core/game/TerrainMapLoader.tsonly definescoordinates,flag, andname. Thestrengthfield will be silently ignored by the client code. While this is harmless, it adds unnecessary data to the manifest.This is a minor inconsistency and won't break anything—just noting for awareness.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@resources/maps/stornogorm/manifest.json` around lines 18 - 226, The manifest includes a unused "strength" property on each nation while the Nation interface in src/core/game/TerrainMapLoader.ts only defines coordinates, flag, and name; either remove the "strength" entries from resources/maps/stornogorm/manifest.json (delete each "strength": 1) or update the Nation type and any parsing in TerrainMapLoader (add strength: number to the Nation interface and ensure loader reads/uses it) so the schema and data match.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@resources/lang/en.json`:
- Line 342: The JSON entry "stornogorm" uses a tab for indentation; replace the
leading tab with the same number of spaces used elsewhere in the file so the
"stornogorm": "Stornogorm" line matches the project's space-based indentation
(preserve surrounding spacing style and trailing commas/quotes exactly as in the
existing entries).
In `@src/core/game/Game.ts`:
- Line 205: The line containing GameMapType.Stornogorm uses a tab for
indentation which is inconsistent with the file's spaces; locate the occurrence
of GameMapType.Stornogorm in Game (e.g., in the array or enum usage) and replace
the leading tab with the same number of spaces used elsewhere in this file so
indentation matches the project's style.
---
Nitpick comments:
In `@map-generator/assets/maps/stornogorm/info.json`:
- Around line 1-3: The JSON property line containing "name": "stornogorm" has 3
spaces of indentation while the file uses 2-space indentation elsewhere; update
that line so the "name" key is indented with 2 spaces to match the rest of the
file (ensure the "name" entry and surrounding braces use consistent 2-space
indentation).
In `@resources/maps/stornogorm/manifest.json`:
- Around line 18-226: The manifest includes a unused "strength" property on each
nation while the Nation interface in src/core/game/TerrainMapLoader.ts only
defines coordinates, flag, and name; either remove the "strength" entries from
resources/maps/stornogorm/manifest.json (delete each "strength": 1) or update
the Nation type and any parsing in TerrainMapLoader (add strength: number to the
Nation interface and ensure loader reads/uses it) so the schema and data match.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4180e27f-392b-484c-96a3-bfb950157d23
⛔ Files ignored due to path filters (4)
map-generator/assets/maps/stornogorm/image.pngis excluded by!**/*.pngresources/maps/stornogorm/map.binis excluded by!**/*.binresources/maps/stornogorm/map16x.binis excluded by!**/*.binresources/maps/stornogorm/map4x.binis excluded by!**/*.bin
📒 Files selected for processing (7)
map-generator/assets/maps/stornogorm/info.jsonmap-generator/main.goresources/lang/en.jsonresources/maps/stornogorm/manifest.jsonresources/maps/stornogorm/thumbnail.webpsrc/core/game/Game.tssrc/server/MapPlaylist.ts
|
looks like there are some merge conflicts. please add a screenshot |
Hey, It looks like another map had been added between forking and making a PR request. I have merged them so both maps exist. Can you let me know what screenshot you need? Cheers! |
FishyB
left a comment
There was a problem hiding this comment.
Aegean map had been pushed to main, meaning both maps wanted to be added at the same time, which both require en.json/main.go/game.ts/mapplaylist.ts references to the map. Merged PR so both maps are referenced.
|
Build is failing because of a json file fomatting issue |
added missing comma.
Fictional map based on Scotland & Hebrides
Discord: Fishbus