Repository navigation
Make time-space 4's guard follow the player as an escort - #3888
Merged
Merged
Conversation
The Defence of NosVille's traced runs show its guard (320) entering as the player's follower, and the run's mission window sets the protect-an-NPC flag. The script now places it as an escort, so it joins the player, is carried from room to room, and its fall fails the run. Part of #3469 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUfJ46kNghqVB3Xxov5yzb
|
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 25 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. |
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.
What changed
The Defence of NosVille (time-space 4) traced runs show its guard (vnum 320) entering as the player's follower, and the mission window's protect-an-NPC flag is set for this time-space (already on master since #3859). The script placed the guard as a plain NPC, so nothing on the run was there to protect.
timespace-04.csxnow places that guard as an escort (IsEscort: true). With the engine already on master, it:QuickMissionFailedif it falls (escorts and protected NPCs share that path).No traced run shows this guard dying, so the failure on its death rests on the follower behaviour plus the protect flag, not on a trace of the failure itself.
Not covered here (still open on the issue): which NPC time-spaces 0, 8, 10, 31, 33, 46 and 628 protect, the delay before the failure, and lives after a death. None of the traces settles them yet. The talk objective is #3849.
Tests
TimeSpaceCaptureTests.TheDefenceOfNosVillesGuardFollowsThePlayer: the guard is summoned in the second room at (22, 15) as an escort.dotnet test test/NosCore.Instances.Tests: 375 passed, 0 failed (TimeSpaceCaptureTestsalone: 57 passed).Manual checks
Added to
documentation/manual-test-plan.mdunder "Escorts in a time-space":timespace-04): in the second room walk up to the guard (vnum 320); it joins you and follows you through every room to the exitNot checked in a client.
Part of #3469
Generated by Claude Code