feat: add per-base success bonus to the alloy forge scrap roll - #23
Conversation
Higher-tier base ingots now lower the scrap chance of a new alloy discovery through a flat, configurable bonus (alloy-forge.base-bonus-percent). It only applies to the base, so ingots used as catalysts gain nothing, and it does not touch ingredient values, which also drive stat rolls, revisions and Thievery totals. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe alloy forge configuration now defines flat bonuses for selected base ingredients. The loader caches positive values after clamping them to 0–100. ChangesAlloy Forge Base Bonus
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to Configured base bonuses apply to new discoveries, recorded recipes retain their stored outcomes, and Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The bonus remains limited to eligible base ingredients and does not bypass forge permissions. A failed configuration reload can nevertheless change the odds used for new discoveries, and those outcomes can remain recorded after the configuration is repaired. Retained concerns
Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
A rabbit checks the forge at night Comment |
Summary
Adds a flat, per-base success bonus to the alloy forge's new-discovery roll, so higher-tier base ingots make scrap less likely:
valuefields are unchanged. Raising them would also have strengthened alloy stat rolls, bumped ingredient revisions, and shifted Thievery totals.max-success-percent. It is reloaded withac reload.Resulting scrap chance (base + one tier-1 gem)
Only combinations nobody has forged yet use the new chance. Recorded recipes keep their result.
Testing
mvn clean verifybuilds locally.ac reload.🤖 Generated with Claude Code
Summary by CodeRabbit