feat(cobbling): ancient runic leather cobbler shoe last, wooden form, and arcane tread engine - #284
Conversation
…orm, and arcane tread engine
| // Calculate independent tread traction score (0% to 100%) dynamically using cached catalog maxima & authoritative catalog values | ||
| const { maxPower, maxBonus } = this.CATALOG_MAXIMA; | ||
| const safeTractionRoll = Number.isFinite(tractionRoll) ? Math.max(0, Math.min(1, tractionRoll)) : Math.random(); | ||
| const powerRatio = Math.min(1.0, lastData.cobblingPower / maxPower); | ||
| const bonusPoints = (lastData.tractionBonusPercent / maxBonus) * 20; | ||
| const tractionScore = Math.max(0, Math.min(100, Math.round( | ||
| (safeTractionRoll * 40) + (powerRatio * 40) + bonusPoints | ||
| ))); |
There was a problem hiding this comment.
💡 Quality: treadTractionPercent can never approach the documented 0% floor
The docs/types advertise tread traction as a "0% to 100%" rating, but the formula is (roll*40) + (powerRatio*40) + bonusPoints, where powerRatio (cobblingPower/maxPower) and bonusPoints are always positive for every catalog last. Even the weakest Oak bench with a traction roll of 0 yields ~14 (0 + 8.33 + 5.71), so a low-end result near 0 is unreachable. Consider adjusting the wording/type comment or the scaling if a true 0% floor is intended.
Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsImplements a comprehensive cobbler crafting system for OpenAO MMORPG with shoe lasts, leather soles, footwear recipes, and tread traction mechanics. Consider adjusting the treadTractionPercent formula or documentation: the current calculation 💡 Quality: treadTractionPercent can never approach the documented 0% floor📄 api/src/lib/ancientRunicLeatherCobblerShoeLast.ts:192-199 📄 api/src/lib/ancientRunicLeatherCobblerShoeLast.ts:47 The docs/types advertise tread traction as a "0% to 100%" rating, but the formula is 🤖 Prompt for agentsOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Important Your trial ends in 1 day — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more. Was this helpful? React with 👍 / 👎 | Gitar |
Summary
Implements an ancient runic leather cobbler shoe last, wooden tree form, and arcane tread footwear crafting system, cobbler shoe lasts (Oak Cobbler Last Bench, Runic Ironwood Shoe Tree, Celestial Void Swift-Tread Sanctum), raw tanned leather soles (Tanned Cowhide Sole Plate, Reinforced Wyrmhide Boot Vamp, Celestial Void Starlight Tread Leather), cobbler footwear recipes (Scout Swift-Stride Moccasin, Ranger Iron-Tread Marching Boot, Celestial Void Seraphic Winged Greave), tread traction ratings (0% to 100%), calibrated movement speed and terrain fatigue resistance scaling, upfront material deduction on all attempts, consistent remainingProvidedSoles shapes across all branches, and cobbler bench maintenance for OpenAO MMORPG.
Features