Skip to content

Clean up Codex-generated sellwand changes#7

Open
iphonetips1 wants to merge 1 commit into
masterfrom
cleanup/codex-polish
Open

Clean up Codex-generated sellwand changes#7
iphonetips1 wants to merge 1 commit into
masterfrom
cleanup/codex-polish

Conversation

@iphonetips1
Copy link
Copy Markdown

@iphonetips1 iphonetips1 commented Apr 2, 2026

Summary

  • Use Map.merge() instead of manual containsKey/put pattern for item counting
  • Reuse existing sellwand variable instead of redundant Sellwands.getSellwands().get(type) lookup (also eliminates a potential NPE if the wand was unregistered mid-use)
  • Fix history log incorrectly computing uses - 1 when uses is unlimited (-1), which logged -2 instead of -1

Test plan

  • Verify sellwand right-click sells items and pays correctly
  • Verify sellwand left-click also sells (unified behavior from Codex changes)
  • Verify unlimited-use wands log -1 in history instead of -2
  • Verify the "no economy" message shows when Vault provider is missing

🤖 Generated with Claude Code


Open with Devin

- Use Map.merge() instead of manual containsKey/put pattern
- Reuse existing sellwand variable instead of redundant map lookup
- Fix history log computing uses-1 when uses is unlimited (-1)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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.

1 participant