Skip to content

Salvage: a dropped pack adds its own items, not its side packs' (fix #221) - #230

Merged
eriknihlen merged 1 commit into
mainfrom
fix/issue-221-salvage-pack
Oct 20, 2026
Merged

eriknihlen merged 1 commit into
mainfrom
fix/issue-221-salvage-pack

Conversation

@eriknihlen

Copy link
Copy Markdown
Owner

Fixes #221.

Dropping the main pack onto the salvage window staged every salvageable item the character carried, side packs included. The original client's salvage window walks a container's item list only; packs and foci sit in a separate list and are never visited. So the main pack now adds just the items lying in it, and a side pack's items arrive only when that pack is dropped. A main pack holding nothing but side packs is judged as an item (and rejected).

  • ClientObjectTable.GetContainedItems: contents minus packs and foci.
  • SalvageUiController.CanAdd / AddRecursive use it.
  • Tests: two controller tests and one table test, failing before the fix. Portable filter: 21,693 passed.

🤖 Generated with Claude Code

…221)

Dropping the main pack onto the salvage window staged every salvageable
item the character carried, side packs included. The salvage window walks
a container's item list only; packs and foci sit in a separate container
list and are never visited, so the main pack contributes just the items
lying in it, and a side pack's items arrive only when that pack is dropped.

ClientObjectTable.GetContainedItems returns that item list (the contents
minus the container-list members), and the salvage controller uses it both
to decide whether a drop is a container drop and to walk the contents. A
main pack holding nothing but side packs is therefore judged as an item,
and rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eriknihlen
eriknihlen merged commit 70dc80b into main Oct 20, 2026
7 checks passed
@eriknihlen
eriknihlen deleted the fix/issue-221-salvage-pack branch October 20, 2026 06:45
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.

Dragging Main Pack into Salvage Bar (via Ust) Includes Items In All Packs

1 participant