FAILURE MAP
← Case archive

FA-86058 / Game economy crafting balance / Member archive

Crafted quality tier: Score cap withholds a perfect craft · case 03

Perfect crafts report 99 and the displayed score never reaches 100.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

materials = [[quality, weight], ...]. If total weight <= 0 the craft fails (score 0, tier "failed"). score = floor(sum(q*w)/sum(w)) + skill//10, capped at 100. Tier index = number of cutoffs [40, 65, 85] with score >= cutoff over [common, fine, superior, masterwork]. A critical craft (skill >= 25 and crit_roll < 5) raises the tier by one, never above masterwork.

Why this case matters

Game economies leak or destroy currency when one crafting or pricing rule is off by one boundary, rounding stage or state update; the defect is observable in exact integer outcomes.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
masterwork crit #1{"score": 99, "tier": "masterwork"}{"score": 100, "tier": "masterwork"}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗