Skip to content

feat(items): add the lucky coin exchange of delgado - #1464

Merged
sven-n merged 2 commits into
MUnique:masterfrom
icheat2win:feat/lucky-coin
Nov 14, 2026
Merged

sven-n merged 2 commits into
MUnique:masterfrom
icheat2win:feat/lucky-coin

Conversation

@icheat2win

Copy link
Copy Markdown
Contributor

Part of #1339

Adds the Lucky Coin (14/100), opens the lucky coin dialog at Delgado and handles the client packets BF 0B/0C/0D: coins can be registered, which counts them at the character, or exchanged for a random configured item. The rewards are configured in the new lucky coin feature plugin.

Claude-Session: https://claude.ai/code/session_011xNc75fJTee8EPxDxQxuGi

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T18:37:00.349059Z e0a015b New commits
ℹ️ 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.

@codacy-production

codacy-production Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 65 complexity · 13 duplication

Metric Results
Complexity 65
Duplication 13

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e96fc05de9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@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.

This PR conflicts with current master, so I can't merge it. Please rebase it onto master. These files conflict:

  • src/GameLogic/Properties/PlugInResources.Designer.cs
  • src/GameLogic/Properties/PlugInResources.resx
  • src/Persistence/Initialization/Properties/ItemNames.Designer.cs
  • src/Persistence/Initialization/Properties/ItemNames.de.resx
  • src/Persistence/Initialization/Properties/ItemNames.resx
  • src/Persistence/Initialization/Properties/ItemNames.zh-CN.resx
  • src/Persistence/Initialization/Properties/PlugInResources.Designer.cs
  • src/Persistence/Initialization/Properties/PlugInResources.de.resx
  • src/Persistence/Initialization/Properties/PlugInResources.resx
  • src/Persistence/Initialization/Properties/PlugInResources.zh-CN.resx
  • tests/MUnique.OpenMU.Persistence.Initialization.Tests/ItemStatProfilesDataTest.cs

Most of them are resource files (.resx / .Designer.cs) which other merged PRs also extended. When you resolve them, keep the entries of both sides, and regenerate the designer file instead of merging it by hand. I'll review it in full once it's rebased.


Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ff959df5e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +92 to +93
&& definition.Group == ItemConstants.LuckyCoin.Group
&& definition.Number == ItemConstants.LuckyCoin.Number

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Make the accepted coin identifier configurable

Both registration and exchange use this filter, which fixes the accepted item to group 14/number 100. LuckyCoinConfiguration exposes only rewards, so operators cannot change the accepted currency without rebuilding GameLogic. Rule 3 of docs/CODING_RULES.md, made authoritative by AGENTS.md, requires gameplay values to come from configuration and explicitly states that client-side hard-coding is not an exemption. Add the accepted item group/number to the feature configuration, defaulting to 14/100, and use those settings here.

AGENTS.md reference: AGENTS.md:L16-L17

Useful? React with 👍 / 👎.

@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.

Thanks for the rebase. The lucky coin flow (BF 0B/0C/0D, registering counts at the character, exchanging behind a feature plugin with configurable rewards) looks good to me.

Unfortunately, #1504 was merged in the meantime and regenerated GameLogic/Properties/PlugInResources.Designer.cs, so this PR conflicts again (GameLogic/Properties/PlugInResources.*, GameServer/Properties/PlugInResources.*). Please rebase once more: keep the entries of both sides in the .resx files, then regenerate the designers. Once it's clean and green, I'll merge it.

(Your item PRs #1458, #1461, #1464, #1470 and #1471 all add to the same resource files, so each merge makes the others conflict again. I'll take whichever is ready first.)


Generated by Claude Code

Part of MUnique#1339

Adds the Lucky Coin (14/100), opens the lucky coin dialog at Delgado and
handles the client packets BF 0B/0C/0D: coins can be registered, which
counts them at the character, or exchanged for a random configured item.
The rewards are configured in the new lucky coin feature plugin.

Rebased onto master: this is the change of the earlier commits in one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xNc76CH3CGWUp5r4XmXWK
@sven-n
sven-n merged commit 12bdaac into MUnique:master Nov 14, 2026
1 of 2 checks 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.

3 participants