Repository navigation
Light sources: lighting a candle lantern says so and plays its sound - #6619
Merged
UnhealthyKraken merged 2 commits intoNov 23, 2026
Merged
UnhealthyKraken merged 2 commits into
UnhealthyKraken merged 2 commits into
Conversation
Live sends "You light the lantern." as a spam line and synth 3226 on the tick a tinderbox lights the white candle lantern (rsprox local 1000134, 1000135, 1000140: 6 of 6). The black one, not captured, does the same, as it already shares the white one's Extinguish line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bandit-HaxUnit
marked this pull request as ready for review
November 23, 2026 10:23
UnhealthyKraken
self-requested a review
November 23, 2026 18:08
Collaborator
|
Reviewing this now (review loop, head 4db9a65). |
UnhealthyKraken
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed PR #6619 at 4db9a65 (main 75a513d, integration tree eca5d953047cb374a35077001522387317179c11).
What it does
Lighting an unlit white or black candle lantern with a tinderbox now sends "You light the lantern." as a spam (filterable) line and plays synth 3226, like the oil, bullseye and sapphire lanterns in OilLights already do. The level refusal (below 4 Firemaking) is unchanged and sends neither. The light-sources:lit event and the in-slot setId are untouched.
What was checked
- Behaviour:
applyLightrunssetId,refreshItems, then the spam line andsendSound(3226, 100, 0), then the event. Nothing is consumed or given, so there is no money or item risk. A second click on the now-lit lantern is not in thelightsmap, so a double click cannot repeat the line or sound. The torch (message) and the candle, bug and emerald entries have nospam/sound, so they stay silent as before.lightOnObjectonly lights the torch, so the object path is unaffected. - Parity (captures): I opened
rsprox_transcripts/226/910167.txt,910168.txtand910173.txt(the PR's local 1000134, 1000135 and 1000140). All six cited lightings exist: 910167 ticks 438, 585, 780, 1144; 910168 tick 221; 910173 tick 763. Each isif_buttont(tinderbox 590 on 4529), then[message_game] type=spam, message="You light the lantern.",update_inv_partialslot -> 4531, and[synth_sound] id=3226, with no player sequence. The text is byte-identical. The related lanterns agree: the oil, bullseye and sapphire lightings inrsprox_transcripts/226/01698.txt,227/910228.txt,227/910481.txt,231/03015.txtand242/911949.txtuse the same line and synth. - Timing nit: the docs and test comment say "on the click tick". That holds for 4 of 6 (438, 1144, 221, 763). At 910167 ticks 585 and 780 the line, slot change and synth land one tick after the
if_buttont(586, 781). The server answering on the click tick is what OilLights does too, so I do not count it as a defect. - Wiki: Candle lantern page: level 4 Firemaking to light, no experience, no message text. It does not conflict with the recording.
- Traced:
build()entries are consumed only bylight/applyLight;_test.build; thelight-sources:litevent (league "Light a Torch");extinguishAll(agility shortcuts) is unaffected; OilLights uses the same constant 3226 andsendSound(…, 100, 0)form. - Rules: no plugin description or config change, so no world-config-docs regeneration. No generated JSON edited. LF endings.
- Not captured, stated honestly in the PR: the black lantern (4532 -> 4534) is given the white one's line and sound and is labelled "Ours" in the code comment and docs; emerald and bug lantern lighting stay silent.
- Cosmetic: the header comment line added at
server/plugins/items/LightSources.plugin.js:20is 154 characters wide, though the PR says the header wrap was fixed. Not a finding.
Findings
No defects found.
Scope
ordinary
Verified
yarn buildin server/ on the integration commit (no TypeScript in the diff): up to date.tests/light-sources.test.cjs: 97/97.tests/darkness.test.cjs: 5/5.tests/league-task-deeds.test.cjs(real LightSources "Light a Torch"): 160/160.- Revert check: main's
LightSources.plugin.jswith the new test: 96 pass, 1 fail (the new candle lantern test). Restored withgit checkout HEAD --. - docs/
yarn install --frozen-lockfileandyarn build(Yarn 1.22.22): build complete. - main+head merge tree: clean
- generated JSON: none edited (a test run touched
server/plugins/bots/data/object-index.jsonin the review worktree only; restored).
Not verified
- In-game play and sound playback: not run; the PR's MCP run does not report sounds. The test mocks
sendSoundandsendTypedMessage; the packet encoding is shared with OilLights, which uses the same call. - Black lantern and emerald/bug lantern lighting: no capture exists, as the PR says.
tests/falador-diary.test.cjsandtests/small-conversions-preset-copies.test.cjs(they touch OilLights, which this PR does not change) were not run.
Verdict
Merge
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.
Problem
Evidence tier: captures
The oil, bullseye and sapphire lanterns (OilLights) already send this line and sound; the candle lanterns in LightSources were silent.
Fix
server/plugins/items/LightSources.plugin.js: light-source entries can carry a spam line and a sound; the white and black candle lanterns send "You light the lantern." (ChatType.SPAM) and synth 3226 when lit. The level refusal is unchanged and sends neither.docs/light-sources.md: the captured lighting facts, and the black lantern under Ours.server/tests/light-sources.test.cjs: lighting either candle lantern sends exactly that spam line and sound 3226, no animation; below 4 Firemaking neither is sent.Testing
node --test tests/light-sources.test.cjs: 97/97 pass;tests/darkness.test.cjs: 5/5.LightSources.plugin.jsand the new test, the new test fails (96 pass, 1 fail).Not covered
Reference
rsprox_index.py facts candle_lantern_unlit.Self-reviewed with the review checklist at 4db9a65 (one nit: doc list spacing and header wrap, fixed).
🤖 Generated with Claude Code