Repository navigation
fix(quests): show item rewards with a count of 1 in the quest window - #1613
Conversation
The quest window of the season 6 client showed an item reward as "Item: x 0", because the server sent the reward's Value as the count. The quest data doesn't set the Value of item rewards, and the completion gives one item per reward anyway. Item rewards are now sent with a count of 1, so the window shows what the player gets. Fixes MUnique#1490 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xNc75fJTee8EPxDxQxuGi
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
sven-n
left a comment
There was a problem hiding this comment.
LGTM. An item reward is given as one item, so showing a count of 1 instead of the unset Value (0) matches what the player gets. I built it on current master and ran the tests (all except the slow initialization tests). The only failure was LoginTicketServiceTest.ConcurrentIssuersStayWithinTheLimitAsync, a known race in PlayerInMemoryContext on master, which is unrelated.
Generated by Claude Code
Fixes #1490
What
The quest window shows an item reward with a count of 1 instead of "Item: x 0", e.g. the Jewel of Chaos of "Clearing a Path to Icarus".
Why
QuestStructExtensionssent the reward'sValueas the count. The quest data doesn't set theValueof item rewards (WithItemRewardleaves it at 0), andQuestCompletionActiongives one item per reward and ignores theValue.Changes
QuestStructExtensions.GetRewardCount: 1 for an item reward, theValuefor the other rewards. Both quest state packets use it.This is the display-only option of the issue. It doesn't change what the player gets, so it doesn't touch the reward fit check of #1491. Making the
Valuethe item count, as theQuestRewarddocumentation says, can follow when the data uses it.Tests
QuestRewardCountTest: an item reward with the value 0 has the count 1, a money reward keeps its value.tests/MUnique.OpenMU.Testspass (3106 passed, 2 skipped).