Adds new Hecate Strait map#4552
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:
WalkthroughThis PR adds Hecate Strait as a new map. It includes map data, terrain sizing, nation entries, Haida country data and flags, localization, and generated registry updates. ChangesHecate Strait map addition
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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: 3
🤖 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 `@map-generator/assets/maps/hecatestrait/info.json`:
- Around line 1-157: The JSON in the Hecate Strait map metadata needs both
Prettier reformatting and nation-name validation fixes in the nations array.
Update the invalid names in this file and the matching entries in the
corresponding manifest so they pass the test constraints: normalize Gitxaała
Nation to remove the invalid character, shorten Laxgalts'ap Village Government
and Gitlaxt'aamix Village Government to fit the 27-character limit, and replace
the invalid apostrophe character in Ts'il Kaz Koh with the standard straight
apostrophe. Keep the names consistent between info.json and manifest.json after
reformatting.
In `@resources/maps/hecatestrait/manifest.json`:
- Around line 1-259: This manifest is failing CI due to formatting and
nation-name validation issues. Update the JSON in the hecatestrait manifest to
match the Prettier style used elsewhere, and fix the nation entries in the
nations array that violate the name constraints: the entries for Gitxaała
Nation, Laxgalts'ap Village Government, Gitlaxt'aamix Village Government, and
Ts’il Kaz Koh need the same compliant name adjustments as the corresponding
entries in info.json. Keep the changes consistent across both files and use the
nation names within the nations array to locate them.
In `@src/core/game/Maps.gen.ts`:
- Line 52: The new GameMapType member is using a lowercase key instead of the
established PascalCase convention. Update the enum entry for hecatestrait in
Maps.gen.ts to match the other GameMapType members (for example, UpperCamelCase
like Achiran/BeringStrait), and make sure the related maps array entry uses the
same identifier in both the id field and the type reference so MapInfo and the
generated enum stay aligned.
🪄 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: 15f131f7-419e-41f1-bca6-f92939a4580e
⛔ Files ignored due to path filters (5)
map-generator/assets/maps/hecatestrait/image.pngis excluded by!**/*.pngresources/flags/haida_flag.svgis excluded by!**/*.svgresources/maps/hecatestrait/map.binis excluded by!**/*.binresources/maps/hecatestrait/map16x.binis excluded by!**/*.binresources/maps/hecatestrait/map4x.binis excluded by!**/*.bin
📒 Files selected for processing (5)
map-generator/assets/maps/hecatestrait/info.jsonresources/lang/en.jsonresources/maps/hecatestrait/manifest.jsonresources/maps/hecatestrait/thumbnail.webpsrc/core/game/Maps.gen.ts
shortened a few names and removed an extra line and added a capitol for hecate strait
|
CI is failing |
Resolves #4529
Description:
I made the Hecate Strait map and thoroughly tested it.
I added the Haida flag to use for the map.
2248 x 1935, 4.3 million total volume ~1.5 million water, ~0.5 million blank
28 nations
As realistic as I could make it for the northern BC Canada coast.
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
killerwombat02