Repository navigation
Recycle spent artifact husks at half their rarity's dust - #38
Conversation
Magic 0.9.0 crumbles worn-out artifacts into aura-less husks. They skip min_muffle and return artifact_returns.husk_fraction (default 0.5) of the rarity amount, rounded down. Needs Magic 0.9.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
The chain asks ArtifactProvider about every item, so touching ArtifactWear on Magic 0.8.x or older would break all recycling. Husk checks now run only when the class is present. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
What
Magic 0.9.0 makes artifacts wear out in meditation and crumble into spent husks. Husks hold no aura and are no longer artifacts to Magic, so
ArtifactProvidernow takes them separately:artifact_returns.husk_fraction(0.0-1.0, default0.5) of its rarity's amount, rounded down. For example, a Legendary husk returns 14 dust.min_muffledoes not apply to husks, since they hold no aura.The Epic row stays in the table, now commented as legacy, because Magic no longer rolls Epic and older Epic artifacts should still recycle at their value.
Dependency
magic.versiongoes from 0.4.7 to 0.9.0 forArtifactWear. Hold this PR until Magic 0.9.0 is released, or CI can't resolve the jar. At runtime the husk checks only run whenArtifactWearexists, so this Recycler keeps recycling everything normally against an older Magic; husks simply need 0.9.0.Tests
ArtifactProviderTestcase for husks, andLoadersTestcovershusk_fractiondefaults and clamping.ArtifactProvider,ConfigLoaderorCache.🤖 Generated with Claude Code