Skip to content

[feature] Show "can not be disenchanted" on legendary items - #37

Merged
BreakBB merged 1 commit into
mainfrom
feat/show-tooltip-on-legendaries
Oct 29, 2026
Merged

BreakBB merged 1 commit into
mainfrom
feat/show-tooltip-on-legendaries

Conversation

@BreakBB

@BreakBB BreakBB commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Fixes #4

@BreakBB BreakBB added the feature request New feature or request label Oct 27, 2026
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a724f00-a9a6-417b-b9a1-aae54654c581
Commits

Reviewing files that changed from the base of the PR and between f0e2f42 and 808d475.

Files selected for processing: 2
  • AddDisenchantInfo.lua
  • AddDisenchantInfo.test.lua

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

Legendary weapons and armor now show a tooltip with ITEM_DISENCHANT_NOT_DISENCHANTABLE. Poor-quality items, standard-quality items, and unsupported classes keep their existing early return. Tests cover the tooltip message for legendary weapons and armor, and no tooltip for legendary containers.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Severity of issue fixed: Low

Suggested reviewers: derek-etherton

Merge Risk: Minimal · up to 808d4

Legendary weapons and armor display the required message, while unsupported classes remain unchanged.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: showing that legendary items cannot be disenchanted.
Description check Passed The description references issue #4, which matches the pull request objective and changeset.
Linked Issues check Passed Issue #4 (direct) asks that "Cannot be disenchanted" appear on legendary weapons for consistency. At the reviewed head, AddDisenchantInfo.lua handles Enum.ItemQuality.Legendary in a dedicated branch. …
Out of Scope Changes check Passed The whole-PR diff (merge base 95dd2a1 to head 808d475) changes only AddDisenchantInfo.lua and AddDisenchantInfo.test.lua. The new legendary branch applies to legendary armor and weapons. The issue nam…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Full details: Linked Issues check

Explanation

Issue #4 (direct) asks that "Cannot be disenchanted" appear on legendary weapons for consistency. At the reviewed head, AddDisenchantInfo.lua handles Enum.ItemQuality.Legendary in a dedicated branch. For armor and weapon items, it calls tooltip:AddLine(ITEM_DISENCHANT_NOT_DISENCHANTABLE), then tooltip:Show(), then returns. The legendary check was removed from the early-return group, so legendary weapons now reach this branch. AddDisenchantInfo.test.lua adds a test that asserts AddLine is called with "Cannot be disenchanted" and Show is called for a legendary weapon. The string is defined as a test global. In the game client, ITEM_DISENCHANT_NOT_DISENCHANTABLE is the expected global string. This repository does not define it outside the test, so the production text depends on the client global. The issue has no non-coding requirements. The coding requirement is met.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff (merge base 95dd2a1 to head 808d475) changes only AddDisenchantInfo.lua and AddDisenchantInfo.test.lua. The new legendary branch applies to legendary armor and weapons. The issue names only legendary weapons. Armor uses the same tooltip path and the same class gate, so the armor case is closely related to the requested consistency change and does not add an unrelated feature. Legendary items in other classes, such as containers, still return without a tooltip. A test covers that case and the code path is unchanged for them. The test changes replace the earlier test that expected no tooltip for legendary armor. These test changes support the implemented behavior. No unrelated changes were found.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@BreakBB
BreakBB merged commit d5f9444 into main Oct 29, 2026
5 checks passed
@BreakBB
BreakBB deleted the feat/show-tooltip-on-legendaries branch October 29, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show tooltip on legendary weapons

1 participant