Add map of Taiwan Strait#3878
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:
WalkthroughAdds the Taiwan Strait map: enum entry, map asset and resource manifest (dimensions and nations), map-generator registry update, server playlist reorder, and English localization entries. ChangesTaiwan Strait Map Integration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 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: 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 `@map-generator/assets/maps/taiwanstrait/info.json`:
- Around line 1-182: Add an OpenTopography attribution entry to CREDITS.md for
the new map "TaiwanStrait" (the map described in the info.json with "name":
"TaiwanStrait") noting OpenTopography as the elevation/terrain data source and
include the relevant license or usage URL from OpenTopography; ensure the entry
follows existing CREDITS.md formatting for other maps (same fields/order) so the
new map's elevation source is properly credited.
In `@map-generator/main.go`:
- Around line 25-100: The added composite-literal entries like {Name: "aegean"},
{Name: "africa"}, ... are missing the leading tab used by the surrounding
slice/struct literal; add a single tab before each new {Name: "..."} line so
they align with the existing entries (match the indentation of the lines
above/below in the same composite literal) and then run gofmt to normalize
formatting before committing.
🪄 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: 569dedde-5eeb-482d-8839-122ba74ee36e
⛔ Files ignored due to path filters (4)
map-generator/assets/maps/taiwanstrait/image.pngis excluded by!**/*.pngresources/maps/taiwanstrait/map.binis excluded by!**/*.binresources/maps/taiwanstrait/map16x.binis excluded by!**/*.binresources/maps/taiwanstrait/map4x.binis excluded by!**/*.bin
📒 Files selected for processing (7)
map-generator/assets/maps/taiwanstrait/info.jsonmap-generator/main.goresources/lang/en.jsonresources/maps/taiwanstrait/manifest.jsonresources/maps/taiwanstrait/thumbnail.webpsrc/core/game/Game.tssrc/server/MapPlaylist.ts
add missing spaces
Description:
Map of the Taiwan and the Chinese Mainland.
Team heavy map like Baikal and Hormuz. Terrain Source from OpenTopography, already credited
I also took the chance to standarize and sort alphabetically the map lists in main.go and MapPlaylist.ts.
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
tri.star 1011
NOTE: If the map gets added, please give contributor to crunchybbbbb_59469 for this map on Discord. Every file was made by him, his PR just had weird bugs that didnt allow the PR to be review automatically
Original PR: #3853 by crunchybbb2-hash