Adds Map of China#4468
Conversation
This reverts commit be91d86.
WalkthroughAdds a new China map across generator data, runtime manifest data, registry wiring, translation, and country flag entries. It also updates CaspianSea categories. ChangesChina Map Addition
Estimated code review effort: 2 (Simple) | ~15 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: 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/china/info.json`:
- Around line 270-274: Update the map entry for Second East Turkestan Republic
to use the existing Eastern_Turkistan_Flag asset instead of the pk country code.
Make this change in the China map info data and keep the corresponding manifest
entry in sync so both references point to the same flag identifier. Locate the
affected records by the name field "Second East Turkestan Republic" and the
Eastern_Turkistan_Flag symbol already defined in the repo.
- Around line 275-279: The Shanxi Clique entry in the map info uses the wrong
flag symbol. Update the record identified by the name field “Shanxi Clique” so
it uses the Republic of China flag symbol instead of “tw”, matching the other
cliques in this dataset.
🪄 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: f31e2549-0585-40d4-b866-5b7d3907dae4
⛔ Files ignored due to path filters (10)
map-generator/assets/maps/china/image.pngis excluded by!**/*.pngresources/flags/Eastern_Turkistan_Flag.svgis excluded by!**/*.svgresources/flags/Flag_of_Hong_Kong_(1959-1997).svgis excluded by!**/*.svgresources/flags/Flag_of_Manchukuo.svgis excluded by!**/*.svgresources/flags/Flag_of_Taiping_Heavenly_Kingdom.svgis excluded by!**/*.svgresources/flags/Kuomintang_Emblem.svgis excluded by!**/*.svgresources/flags/Ma_Clique_Flag.svgis excluded by!**/*.svgresources/maps/china/map.binis excluded by!**/*.binresources/maps/china/map16x.binis excluded by!**/*.binresources/maps/china/map4x.binis excluded by!**/*.bin
📒 Files selected for processing (8)
map-generator/assets/maps/caspiansea/info.jsonmap-generator/assets/maps/china/info.jsonresources/countries.jsonresources/lang/en.jsonresources/maps/caspiansea/manifest.jsonresources/maps/china/manifest.jsonresources/maps/china/thumbnail.webpsrc/core/game/Maps.gen.ts
|
looks like prettier is failing, can you run |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
resources/maps/caspiansea/manifest.json (1)
23-78: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winNation entries show as changed but content is unchanged — likely a formatting-only diff.
The line-range change summary only documents the
categoriesupdate on Line 2, yet these nation entries (lines 23-78) are all marked as changed with identical content. This is consistent with the reviewer's note that Prettier is failing on this PR — runningnpm run formatshould resolve the unintended whitespace/indentation churn here.🤖 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 `@resources/maps/caspiansea/manifest.json` around lines 23 - 78, The changes in the manifest appear to be formatting-only churn with no content updates, so normalize the JSON in resources/maps/caspiansea/manifest.json rather than editing the data itself. Run the repository’s formatter on this file (as noted by the review, npm run format) and ensure the nation entries under the map manifest remain semantically unchanged while indentation/whitespace matches the expected style. Use the manifest structure and the affected nation object array as the target area when verifying the diff.
🤖 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.
Nitpick comments:
In `@resources/maps/caspiansea/manifest.json`:
- Around line 23-78: The changes in the manifest appear to be formatting-only
churn with no content updates, so normalize the JSON in
resources/maps/caspiansea/manifest.json rather than editing the data itself. Run
the repository’s formatter on this file (as noted by the review, npm run format)
and ensure the nation entries under the map manifest remain semantically
unchanged while indentation/whitespace matches the expected style. Use the
manifest structure and the affected nation object array as the target area when
verifying the diff.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d497fba6-126e-4e20-b695-be0ac63ab5d1
📒 Files selected for processing (2)
resources/lang/en.jsonresources/maps/caspiansea/manifest.json
✅ Files skipped from review due to trivial changes (1)
- resources/lang/en.json
Add approved & assigned issue number here:
Resolves #4419
Description:
https://youtu.be/ew9Qizo67cA
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
DISCORD_USERNAME crunchybbbbb