Repository navigation
feat(items): add the talisman of mobility - #1458
Conversation
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. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 113 |
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.
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
💡 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
left a comment
There was a problem hiding this comment.
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.cssrc/GameLogic/Properties/PlugInResources.resxsrc/Persistence/Initialization/Properties/ItemNames.Designer.cssrc/Persistence/Initialization/Properties/ItemNames.de.resxsrc/Persistence/Initialization/Properties/ItemNames.resxsrc/Persistence/Initialization/Properties/ItemNames.zh-CN.resxtests/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
dab398d to
9015939
Compare
sven-n
left a comment
There was a problem hiding this comment.
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/Descriptionreturn the English constantsPlugInName/PlugInDescription, although theDisplayattribute points to resources. Please return the resources, likeAddTalismanOfResurrectionUpdatePlugInin #1461 does (rule 10). - Map requirements on return:
GetSavedGateAsynconly 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 checkmapDefinition.TryGetRequirementError(player, out _)before warping, as the Talisman of Resurrection does, and keep the talisman unused in that case.
Generated by Claude Code
9015939 to
54949af
Compare
There was a problem hiding this comment.
💡 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
There was a problem hiding this comment.
💡 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".
cdc27d5 to
1883c6a
Compare
There was a problem hiding this comment.
💡 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
left a comment
There was a problem hiding this comment.
Thanks for the rebase. It's clean against master now. The two points from my previous review are still open, though:
- Localization:
AddTalismanOfMobilityUpdatePlugIn.Name/Descriptionstill return the English constantsPlugInName/PlugInDescription. Please returnPlugInResources.AddTalismanOfMobilityUpdatePlugIn_Name/_Description, as the other update plugins do (e.g. the Talisman of Resurrection's). - Map requirements on return:
TalismanOfMobilityConsumeHandlerPlugInstill 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 checkmapDefinition.TryGetRequirementError(player, out _)inGetSavedGateAsync(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
|
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. |
…talisman-of-mobility # Conflicts: # tests/MUnique.OpenMU.Persistence.Initialization.Tests/ItemStatProfilesDataTest.cs
There was a problem hiding this comment.
💡 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".
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
|
Fixed the remaining review finding in 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. |
There was a problem hiding this comment.
💡 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
|
Addressed the remaining hunt-fee finding in 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
left a comment
There was a problem hiding this comment.
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 ownRequirements(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.csand the expected default-profile count inItemStatProfilesDataTest. Please recount against the currentmaster.- 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
There was a problem hiding this comment.
💡 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".
|
Merged current
Validation: 35 focused gameplay tests and 34 focused initialization tests passed. GitHub reports no merge conflicts. Ready for re-review. |
There was a problem hiding this comment.
💡 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".
|
Fixed the duel spectator finding in |
|
Fixed the Codacy Markdown line-length finding in |
sven-n
left a comment
There was a problem hiding this comment.
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:
CastleSiegeWarpNotPossibleLandOfTrialsClosedMobilityTalismanNoPlaceSavedMobilityTalismanPlaceSavedMobilityTalismanReturnBlockedMobilityTalismanReturnPending
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
|
Added all six missing Spanish player messages in |
There was a problem hiding this comment.
💡 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".
| /// <summary>Gets the localized CastleSiegeWarpNotPossible text.</summary> | ||
| public static string CastleSiegeWarpNotPossible => ResourceManager.GetString("CastleSiegeWarpNotPossible", resourceCulture)!; |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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, notTryAddMoney), 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
…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
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Thanks for running the tests! Both points are in:
Ran About the Codex thread on the designer accessors: as you said, they follow the format the designers on Generated by Claude Code |
sven-n
left a comment
There was a problem hiding this comment.
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
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