Repository navigation
Keep the base-map return point in a component - #2967
Merged
Merged
Conversation
The last base-map position a character returns to after an instance or a miniland was read and written straight through CharacterDto. It now lives in a BaseMapPositionComponent like the rest of the character's state, and the save copies it into the row with the other fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkTzR51DzhJwrXVqDmS
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Requested by Erwan · project thread
Fifth ECS cleanup, after #2951, #2955, #2958 and #2962.
What changed
MapId/MapX/MapY(the last base-map spot, where leaving an instance or a miniland puts them back) were hand-written bundle properties reading and writingCharacterDtodirectly, the only character state that bypassed the components. They now live in aBaseMapPositionComponent, and the bundle properties are generated, so no call site changes.CreatePlayertakes the map id and seeds the component from the character row;ClonePlayercarries it across a map change.SaveServicecopies the component into the row with the other fields. On a base map it first moves the return point to the current position, as before.No behaviour change is intended.
Verification
dotnet test NosCore.sln: all green exceptNosCore.Parser.Tests EveryDeclaredEffectIsNamed, which fails the same way on master locally. The existingSavingOnBaseMapPersistsPositionAsMapXY,SavingInsideMinilandKeepsPreviousMapXYValue, map change and movement exit tests cover the moved state.Screenshots
Each image, left to right: Tester on Chicken Farm Path, in the miniland after the bell, and back on Chicken Farm Path at the same spot after quitting inside the miniland and logging in again.
Master:
Branch:
Manual test plan checks still worth a human pass
From
documentation/manual-test-plan.md: leave a miniland through its exit and land where you entered; leave a time-space or arena and return to the base map; relog inside an instance.Generated by Claude Code