Skip to content

Make time-space 4's guard follow the player as an escort - #3888

Merged
erwan-joly merged 1 commit into
masterfrom
fix/issue-3469
Nov 29, 2026
Merged

erwan-joly merged 1 commit into
masterfrom
fix/issue-3469

Conversation

@erwan-joly

Copy link
Copy Markdown
Collaborator

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.csx now places that guard as an escort (IsEscort: true). With the engine already on master, it:

  • joins the player once they walk up to it, and follows them from room to room;
  • fails the run with QuickMissionFailed if 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

  • New 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 (TimeSpaceCaptureTests alone: 57 passed).

Manual checks

Added to documentation/manual-test-plan.md under "Escorts in a time-space":

  • The Defence of NosVille (timespace-04): in the second room walk up to the guard (vnum 320); it joins you and follows you through every room to the exit
  • Let the monsters kill that guard: the time-space ends with "Failed to protect the NPC"

Not checked in a client.

Part of #3469


Generated by Claude Code

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

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e353c6a and 3236825.

Files selected for processing: 3

  • documentation/manual-test-plan.md
  • instances/timespace-04.csx
  • test/NosCore.Instances.Tests/TimeSpaceCaptureTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@erwan-joly
erwan-joly merged commit 29fdb25 into master Nov 29, 2026
15 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.

2 participants