Repository navigation
Barrows: align tunnel doors, brothers, loot, elite clue and Combat Achievements with live - #6623
Conversation
…th live (RSPSApp#4407) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…PSApp#4407 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd 37, progress note on the Barrows item Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewing this now (review loop, head 28dc19a). |
UnhealthyKraken
left a comment
There was a problem hiding this comment.
Reviewed PR #6623 at 28dc19a (main e7ec324, integration tree 5e6dac30ea1ca654dc31a167e827e572a6142cd8).
What it does
Aligns Barrows (issue #4407) with the recordings: one-click tunnel doors with the recorded leaf swap and sounds, the crossing monster raised on the crossing tick, a puzzle-door lock line and unlock step, silent door brothers, a brother leash, takeover of a crypt monster's fight, the "We'll finish this later..." line, an elite clue that goes through Treasure Trails, and Combat Achievement failure lines.
It also removes the post-loot collapse damage and the post-loot door re-randomisation.
What was checked
- Behaviour: door crossing, puzzle, leash, takeover, farewell, chest loot, elite clue and the three Combat Achievements, traced through
crossDoor/useDoor/processPlayer/leashBrother/searchChest/eliteClueForm. No coins or items are given twice. The elite clue is converted on a freshItem, andtreasure-trails:can-receiveandclue-itemare answered byplugins/treasuretrails/Capacity.ClueCapacity.js. The flagscombat:no-retreatandcombat:keep-targetexist inCombat.ts. - Parity (recordings, all opened):
- rsprox_transcripts/227/910469.txt (227/1000436) tick 10239: swap with 38848/20678/20697 and sounds 62, 41, a same-tick Skeleton 1685 add, and the diagonal step to (3551,9683). The leaf rotations and outer tiles match
openLeaf(also 226/01694 tick 9139). - rsprox_transcripts/236/03929.txt: "The door is locked with a strange puzzle." is
spamat tick 415; "You hear the doors' locking mechanism grind open." isgamemessageat tick 417 with sound 37; the click that crosses is at 418. - rsprox_transcripts/227/00550.txt: the three failure lines at ticks 28263, 28886 and 29246 match the PR text, and the Can't Touch Me line comes on the swing tick for a 0 hit.
- The farewell exists in 227/910598, 227/910298 and 227/910466 (one tick after the leash despawn at tick 17111).
- 226/01694 tick 9139 and 227/00086 tick 12490: a door Torag with no
[say].
- rsprox_transcripts/227/910469.txt (227/1000436) tick 10239: swap with 38848/20678/20697 and sounds 62, 41, a same-tick Skeleton 1685 add, and the diagonal step to (3551,9683). The leaf rotations and outer tiles match
- Parity (Wiki): Can't Touch Me and Scroll box (elite) agree with the PR (boxes replace clues after X Marks the Spot, one per tier, capacity). The Barrows/Strategies page says the looted tunnels "shake and start to collapse, causing occasional damage to the player" and "the arrangement of the doors and rooms will shift". The PR removes both (finding 1).
- Traced:
spawnEncounterodds are unchanged (12/128 brother, 52 skeleton, 32 bloodworm, 32 rat), and the two skeleton ids are 1685/1687 inNpcIdentifiers.ts.rollRewardsis untouched: the elite clue is still 1/200 per roll, at most one per chest (Wiki: 1/200 per roll, up to 1/29). Thecombat-achievements:failedhandler,onCombatHitPrepare(the event carriescombatType) and theanswerPuzzlehandler were also traced. - Rules: no generated JSON edited.
docs/progress/osrs-progress.jsonis hand-written and passescheck-content-progress.mjs; the new note line is indented two spaces differently from its neighbours (cosmetic). No plugin description or config change, so no world-config-docs row is needed.
Findings
server/plugins/minigames/Barrows.plugin.js(searchChest: the removedrandomiseLayout(run); syncTunnels(player, run);processPlayer: the removed collapseHitDamage) plusdocs/barrows-tunnels.md"Chest" and the progress note — the PR deletes the post-loot collapse damage and the door/room shift because 37 recordings show neither. The Wiki (Barrows/Strategies) states both, and where the Wiki and a recording disagree the Wiki wins (sources.md). The PR's own "Not covered" calls this a recorded difference, so it knowingly follows the recordings.
Fix: keep the previous looted-tunnel behaviour (damage every 10 ticks, layout re-randomised after the loot), say indocs/barrows-tunnels.mdthat recordings show neither, and drop the matching sentences, the test "looting leaves the doors as they were and hurts nobody" and the progress-note wording. If the maintainer wants the recordings to win here, that is his call and this finding goes away.server/tests/barrows-run.test.cjs:804-824(new puzzle test) — flaky: about 1 run in 4 (when the random puzzle door is varbit 473, sides (3551,9700)/(3551,9701)) the "outside" side is picked withgetDistance(chest) > 6, finds neither (distances 5 and 6), falls back tosides[0]which is inside room 4, souseDoornever raises the puzzle andassert.ok(subject.sent.spam.includes(...))fails at line 817. Seen in 6 of 8 runs of the file; no other test ever failed.
Fix: choose the side whoseroomAtis not 4 instead of the distance test. Repro:node --test tests/barrows-run.test.cjsrepeatedly, fromserver/.
Scope
ordinary
Verified
- Build (
yarn build, Yarn 4.12.0, server/) on the integration commit: ok. barrows-run.test.cjs: 34 tests; 34/34 in 2 of 8 runs, 33/34 in the other 6, always the puzzle test of finding 2.- Neighbours, each on its own: barrows-tunnel-prompt 2/2, barrows-death-durability 12/12, barrows-drop-degrade 6/6, his-faithful-servants-capture 8/8, collection-log 34/34, league-passives 21/21, qh728-q130 21/21, combat-achievements 31/31, clue-capacity 40/40, treasure-trails-elite 16/16.
- Revert check: main's plugin with only the test exports added (the three new exports stubbed) fails the PR's 10 new tests and leaves the other 24 passing.
scripts/check-content-progress.mjs: valid (20 categories, 520 items).- docs:
yarn install --frozen-lockfileandyarn buildwith Yarn 1.22.22: build complete.docs/barrows-tunnels.mdis not linked from any docs index (nothing links its siblingbarrows-prayer.mdeither). - main+head merge tree: clean (integration commit built).
- generated JSON: none edited.
Not verified
- The "37 loots show no damage or door change" count: not recounted. Finding 1 does not depend on it.
- Live game: not run. The in-game MCP claims in the PR body are the author's.
- Leash tick details (227/00086 ticks 12498-12509, 227/910466 ticks 17109-17110) and 237/04057 tick 8841 were not opened.
- The "sneaking suspicion" clue warning is not sent when the chest's elite clue is dropped for a full player (other sources send
treasure-trails:missed-clue). No Wiki text or recording settles it for the chest, so this is a note, not a finding. - Faithless Crypt Run fails once per brother in the code; three failure lines appear in 227/00550, which looks consistent, but I did not match them tick by tick.
Verdict
Await author (1, 2)
…fix the flaky puzzle test The review asks for the Wiki (Barrows/Strategies) over the 37 recorded loots, which stay documented as the recorded difference. The puzzle test now picks a side outside the chest room by room, not distance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed in b06add7:
|
|
Reviewing this now (review loop, head b06add7). |
Both findings are fixed at b06add7 (see the new review).
UnhealthyKraken
left a comment
There was a problem hiding this comment.
Reviewed PR #6623 at b06add7 (main 093d8ab, integration tree b98de18a811379351cbc47ffaa8266ae6b661f58).
Prior review: #6623 (review) on 28dc19a
Prior findings
- Looted-tunnel collapse damage and door shift removed against the Wiki: resolved.
searchChestcallsrandomiseLayout(run); syncTunnels(player, run)again after the loot, andprocessPlayercalls the newcollapse()(1-4 damage every 10 ticks,phase === "tunnels",run.looted, hitpoints above 0). Both match main's behaviour before this PR.docs/barrows-tunnels.md, the code comment and the progress note now state the Wiki text and keep the recordings as the recorded difference. - Flaky puzzle test: resolved. The test now picks a door side with
roomAt(side) !== 4(roomAtadded to_test). 20 of 20 consecutive runs ofbarrows-run.test.cjspassed (34/34 each).
What it does
Aligns Barrows (issue #4407) with the recordings: one-click tunnel doors with the recorded leaf swap and sounds, the crossing monster raised on the crossing tick, a puzzle-door lock line and unlock step, silent door brothers, a brother leash, takeover of a crypt monster's fight, the "We'll finish this later..." line, an elite clue that goes through Treasure Trails, and Combat Achievement failure lines.
This revision puts back the post-loot door/room shift and the looted-tunnel collapse damage that the previous revision had removed.
What was checked
- Behaviour: the new commit only adds
randomiseLayout(run); syncTunnels(player, run)after the rewards are added insearchChest, andcollapse()inprocessPlayer. The shift runs afterforceAddand before thebarrows:chest-lootedevent, so no item or coin is given twice and nothing moves.collapseis guarded by hitpoints above 0 and by phasetunnelsof a looted run, so it stops once the player leaves;digand the leave paths still reset a looted run tofreshRun. The old crossing state is unaffected:endCrossingrestores the original leaf objects, not the layout. - Parity (Wiki): read the Barrows/Strategies wikitext. It says "Once the chest is looted, the tunnels will shake and start to collapse, causing occasional damage to the player, and the arrangement of the doors and rooms will shift", and that each door opened afterwards summons one unkilled brother (already in main, line
run.looted || roll < 12). The restored behaviour follows the Wiki. The 1-4 every 10 ticks are Ours, as the code and docs say. - Parity (recordings): rsprox_transcripts/227/01885.txt lines 276125-279266 (loot, then tick 10757 onward): the chest count at 276125,
cam_shakebefore it, no hitsplat on the player (the[hit]rows are on Verac and Torag), and the door varbits 469-484 are not re-sent until the next dig at 289-300 of that block. This agrees with the recorded difference the PR documents. The PR's "37 loots" is not an exact count of what the cited files hold (Your Barrows chest countappears 127, 135, 29, 1, 8 and 3 times in 227/01885, 227/910477, 237/04057, 226/01694, 227/910469 and 234/03276), so it is a conservative subset, not a contradiction. The Wiki wins anyway. - Traced:
collapseusespluginApi.core.HitDamageandHitMask, the same pattern asAgilityPyramid.plugin.jsandDesertHeat.plugin.js, replacing main's directHitDamageimport. The only consumers ofsearchChest/processPlayerare the Barrows handlers and the tests listed below. - Rules: no plugin description or config change (no world-config-docs row). No generated JSON edited.
docs/progress/osrs-progress.jsonis hand-written, and the note's indentation now matches its neighbours. All four changed files have LF endings in the commit. - Related PRs: none looked at.
Findings
No defects found.
Scope
ordinary
Verified
- Build (
yarn build, Yarn 4.12.0, server/) on the integration commit: ok. barrows-run.test.cjs: 34/34, and 20 of 20 consecutive runs pass (the prior flake did not recur).- Neighbours, each on its own: barrows-tunnel-prompt 2/2, barrows-death-durability 12/12, barrows-drop-degrade 6/6, his-faithful-servants-capture 8/8, collection-log 34/34, league-passives 26/26, qh728-q130 21/21, combat-achievements 31/31, clue-capacity 40/40, treasure-trails-elite 16/16.
- Revert check on the new commit's change: with 28dc19a's plugin (plus the
roomAtexport) the rewritten loot test "looting shifts the doors and rooms, and the collapsing tunnels hurt until left (Wiki)" fails and the other 33 pass, so it covers the restored behaviour. The earlier revert check (main's plugin, 10 new tests failing) stands from the prior review and was not repeated on unchanged code. - docs:
yarn install --frozen-lockfileandyarn buildwith Yarn 1.22.22: build complete. - main+head merge tree: clean (integration commit built).
- generated JSON: none edited.
Not verified
- Live game: not run; the in-game MCP claims in the PR body are the author's.
- The exact "37 loots" count was not reproduced (see Parity). Only one loot window in 227/01885 was read for damage and varbit changes.
- Recording citations that did not change since 28dc19a (leaf swap, puzzle lines, farewell, Combat Achievement lines) were verified in the prior review and not reopened. 237/04057 tick 8841 and the leash ticks were not opened.
- The chest's elite clue for a full inventory sends no "sneaking suspicion" warning; no Wiki text or recording settles it, so it stays a note.
Verdict
Merge
Fixes #4407
Problem
Barrows reports from #4407 and its follow-up comments, checked against current main and the rsprox captures:
String(CombatType) === "MELEE"never matched (numeric enum), so it was awarded whenever the four melee brothers diedItems 2 (shake) and 3 (prayer drain restart) of the issue were already fixed on main (#4203).
Fix
server/plugins/minigames/Barrows.plugin.js:crossDoor,useDoor,endCrossingandshutDoor:spawnEncountertakes the arrival tile, and its skeleton is armed (1687) or unarmed (1685).spawnNpc(…, line): the overhead line comes only from the crypt search or the chest. Brothers getcombat:no-retreatandcombat:keep-target.takeOver: owned creatures targeting the player reset, andclearAttackerIfreleases the single-way hold. Each such creature resumes once no live brother is left.leashBrother: the over-8-tiles despawn (face reset, then removal); otherwise the brother re-attacks if a single-way refusal left him without a target.queueFarewell: the "We'll finish this later..." timing.searchChest: the loot still re-rolls the layout (the Wiki's shift).eliteClueFormroutes the clue throughtreasure-trails:can-receiveandtreasure-trails:clue-item.processPlayer: the post-loot collapse damage (1-4 every 10 ticks) is kept, moved intocollapse()onapi.core.HitDamage/HitMask.trackBrotherAttack(onCombatHitPrepare, the swing tick) checksapi.core.CombatType.MELEE.trackBrotherHitandcheckFaithlesshandle the other two run tasks.combat-achievements:failedwith the recorded reason.docs/barrows-tunnels.md: the capture facts above, with ticks.docs/progress/osrs-progress.json: Barrows' stale maze steps are corrected, with a dated note.Testing
server/tests/barrows-run.test.cjshas 10 new tests:Not covered
Self-reviewed with the review checklist at 382d685; its non-blocking findings (a repeat click's second monster, puzzle sound 37, the progress note's item) are fixed in 28dc19a. The review at 28dc19a asked for the Wiki on the post-loot collapse and shift, and found a flaky puzzle test; both are fixed in b06add7.
Reference
🤖 Generated with Claude Code