-
Notifications
You must be signed in to change notification settings - Fork 777
New map! "Amazon River" 🏞️ #2798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdds the "Amazon River" map: assets and manifest, registers it in the generator and playlist, extends GameMapType and default player counts, adds localization, and applies conditional thumbnail styling in client components. Changes
Sequence Diagram(s)(No sequence diagrams generated — changes are data/config additions with a small UI styling special-case, not a multi-component control-flow change requiring visualization.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (3)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-06-09T02:20:43.637ZApplied to files:
🧬 Code graph analysis (1)src/client/GameInfoModal.ts (1)
🔇 Additional comments (2)
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 |
Duwibi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the size of this map 🤣. It's way more unique compared to the other maps in the game. I'd suggest that you limit the nations a bit, but it's completely your call. After all, you made all of the changes to the nations and know better than me how they're going to impact gameplay.
I haven't tested it, but it's free to go if it runs smoothly 👍
Thank you :) |
|
The fact that you don't get to see the whole map in a thumbnail anymore this way (even if stretched) bothers me a bit. For example the four islands thumbnail was clearer before. Baikal is impacted negatively too imo and there are more like this. I'd prefer the new CSS to only affect edge case maps like this new Amazon River map (which seems great btw), so only for a predefined 'offness' we do this new trick but leave the rest alone Tryout33 |
c733171
I was hesitating with adding logic just for this map. |
|
mind fixing the conflicts, i think it was from updating tailwind to v4 |
# Conflicts: # src/client/GameInfoModal.ts # src/client/PublicLobby.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🤖 Fix all issues with AI Agents
In @src/client/GameInfoModal.ts:
- Around line 108-112: Duplicate logic for AmazonRiver thumbnail styling exists
in GameInfoModal.ts, PublicLobby.ts, and Maps.ts; extract it to a shared utility
by adding a constant (e.g., MAP_THUMBNAIL_COVER_STYLE = "object-fit: cover;
object-position: center;") and a helper function (e.g.,
getMapThumbnailStyle(mapType: GameMapType | string)) that returns the constant
when mapType === GameMapType.AmazonRiver (or "AmazonRiver") and an empty string
otherwise, then replace the inline checks in GameInfoModal
(isUnusualThumbnailSize / objectFitStyle), PublicLobby, and Maps to call
getMapThumbnailStyle instead.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/client/GameInfoModal.tssrc/client/PublicLobby.tssrc/client/components/Maps.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/client/PublicLobby.ts
🔇 Additional comments (1)
src/client/components/Maps.ts (1)
51-51: LGTM!The addition of the AmazonRiver entry to MapDescription is correct and consistent with the existing pattern.
Fixed |
evanpelle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description:
We didn't have a river map and we didn't have a map with a crazy size.
So I made a "Amazon River" map with a crazy size.
280 x 5536!
21 nations based on real locations.
Should be interesting gameplay because you don't have many attack options, your only escape is the river.
The land tiles size is similar to the achiran and iceland map.
Because the map is so wide, it looked really ugly stretched in the thumbnails. So I added some CSS which removes the thumbnail stretching of the Amazon River map. We can also use this logic for other thumbnails which shouldn't get stretched.
In
Maps.ts,PublicLobby.tsandGameInfoModal.ts.Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
FloPinguin