Skip to content

feat(items): add the talisman of mobility - #1458

Merged
sven-n merged 23 commits into
MUnique:masterfrom
icheat2win:feat/talisman-of-mobility
Nov 23, 2026
Merged

sven-n merged 23 commits into
MUnique:masterfrom
icheat2win:feat/talisman-of-mobility

Conversation

@icheat2win

Copy link
Copy Markdown
Contributor

Part of #1339

The first use saves the place of the character, the second one warps it back. The place is stored in stat attributes of the character. An optional update adds the item and puts the shop packages on sale.

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: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-22T23:50:39.282592Z
We couldn’t complete this review. Comment @codex review to try again.
815538a 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 113 complexity

Metric Results
Complexity 113

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: 6b4b1796e7

ℹ️ 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 thread src/GameLogic/Attributes/Stats.cs Resolved

@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: e2eb87bf26

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

See comments

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

@icheat2win
icheat2win force-pushed the feat/talisman-of-mobility branch 2 times, most recently from dab398d to 9015939 Compare November 14, 2026 16:20

@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. Unfortunately, #1504 was merged in the meantime and regenerated GameLogic/Properties/PlugInResources.Designer.cs, so this PR conflicts again (PlugInResources.*, PlayerMessage.*). Please rebase once more: keep the entries of both sides in the .resx files, then regenerate the designer instead of merging it by hand.

Your five item PRs (#1458, #1461, #1464, #1470, #1471) all add to the same resource files, so they conflict with each other too. Each merge will make the others conflict again. I'll merge whichever is rebased and green first.

Code feedback for this one:

  • Localization: AddTalismanOfMobilityUpdatePlugIn.Name/Description return the English constants PlugInName/PlugInDescription, although the Display attribute points to resources. Please return the resources, like AddTalismanOfResurrectionUpdatePlugIn in #1461 does (rule 10).
  • Map requirements on return: GetSavedGateAsync only checks that the saved map is active. If the character no longer fulfills its requirements (e.g. no wings for Icarus), it's warped there anyway. Please check mapDefinition.TryGetRequirementError(player, out _) before warping, as the Talisman of Resurrection does, and keep the talisman unused in that case.

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: 54949af202

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

Part of MUnique#1339

The first use saves the place of the character, the second one warps it
back. The place is stored in stat attributes of the character. An
optional update adds the item and puts the shop packages on sale.

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

@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: cdc27d5c68

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

@icheat2win
icheat2win force-pushed the feat/talisman-of-mobility branch from cdc27d5 to 1883c6a Compare November 15, 2026 11:37

@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: 1883c6aefe

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

Thanks for the rebase. It's clean against master now. The two points from my previous review are still open, though:

  1. Localization: AddTalismanOfMobilityUpdatePlugIn.Name/Description still return the English constants PlugInName/PlugInDescription. Please return PlugInResources.AddTalismanOfMobilityUpdatePlugIn_Name/_Description, as the other update plugins do (e.g. the Talisman of Resurrection's).
  2. Map requirements on return: TalismanOfMobilityConsumeHandlerPlugIn still warps to the saved map without checking its requirements. A character which saved a place in Icarus and lost its wings would be warped there anyway. Please check mapDefinition.TryGetRequirementError(player, out _) in GetSavedGateAsync (or before the warp), show a message, and keep the talisman unused in that case.

Once these are in, I'll merge it.


Generated by Claude Code

Addresses the review on MUnique#1458:
- The update plugin returns its localized name and description from
  PlugInResources instead of English constants.
- Before returning to the saved place, the talisman checks the
  requirements of the saved map (e.g. wings for Icarus) and whether it's
  active. If they aren't fulfilled, the character gets the message and
  keeps the talisman and the saved place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xNc75aT2CCp3YgcY55r3t
@icheat2win

Copy link
Copy Markdown
Contributor Author

Thanks! Both points are in 9d235f6:

AddTalismanOfMobilityUpdatePlugIn.Name/Description now return PlugInResources.AddTalismanOfMobilityUpdatePlugIn_Name/_Description, like the Talisman of Resurrection update. The English constants are gone.
Before the warp, the consume handler now checks savedMap.TryGetRequirementError(player, out var errorMessage). If it fails, the player gets that message and the talisman stays unused, with the saved place kept. This also covers an inactive saved map, which now shows the "map is not active" message instead of "no place saved". The map is checked before GetMapAsync, so an inactive or forbidden map is no longer created just for the check. There's a new test for the Icarus case (CharacterWhichDoesNotFulfillMapRequirementsKeepsTalismanAsync), and the docs page mentions it.
Ran MUnique.OpenMU.Tests (3081 passed) and the Mobility, CashShopUpdate, ItemStatProfiles and update plugin tests in MUnique.OpenMU.Persistence.Initialization.Tests (all passed). The branch still merges cleanly into current master.

…talisman-of-mobility

# Conflicts:
#	tests/MUnique.OpenMU.Persistence.Initialization.Tests/ItemStatProfilesDataTest.cs
@icheat2win
icheat2win requested a review from sven-n November 16, 2026 12:15

@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: 1c321996ff

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

claude and others added 4 commits November 16, 2026 18:15
The Talisman of Mobility warped the character back without asking the
IWarpGateEnteringPlugIn point, so a closed event map like the Raklion
hatchery used the talisman up and ejected the character afterwards. The
plug-ins are now asked before the talisman and the saved place are used,
like for warp gates and the warp list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xNc75fJTee8EPxDxQxuGi
The return of the Talisman of Mobility could bypass two Castle Siege
restrictions:

- The Land of Trials is only entered through its guard, which lets
  in the castle owner alliance, or everyone while the hunt zone is
  public. The castle siege plugin now applies the same rule as an
  IWarpGateEnteringPlugIn, so a saved place there can't be used to
  get back in while the zone is closed.
- On the same map, the return now asks IPlayerTeleportRestrictionPlugIn
  first, so it can't cross a closed castle gate.

In both cases the talisman and the saved place are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xNc75fJTee8EPxDxQxuGi
A place saved by the Talisman of Mobility behind the castle gates
before the battle could be returned to from another map while the
battle runs. During the battle, the castle siege plugin now only lets
warps onto the siege map through its configured gates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xNc75fJTee8EPxDxQxuGi

Copy link
Copy Markdown
Contributor Author

Fixed the remaining review finding in 56150d4. The shared item factory now grants a Talisman of Mobility with both charges through /item and the live admin grant. Ordinary stackable items still start at quantity one.

All 10 focused talisman tests passed, including regression coverage for both factory behaviors. The localization and map-entry requirements from the earlier review are already in the branch. Ready for re-review.

@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: 56150d435b

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

…talisman-of-mobility

# Conflicts:
#	src/GameLogic/Properties/PlugInResources.Designer.cs
#	src/Persistence/Initialization/Properties/PlugInResources.Designer.cs

Copy link
Copy Markdown
Contributor Author

Addressed the remaining hunt-fee finding in f446266f0. The warp list now checks the level and map requirements and reserves the normal warp cost before the Land of Trials entry hook can collect the hunt fee. If entry is denied, the normal warp cost is refunded.

All 30 focused Castle Siege economy and Talisman of Mobility tests passed, including both new cases that verify rejected warps leave the player's Zen unchanged. I also verified the earlier localization and map requirement changes are in the branch and GitHub reports no merge conflicts. Ready for re-review.

@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 follow-ups: GM-granted talismans get both charges (56150d4), and the hunt fee is only charged after the warp's level, map requirements and cost are validated, with a refund if entry is denied (f446266f).

#1547 (warp requirements), #1470 (figurines and charms) and #1569 were merged in the meantime, so it conflicts again. This time that includes real code:

  • src/GameLogic/PlayerActions/WarpAction.cs: #1547 added the check of the warp's own Requirements (after the map's requirements, before the money). Please merge your hunt-fee ordering with it, so the fee is still only charged after all checks pass, including the new warp requirements, and extend your test accordingly.
  • CashShopItems.cs and the expected default-profile count in ItemStatProfilesDataTest. Please recount against the current master.
  • The resource files (PlayerMessage.*, PlugInResources.de.resx, ItemNames.*): keep both sides' entries and regenerate the designers.

After the rebase, I'll run the tests, including the initialization tests.


Generated by Claude Code

…talisman-of-mobility

# Conflicts:
#	docs/CashShop.md
#	src/GameLogic/PlayerActions/WarpAction.cs
#	src/GameLogic/Properties/PlayerMessage.Designer.cs
#	src/GameLogic/Properties/PlayerMessage.de.resx
#	src/GameLogic/Properties/PlayerMessage.pt.resx
#	src/GameLogic/Properties/PlayerMessage.resx
#	src/GameLogic/Properties/PlugInResources.Designer.cs
#	src/GameLogic/Properties/PlugInResources.de.resx
#	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/VersionSeasonSix/Items/CashShopItems.cs
#	tests/MUnique.OpenMU.Persistence.Initialization.Tests/CashShopUpdateTest.cs
#	tests/MUnique.OpenMU.Persistence.Initialization.Tests/ItemStatProfilesDataTest.cs

@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: 5b38b8c79a

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

Copy link
Copy Markdown
Contributor Author

Merged current master into the branch in 5b38b8c79 and resolved the conflicts. Warp-list requirements are now checked before any Zen is charged, with a regression test for an unmet warp-specific requirement. The merged initialization tests confirm 106 cash-shop packages for sale and 253 default item profiles.

cc91f741c also addresses the new vault finding. The item-moving plug-in blocks half-used mobility talismans from entering the shared vault, while unused talismans can still be stored.

Validation: 35 focused gameplay tests and 34 focused initialization tests passed. GitHub reports no merge conflicts. Ready for re-review.

@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: cc91f741c1

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

Copy link
Copy Markdown
Contributor Author

Fixed the duel spectator finding in 594042f0a. The Talisman of Mobility checks the configured duel maps, including spectator gates, both when saving and when returning. A rejected use preserves the charge. All 16 focused talisman tests passed, including the new save and return regression cases. GitHub reports no merge conflicts.

Copy link
Copy Markdown
Contributor Author

Fixed the Codacy Markdown line-length finding in 9a2c6fd8c. Both the documentation build and Codacy now pass on that commit. All 16 review threads are resolved, and GitHub reports no merge conflicts. The PR is ready for maintainer re-review.

@icheat2win
icheat2win requested a review from sven-n November 21, 2026 07:42

@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 follow-ups: the warp-list requirements are checked before any Zen is charged, half-used talismans are kept out of the vault, and duel arenas (including spectator gates) are excluded. It merges cleanly with master now.

One thing blocks it: since #1578, TranslationCoverageTests.PlayerMessagesAreCompleteAndMatchNeutralPlaceholders("es") requires every PlayerMessage key in PlayerMessage.es.resx. This PR adds six messages without a Spanish entry:

  • CastleSiegeWarpNotPossible
  • LandOfTrialsClosed
  • MobilityTalismanNoPlaceSaved
  • MobilityTalismanPlaceSaved
  • MobilityTalismanReturnBlocked
  • MobilityTalismanReturnPending

Please add them to src/GameLogic/Properties/PlayerMessage.es.resx (same placeholders as the neutral texts). Note that #1534 and #1571 touch the same resource files, so a short rebase may be needed depending on the merge order.


Generated by Claude Code

…talisman-of-mobility

# Conflicts:
#	src/GameLogic/Properties/PlayerMessage.de.resx
#	src/GameLogic/Properties/PlayerMessage.pt.resx
#	src/GameLogic/Properties/PlayerMessage.resx

Copy link
Copy Markdown
Contributor Author

Added all six missing Spanish player messages in 1cfe709b1 and resolved the resource conflicts with master, preserving both branches’ entries. I verified complete Spanish and Portuguese resource key coverage, matching format placeholders, and the merged resource accessors directly. GitHub reports no merge conflicts.

@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: 1cfe709b16

ℹ️ 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 +3328 to +3329
/// <summary>Gets the localized CastleSiegeWarpNotPossible text.</summary>
public static string CastleSiegeWarpNotPossible => ResourceManager.GetString("CastleSiegeWarpNotPossible", resourceCulture)!;

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 Regenerate the resource designers instead of hand-editing them

The four changed resource designers are configured with PublicResXFileCodeGenerator, but the new members are manually appended expression-bodied accessors rather than that generator's output. This violates docs/CODING_RULES.md rule 2 (“Never hand-edit a generated file”): checked-in designers should remain reproducible from their resource inputs, rather than accumulating custom edits that subsequent regeneration rewrites. Regenerate all four designers from the updated .resx files and commit the generated output.

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 adding the Spanish messages. I don't count the Codex thread about the designer accessors as a blocker: the compact => ResourceManager.GetString(...) members are the format the designers on master already use.

But I built it on master (before #1534) and ran the tests, and a test which passes on master now fails every time:

GensBattleZoneTest.WarpCommandToTheBattleZoneIsDeniedForNonMembersAsync
  Expected: 1000
  But was:  900

A non-member who uses the warp command to the Gens battle zone is refused, but loses the 100 Zen of the warp anyway. The cause is the new order in WarpAction.WarpToAsync: the warp cost is taken first (TryRemoveMoney), then the IWarpGateEnteringPlugIns are asked, and a refusal is refunded with player.TryAddMoney(warpInfo.Costs). TryAddMoney refuses when the result would exceed MaximumInventoryMoney (and its result is ignored), so the refund can fail silently. A player near the money limit, or any setup like this test's, loses the cost of a refused warp. On master, the plugins were asked first and the money was only taken after admission.

Please change it so a refused warp never costs anything, e.g.:

  • check that the player can afford the cost (and the hunt fee) without taking it, ask the entry plugins, and only take the cost after admission; or
  • if you keep reserving it, restore it unconditionally (player.Money += warpInfo.Costs, not TryAddMoney), and cover the refusal at the money limit with a test.

The other changes look good. Also note that #1534 (worn horseshoe) was merged in the meantime, so it conflicts again in ItemNames.* and CashShopItems.cs; please rebase, keep both sides' items, and recheck the default-profile count in ItemStatProfilesDataTest. The initialization tests passed otherwise (993).


Generated by Claude Code

icheat2win and others added 2 commits November 22, 2026 22:53
…talisman-of-mobility

# Conflicts:
#	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/VersionSeasonSix/Items/CashShopItems.cs
The reserved warp cost was refunded with TryAddMoney, which refuses at the
inventory money limit, so a refused warp could still cost its Zen. It's now
restored unconditionally; it can't exceed the limit, because it was part of
the money before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xNc75a9AVHhxvrVSK9HSL
@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.

Uses the parameters of the test plug-in, which Codacy flagged as unused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xNc75a9AVHhxvrVSK9HSL
@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.

@icheat2win
icheat2win requested a review from sven-n November 23, 2026 04:52
@icheat2win

Copy link
Copy Markdown
Contributor Author

Thanks for running the tests! Both points are in:

  1. Refused warps cost nothing (c827e80): when an entry plug-in refuses the warp, the reserved cost is now restored unconditionally (player.Money = checked(player.Money + warpInfo.Costs)) instead of with TryAddMoney, so it can't fail at the money limit. It can't exceed the limit, because it was part of the money before. I kept the reservation, so the hunt fee of the Land of Trials is still only charged after the warp cost is covered. New test: WarpListTests.RefusedWarpCostsNothingAtTheMoneyLimitAsync (refusal with the maximum inventory money), and GensBattleZoneTest.WarpCommandToTheBattleZoneIsDeniedForNonMembersAsync passes again. 815538a fixes the Codacy finding in that test.
  2. Conflicts with feat(items): add the worn horseshoe #1534 (b623e76): merged current master, kept both items in ItemNames.* and CashShopItems.cs (worn horseshoe and talisman), and raised the default-profile count in ItemStatProfilesDataTest to 254.

Ran MUnique.OpenMU.Tests (3486 passed; LoginTicketServiceTest.ConcurrentIssuersStayWithinTheLimitAsync failed once and passed on rerun, this PR doesn't touch it) and MUnique.OpenMU.Persistence.Initialization.Tests (997 passed). Codacy and the docs build are green, and the branch merges cleanly into current master.

About the Codex thread on the designer accessors: as you said, they follow the format the designers on master already use, so I'm resolving it.


Generated by Claude Code

@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, both points are fixed: a refused warp now restores the reserved cost unconditionally (with RefusedWarpCostsNothingAtTheMoneyLimitAsync), and the conflicts with the worn horseshoe are resolved, with both items and the count of 254.

I built it on current master and ran the whole test suite, including Persistence.Initialization.Tests (1010 passed): everything passes, including GensBattleZoneTest.WarpCommandToTheBattleZoneIsDeniedForNonMembersAsync. Thanks for your patience through all the rounds.


Generated by Claude Code

@sven-n
sven-n merged commit a4768ac into MUnique:master Nov 23, 2026
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