Add Korea Map#3977
Conversation
WalkthroughThis pull request adds Korea as a new regional map option across the entire game stack. The Korea map type is registered in the game enum and category structure, added to the map generator registry with corresponding info and manifest metadata files, and integrated into the server's playlist selection system with localization support. ChangesKorea Map Registration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 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.
Actionable comments posted: 1
🧹 Nitpick comments (2)
map-generator/main.go (1)
110-110: 💤 Low valueConsider maintaining alphabetical order in the maps registry.
The korea entry is added at the end of the list, but the registry appears to follow alphabetical ordering (e.g.,
japan,lemnos,lisbon). Placing it betweenjapan(line 65) andlemnos(line 66) would maintain consistency and improve maintainability.📋 Suggested placement
Move the korea entry to maintain alphabetical order:
{Name: "japan"}, + {Name: "korea"}, {Name: "lemnos"},Remove from line 110.
🤖 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/main.go` at line 110, The "korea" map entry is out of alphabetical order in the maps registry; remove the existing {Name: "korea"} entry at its current location and insert it between the "japan" and "lemnos" entries so the slice stays alphabetically ordered (e.g., ... "japan", "korea", "lemnos", ...).src/core/game/Game.ts (1)
194-194: ⚡ Quick winRemove unnecessary blank line.
This blank line appears to be an accidental addition within the continental array.
🧹 Proposed fix
GameMapType.Oceania, GameMapType.Antarctica, - ],🤖 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` at line 194, Remove the accidental blank line inside the continental array literal in the Game class; locate the array declaration named "continental" (the continental array within Game.ts) and delete the empty line so the array entries are contiguous and formatted consistently.
🤖 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/korea/info.json`:
- Around line 39-43: The "flag" value for the Nagasaki region is inconsistent:
it uses "Empire of Japan" while other Japanese regions use "jp"; update the
Nagasaki entry's "flag" property (the JSON object with "name": "Nagasaki" and
"coordinates": [963, 2093]) to use the standardized value "jp" so it matches
Fukuoka and Saga and avoids rendering inconsistencies.
---
Nitpick comments:
In `@map-generator/main.go`:
- Line 110: The "korea" map entry is out of alphabetical order in the maps
registry; remove the existing {Name: "korea"} entry at its current location and
insert it between the "japan" and "lemnos" entries so the slice stays
alphabetically ordered (e.g., ... "japan", "korea", "lemnos", ...).
In `@src/core/game/Game.ts`:
- Line 194: Remove the accidental blank line inside the continental array
literal in the Game class; locate the array declaration named "continental" (the
continental array within Game.ts) and delete the empty line so the array entries
are contiguous and formatted consistently.
🪄 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: 39e5a25b-249b-4f1d-8434-01590fc8a607
⛔ Files ignored due to path filters (4)
map-generator/assets/maps/korea/image.pngis excluded by!**/*.pngresources/maps/korea/map.binis excluded by!**/*.binresources/maps/korea/map16x.binis excluded by!**/*.binresources/maps/korea/map4x.binis excluded by!**/*.bin
📒 Files selected for processing (7)
map-generator/assets/maps/korea/info.jsonmap-generator/main.goresources/lang/en.jsonresources/maps/korea/manifest.jsonresources/maps/korea/thumbnail.webpsrc/core/game/Game.tssrc/server/MapPlaylist.ts
Description:
Add map of korean peninsula. Size 1092x2149
Nations: 35
based on provinces
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
DISCORD_USERNAME
crunchybbbbb @crunchybbbbb_59469
two teams nations war video https://www.youtube.com/watch?v=n4h7GAfAHTM