Skip to content

fix(quests): show item rewards with a count of 1 in the quest window - #1613

Merged
sven-n merged 1 commit into
MUnique:masterfrom
icheat2win:fix/quest-item-reward-count
Nov 24, 2026
Merged

sven-n merged 1 commit into
MUnique:masterfrom
icheat2win:fix/quest-item-reward-count

Conversation

@icheat2win

Copy link
Copy Markdown
Contributor

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

QuestStructExtensions sent the reward's Value as the count. The quest data doesn't set the Value of item rewards (WithItemReward leaves it at 0), and QuestCompletionAction gives one item per reward and ignores the Value.

Changes

  • New QuestStructExtensions.GetRewardCount: 1 for an item reward, the Value for 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 Value the item count, as the QuestReward documentation says, can follow when the data uses it.

Tests

  • New QuestRewardCountTest: an item reward with the value 0 has the count 1, a money reward keeps its value.
  • All of tests/MUnique.OpenMU.Tests pass (3106 passed, 2 skipped).

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
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T02:51:05.379871Z
We couldn’t complete this review. Comment @codex review to try again.
93b8936 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

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 sven-n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@sven-n
sven-n merged commit 50649be into MUnique:master Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The quest window shows item rewards as "Item: x 0"

3 participants