-
Notifications
You must be signed in to change notification settings - Fork 565
Display alliance timer in player panel #805
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
""" WalkthroughThis update introduces alliance time remaining display to the player panel. It adds a new translation key, extends the player panel UI to show the alliance expiry countdown, enhances game logic to include alliance creation tick in player interactions, and updates the player interaction interface with an optional alliance creation tick property. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as PlayerPanel
participant GameRunner
participant Game as Game Logic
UI->>GameRunner: Request playerActions for tile
GameRunner->>Game: Check interaction and alliance status
Game-->>GameRunner: Return interaction data (with allianceCreatedAtTick if applicable)
GameRunner-->>UI: Return interaction data
UI->>UI: Calculate remaining alliance time
UI->>UI: Render alliance time remaining in panel
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm warn config production Use Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
If it's possible, can be deployed to subdomain |
If this is added, the Instructions (helpModal.ts) should actually be updated as well after. At least the images for Player Info Panel and the description. So that it's not outdated too soon again. Just submitted another PR for PlayerPanel by the way, could cause a conflict: #804 |
@VariableVince wrote this in mobile so I can't deploy. About conflict, I would appreciate your help on that. But if mine pr get accepted first, then I'll try to integrate. |
@tnhnblgl about the conflict. Thanks. I'm quite new to git and github, so you may be better suited for it indeed. But i can help with the needed changes of course |
My PR on this file was just merged, fyi. Btw if you want to become a member of the Dev server, you can use the invite in the readme |
@VariableVince thanks for that, really needed |
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!
Looks like prettier is failing |
@evanpelle Sorry, done! |
Description:
Below Traitor: , There will be Alliance Status. And will display timer, after timer ends will show Alliance Expired. Also this Alliance Status will only show if player had alliance.
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
dovg