Adds map of Southeast Asia#4105
Conversation
WalkthroughThis pull request adds Southeast Asia as a new regional map to the game. It introduces map data assets, geographic reference entries, a new game map type, and integrates the map into the playlist rotation and user interface. ChangesSoutheast Asia Map Implementation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/core/game/Game.ts (1)
184-256:⚠️ Potential issue | 🔴 Critical | ⚡ Quick winMissing tests for core directory changes.
The coding guidelines explicitly require: "All changes to
src/core/must include tests". This PR adds a new map type to the core game module but includes no test coverage.As per coding guidelines: "All changes to
src/core/must include tests"🤖 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 `@src/core/game/Game.ts` around lines 184 - 256, You added a new enum member GameMapType.SoutheastAsia and added it to mapCategories.regional but did not add tests; add a unit test (e.g., Game.spec or GameMap.spec) that imports GameMapType, GameMapName and mapCategories and asserts (1) that the enum contains the key/value for "SoutheastAsia" (e.g., Object.values(GameMapType) includes GameMapType.SoutheastAsia) and (2) that mapCategories.regional includes GameMapType.SoutheastAsia, ensuring the new map type is present in the regional category and covered by tests.
🤖 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 `@src/core/game/Game.ts`:
- Around line 184-256: You added a new enum member GameMapType.SoutheastAsia and
added it to mapCategories.regional but did not add tests; add a unit test (e.g.,
Game.spec or GameMap.spec) that imports GameMapType, GameMapName and
mapCategories and asserts (1) that the enum contains the key/value for
"SoutheastAsia" (e.g., Object.values(GameMapType) includes
GameMapType.SoutheastAsia) and (2) that mapCategories.regional includes
GameMapType.SoutheastAsia, ensuring the new map type is present in the regional
category and covered by tests.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 586295e7-638b-48a9-b2d4-3587e9ba17d8
⛔ Files ignored due to path filters (35)
map-generator/assets/maps/southeastasia/image.pngis excluded by!**/*.pngresources/flags/Chin State.svgis excluded by!**/*.svgresources/flags/Danu.svgis excluded by!**/*.svgresources/flags/Johor.svgis excluded by!**/*.svgresources/flags/Kachin.svgis excluded by!**/*.svgresources/flags/Kayah.svgis excluded by!**/*.svgresources/flags/Kayin.svgis excluded by!**/*.svgresources/flags/Kedah.svgis excluded by!**/*.svgresources/flags/Kelantan.svgis excluded by!**/*.svgresources/flags/Kokang.svgis excluded by!**/*.svgresources/flags/Kuala Lumpur.svgis excluded by!**/*.svgresources/flags/Labuan.svgis excluded by!**/*.svgresources/flags/Majapahit.svgis excluded by!**/*.svgresources/flags/Malacca.svgis excluded by!**/*.svgresources/flags/Mon State.svgis excluded by!**/*.svgresources/flags/Naga.svgis excluded by!**/*.svgresources/flags/Negeri Sembilan.svgis excluded by!**/*.svgresources/flags/Pa-O.svgis excluded by!**/*.svgresources/flags/Pahang.svgis excluded by!**/*.svgresources/flags/Palaung.svgis excluded by!**/*.svgresources/flags/Penang.svgis excluded by!**/*.svgresources/flags/Perak.svgis excluded by!**/*.svgresources/flags/Philippines (war).svgis excluded by!**/*.svgresources/flags/Putrajaya.svgis excluded by!**/*.svgresources/flags/Rakhine.svgis excluded by!**/*.svgresources/flags/Sabah.svgis excluded by!**/*.svgresources/flags/Sarawak.svgis excluded by!**/*.svgresources/flags/Selangor.svgis excluded by!**/*.svgresources/flags/Tanintharyi.svgis excluded by!**/*.svgresources/flags/Terengganu.svgis excluded by!**/*.svgresources/flags/Wa State.svgis excluded by!**/*.svgresources/flags/West Papua.svgis excluded by!**/*.svgresources/maps/southeastasia/map.binis excluded by!**/*.binresources/maps/southeastasia/map16x.binis excluded by!**/*.binresources/maps/southeastasia/map4x.binis excluded by!**/*.bin
📒 Files selected for processing (8)
map-generator/assets/maps/southeastasia/info.jsonmap-generator/main.goresources/countries.jsonresources/lang/en.jsonresources/maps/southeastasia/manifest.jsonresources/maps/southeastasia/thumbnail.webpsrc/core/game/Game.tssrc/server/MapPlaylist.ts
Resolves #4098
Description:
Adds Southeast Asia map for v32. Very requested map. 31 default nations (with an extra 31 named for HvN).
Map for intense warship and naval warfare with many, many islands. Also adds flags of the region to be used by nations in the map. More info specified in issue
SEAsiaTeaser.mp4
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
tri.star1011