---
name: set-crafting-an-item
description: How to craft items and run an orb economy with the Set World API. Use when buying an exact material grade, spending orbs on the price-gated lottery and reading its exact odds, salvaging items, pricing monster drops or stat boosts, reading the schemas of the craft, salvage, drop and boost responses, or composing these into a progression loop and wallet your game controls.
license: "Free to use when obtained from set.world, commercially too (the API, what it returns and the skills). Its models, animations and textures, Anima included, are CC BY 4.0: free to use with attribution to Jimmy Lee (j@internet.dev). The source code of Set is © Jimmy Lee under CC BY-NC 4.0 and its commercial use needs a paid waiver."
metadata:
  version: "0.15.35"
  title: Crafting an item
---

# Crafting an item

This skill owns Set's orb economy: every price, both ways to craft, salvage, drops and stat boosts. Everything is priced in one currency, orbs, and every price is deterministic; a drop's variance repeats for the same seed and is fresh without one.

| Set provides | Your game owns |
| --- | --- |
| Crafting, end to end: one graded item per request | When players craft, and what they pay with |
| Prices for crafts, salvage, drops and stat boosts | Wallets, balances and inventories |
| Grades, rarity and orb values | What drops what, and how often |

A crafted item is an ordinary `Item` ([Rolling an item](https://set.world/skills/rolling-an-item)). Its price does not set its damage, weight or reach.

## Orbs are your game's currency

Set prices everything in orbs and holds none. There is no wallet, no balance and no rule for how an orb is earned. An orb exists only as a number your game tracks, and the `orbs=` or `tier=` you send is a spend your game has already checked against its own ledger. This is deliberate: every game keeps its own economy and uses orbs as the bridge to Set.

- **Earn them your way.** Set can price a kill (`/api/drop`), but quests, shops, time, trade or real play are all yours to price.
- **Convert your own resources.** A game with wood, stone, ore, gold or anything else sets a rate from each resource to orbs, converts what the player pays, and sends the total to `/api/craft`. The player may never see the word "orb".
- **Your rates, Set's odds.** The rate, the sinks and whether orbs convert back are your design. Set's side never moves: one orb buys the same odds in every game.

An example with invented rates:

| Your resource | Orbs per unit |
| --- | ---: |
| wood | 1 |
| stone | 2 |
| iron ore | 10 |

A player pays 20 wood, 15 stone and 8 iron ore: `20 × 1 + 15 × 2 + 8 × 10 = 130` orbs. Your game can now call `/api/craft?orbs=130` (a lottery of 2 candidates whose median result is Grade C), or buy a Grade C (125 orbs) guarantee and keep the change.

```ts
type ExchangeRates = Record<string, number>;                     // orbs per unit of your resource
type Payment = Array<{ resource: string; units: number }>;

const RATES: ExchangeRates = { wood: 1, stone: 2, 'iron ore': 10 };
const toOrbs = (payment: Payment) => payment.reduce((orbs, part) => orbs + part.units * RATES[part.resource], 0);
```

What orbs buy for one item, one character and a whole roster is shown in [Rolling an item](https://set.world/skills/rolling-an-item), [Rolling a character](https://set.world/skills/rolling-a-character) and [Rolling a group](https://set.world/skills/rolling-a-group). The prices and odds follow.

## The prices

| System | Formula |
| --- | --- |
| Guarantee craft | `craftCost(tier) = 5^(tier − 1)` |
| Salvage | `floor(craftCost × 10%)` |
| Stat boost | A price per step, cubic at first and steep at the top (the table under Stat boosts). 8 → 24 costs 53,337 |
| Monster drop | `floor(round((avgStat − 6)² / 4) × classMultiplier × uniform(0.75, 1.25))` |

The values per grade are in the tables below.

An item's `orbValue` is its grade's guarantee price. Which materials are in which grade is in [Materials](https://set.world/skills/item-materials).

## Mode 1: guarantee a grade

Pay a fixed price for exactly one grade. Send `tier` or `orbs`, never both (400). The server samples until it draws that grade or its attempt budget runs out. Quality, prefix and suffix are ordinary single draws.

```sh
curl 'https://set.world/api/craft/cost?tier=5'
curl 'https://set.world/api/craft?tier=5&seed=11'
```

```ts
type CraftCost = { tier: number; orbs: number; defaultBudget: number };

// Item and SlotBreakdown are defined in Rolling an item; Grade and Material in Materials.
type CraftedItem = Item & { breakdown: SlotBreakdown };

type GuaranteeCraft = {
  mode: 'tier';
  requestedTier: number;           // 1..7 = Grade F..S
  seed: number | null;
  contentVersion: string;
  budget: number;                  // the effective attempt budget
  item: CraftedItem;
  score: number;
  materialRank: number;
  tier: number;                    // equals requestedTier unless capped
  tierGrade: Grade;
  tierName: string;
  material: Material;
  attempts: number;
  capped: boolean;                 // true when the budget ran out
};
```

The two requests above, answered at this `contentVersion`:

```json
{ "tier": 5, "orbs": 625, "defaultBudget": 62500 }
```

```json
{
  "mode": "tier",
  "requestedTier": 5,
  "seed": 11,
  "contentVersion": "8.1bmmTgz1B0Y9UKhiu84STg",
  "budget": 62500,
  "item": {
    "name": "gold girdle",
    "slot": "waist",
    "slotIndex": 16,
    "props": [
      { "name": "-", "weight": 60000 },
      { "name": "-", "weight": 489 },
      { "name": "gold", "weight": "16299" },
      { "name": "girdle", "weight": "48900" },
      { "name": "-", "weight": "1099" }
    ],
    "roll": [119487, 375, 710730, 81651, 39341, 810688, 160269, 10138, 11, 127, 210389, 149257, 131888, 85692, 143393, 19815, 165018, 15898, 574],
    "indexes": [4, 0, 19, 1, 11, 24, 3, 0, 11, 127, 5, 3, 2, 1, 3, 0, 3, 0, 0],
    "score": 4.2055,
    "materialRank": 21,
    "tier": 5,
    "tierGrade": "B",
    "tierName": "Grade B",
    "orbValue": 625,
    "material": { "name": "gold", "materialRank": 21, "tier": 5, "tierGrade": "B", "tierName": "Grade B" },
    "affects": ["stamina", "carryCapacity"],
    "breakdown": {
      "slot": "waist",
      "affects": ["stamina", "carryCapacity"],
      "items": [
        {
          "name": "gold girdle",
          "orbValue": 625,
          "materialRank": 21,
          "tier": 5,
          "tierGrade": "B",
          "score": 4.2055,
          "tierName": "Grade B",
          "material": { "name": "gold", "materialRank": 21, "tier": 5, "tierGrade": "B", "tierName": "Grade B" }
        }
      ]
    }
  },
  "score": 4.2055,
  "materialRank": 21,
  "tier": 5,
  "tierGrade": "B",
  "tierName": "Grade B",
  "material": { "name": "gold", "materialRank": 21, "tier": 5, "tierGrade": "B", "tierName": "Grade B" },
  "attempts": 3,
  "capped": false
}
```

The server drew 3 candidates; the last had the requested grade.

| Grade | Tier | Orbs | Default budget |
| --- | --- | ---: | ---: |
| F | 1 | 1 | 100 |
| E | 2 | 5 | 500 |
| D | 3 | 25 | 2,500 |
| C | 4 | 125 | 12,500 |
| B | 5 | 625 | 62,500 |
| A | 6 | 3,125 | 312,500 |
| S | 7 | 15,625 | 1,000,000 |

- `budget` is optional in tier mode only, a positive integer capped at 1,000,000. `budget` with `orbs` returns 400.
- `capped: true` means the budget ran out; the response then holds the highest grade below the target that it drew, or the lowest grade above it if every draw was above. At the default budget this practically never happens; a small explicit `budget` can miss.
- A guarantee buys a grade, not a material: a Grade S guarantee is godhair about 1.6% of the time.

## Mode 2: the price-gated lottery

```sh
curl 'https://set.world/api/craft?orbs=125&seed=11'
```

Spend N orbs (capped at 15,625) to draw `max(1, round((N / 25)^0.55))` candidates (`set-world-0-15-35-lottery-5`). Each candidate's grade T is accepted with probability `min(1, (N / craftCost(T))^1.7)` and redrawn otherwise, so a grade opens fully only once N reaches its guarantee price. The item keeps the slot, gear and material of the best-grade candidate (a material rarer within its own table breaks ties), takes the best quality among all candidates on the quality ladder (the quality table's order: Poor, Brittle, Crude, Fair, `-` (none), Fine, Refined, Superior, Exceptional, Perfected, Masterwork, Legendary), and takes the rarest prefix and suffix. There is no grade or quality guarantee, but more orbs never make the quality worse: it is negative only when every candidate is, 27.7% of the time with one candidate, 7.7% at 125 orbs and practically never at the cap. The server mints none of those candidates: it samples their winner directly, one draw per factor, with exactly their odds, so a large spend costs no more to serve than a small one.

```ts
type LotteryCraft = {
  mode: 'orbs';
  orbs: number;                    // the effective spend, after the cap
  rolls: number;                   // the candidates the draw stands for
  lottery: { version: string; candidateBase: number; candidateExponent: number; gateExponent: number; qualitySelection: string; traitFactors: string[]; traitSelection: string; sampling: string };   // the rule in force
  seed: number | null;
  contentVersion: string;
  item: CraftedItem;
  score: number;
  materialRank: number;
  tier: number;
  tierGrade: Grade;
  tierName: string;
  material: Material;
  rollsExpected: { medianTier: number; medianScore: number; p25Score: number; p75Score: number; p95Score: number; referenceOrbs: number; method: 'historical-sample' };
  gradeExpectations: {
    method: 'exact-weighted-model';
    orbs: number;
    rolls: number;
    medianTier: number;
    medianGrade: Grade;
    distribution: Array<{ tier: number; tierGrade: Grade; probability: number; atLeastProbability: number; cumulativeProbability: number }>;   // 7 rows, F to S
  };
  analysis: {
    itemProbability: number;               // the 6 factors' joint probability on one roll: 10^(−score)
    gradeOrBetterProbability: number;      // this grade or better on one ordinary roll
    gradeOrBetterCraftProbability: number; // this grade or better from this craft
    maxRarityScore: number;
    rarityFraction: number;                // score / maxRarityScore: progress toward a log ceiling, not a percentile
    maxMaterialRank: number;
    maxOrbValue: number;
    factors: Array<{ slot: string; name: string; p: number; contribution: number }>;   // largest contribution first
  };
};
```

The request above, answered at this `contentVersion`:

```json
{
  "mode": "orbs",
  "orbs": 125,
  "rolls": 2,
  "lottery": {
    "version": "set-world-0-15-35-lottery-5",
    "candidateBase": 25,
    "candidateExponent": 0.55,
    "gateExponent": 1.7,
    "qualitySelection": "best-on-ladder",
    "traitFactors": ["prefix", "suffix"],
    "traitSelection": "rarest-among-candidates",
    "sampling": "order-statistic"
  },
  "seed": 11,
  "contentVersion": "8.1bmmTgz1B0Y9UKhiu84STg",
  "item": {
    "name": "refined whispering linen boots",
    "slot": "feet",
    "slotIndex": 13,
    "props": [
      { "name": "refined", "weight": 31100 },
      { "name": "whispering", "weight": 1 },
      { "name": "linen", "weight": "39400" },
      { "name": "boots", "weight": "24000" },
      { "name": "-", "weight": "1099" }
    ],
    "roll": [188854, 614, 133625, 336459, 32460, 531726, 33338, 211618, 94, 68, 203105, 239306, 204821, 114403, 133102, 35845, 45735, 97326, 61],
    "indexes": [6, 126, 2, 6, 8, 10, 0, 4, 94, 68, 5, 4, 3, 2, 2, 0, 0, 3, 0],
    "score": 6.9296,
    "materialRank": 9,
    "tier": 3,
    "tierGrade": "D",
    "tierName": "Grade D",
    "orbValue": 25,
    "material": { "name": "linen", "materialRank": 9, "tier": 3, "tierGrade": "D", "tierName": "Grade D" },
    "affects": ["dodgeRate", "jumpHeight"],
    "breakdown": {
      "slot": "feet",
      "affects": ["dodgeRate", "jumpHeight"],
      "items": [
        {
          "name": "refined whispering linen boots",
          "orbValue": 25,
          "materialRank": 9,
          "tier": 3,
          "tierGrade": "D",
          "score": 6.9296,
          "tierName": "Grade D",
          "material": { "name": "linen", "materialRank": 9, "tier": 3, "tierGrade": "D", "tierName": "Grade D" }
        }
      ]
    }
  },
  "score": 6.9296,
  "materialRank": 9,
  "tier": 3,
  "tierGrade": "D",
  "tierName": "Grade D",
  "material": { "name": "linen", "materialRank": 9, "tier": 3, "tierGrade": "D", "tierName": "Grade D" },
  "rollsExpected": { "medianTier": 4, "medianScore": 7, "p25Score": 4.98, "p75Score": 7.87, "p95Score": 10.62, "referenceOrbs": 125, "method": "historical-sample" },
  "gradeExpectations": {
    "method": "exact-weighted-model",
    "orbs": 125,
    "rolls": 2,
    "medianTier": 4,
    "medianGrade": "C",
    "distribution": [
      { "tier": 1, "tierGrade": "F", "probability": 0.046954495208237024, "atLeastProbability": 1, "cumulativeProbability": 0.046954495208237024 },
      { "tier": 2, "tierGrade": "E", "probability": 0.12368983589131433, "atLeastProbability": 0.953045504791763, "cumulativeProbability": 0.17064433109955135 },
      { "tier": 3, "tierGrade": "D", "probability": 0.2563959401669753, "atLeastProbability": 0.8293556689004487, "cumulativeProbability": 0.42704027126652666 },
      { "tier": 4, "tierGrade": "C", "probability": 0.5622175139221777, "atLeastProbability": 0.5729597287334733, "cumulativeProbability": 0.9892577851887043 },
      { "tier": 5, "tierGrade": "B", "probability": 0.010395511645970914, "atLeastProbability": 0.010742214811295673, "cumulativeProbability": 0.9996532968346752 },
      { "tier": 6, "tierGrade": "A", "probability": 0.0003377696822257168, "atLeastProbability": 0.000346703165324759, "cumulativeProbability": 0.999991066516901 },
      { "tier": 7, "tierGrade": "S", "probability": 0.000008933483099042214, "atLeastProbability": 0.000008933483099042214, "cumulativeProbability": 1 }
    ]
  },
  "analysis": {
    "itemProbability": 1.1760428919228946e-7,
    "gradeOrBetterProbability": 0.6349509284138872,
    "gradeOrBetterCraftProbability": 0.8293556689004487,
    "maxRarityScore": 17.091099808483417,
    "rarityFraction": 0.4054494395502015,
    "maxMaterialRank": 32,
    "maxOrbValue": 15625,
    "factors": [
      { "slot": "prefix", "name": "whispering", "p": 0.0015337423312883436, "contribution": 2.81424759573192 },
      { "slot": "material", "name": "linen", "p": 0.0468713939362216, "contribution": 1.329092130546203 },
      { "slot": "slot", "name": "feet", "p": 0.09503239740820735, "contribution": 1.0221283145317657 },
      { "slot": "gear", "name": "boots", "p": 0.14059836320072175, "contribution": 0.8520197351983589 },
      { "slot": "quality", "name": "refined", "p": 0.1440495048587759, "contribution": 0.8414882301810064 },
      { "slot": "suffix", "name": "-", "p": 0.8499613302397525, "contribution": 0.07060083245690348 }
    ]
  }
}
```

Exact odds from the current weights:

| Orbs | Candidates | Median grade | B or better | A or better | S | Has a prefix | Has a suffix |
| ---: | ---: | --- | ---: | ---: | ---: | ---: | ---: |
| 1 | 1 | F | 6.4e-4% | 2.0e-5% | 5.3e-7% | 25.0% | 15.0% |
| 5 | 1 | F | 5.3e-3% | 1.7e-4% | 4.4e-6% | 25.0% | 15.0% |
| 25 | 1 | E | 0.052% | 1.7e-3% | 4.3e-5% | 25.0% | 15.0% |
| 125 | 2 | C | 1.1% | 0.035% | 8.9e-4% | 43.8% | 27.8% |
| 500 | 5 | C | 24.3% | 0.87% | 0.022% | 76.3% | 55.6% |
| 1,000 | 8 | C | 48.6% | 4.3% | 0.11% | 90.0% | 72.8% |
| 3,125 | 14 | B | 80.1% | 41.0% | 1.3% | 98.2% | 89.7% |
| 5,000 | 18 | A | 87.7% | 50.3% | 3.7% | 99.4% | 94.6% |
| 15,625 | 34 | A | 98.8% | 82.5% | 39.1% | 100.0% | 99.6% |

- Godhair is about 0.8% at the cap, the most any lottery reaches.
- At the guarantee price of each grade from E to S, the lottery reaches that grade or better only 38–57% of the time. The guarantee is the certain route; the lottery is a gamble with better traits.
- `gradeExpectations` and `analysis` are exact arithmetic over the current tables; `rollsExpected` is a labelled historical sample (the recorded row nearest the spend, `referenceOrbs`). Never mix them.
- These odds describe reaching a grade, not winning the exact item.
- Crafts do not target a slot. Your inventory rules decide whether the result is useful.

## Salvage

Destroying an item refunds 10% of its grade's guarantee price, rounded down (`set-world-0-15-35-salvage-2`).

```sh
curl 'https://set.world/api/salvage?rolls=<19 numbers>'    # appraise an item (or indexes=)
curl 'https://set.world/api/salvage?tier=6'                # one grade
curl 'https://set.world/api/salvage'                       # the schedule and the sink bound
```

```ts
type SalvageRow = { tier: number; tierGrade: Grade; tierName: string; salvage: number; craftCost: number };
type SalvageSink = {
  schedule: SalvageRow[];                                       // 7 rows
  rules: { version: string; rate: number };
  worstReturn: { orbs: number; expectedSalvage: number; returnPerOrb: number };
  strictSink: boolean;
};

type SalvageResponse =
  | SalvageSink                                                 // no parameters
  | (SalvageRow & SalvageSink)                                  // tier=
  | ({ indexes: number[]; salvage: number; score: number; materialRank: number; tier: number; tierGrade: Grade; tierName: string; orbValue: number; material: Material } & SalvageSink);   // rolls= or indexes=
```

The `tier=6` request, answered:

```json
{
  "tier": 6,
  "tierGrade": "A",
  "tierName": "Grade A",
  "salvage": 312,
  "craftCost": 3125,
  "schedule": [
    { "tier": 1, "tierGrade": "F", "tierName": "Grade F", "salvage": 0, "craftCost": 1 },
    { "tier": 2, "tierGrade": "E", "tierName": "Grade E", "salvage": 0, "craftCost": 5 },
    { "tier": 3, "tierGrade": "D", "tierName": "Grade D", "salvage": 2, "craftCost": 25 },
    { "tier": 4, "tierGrade": "C", "tierName": "Grade C", "salvage": 12, "craftCost": 125 },
    { "tier": 5, "tierGrade": "B", "tierName": "Grade B", "salvage": 62, "craftCost": 625 },
    { "tier": 6, "tierGrade": "A", "tierName": "Grade A", "salvage": 312, "craftCost": 3125 },
    { "tier": 7, "tierGrade": "S", "tierName": "Grade S", "salvage": 1562, "craftCost": 15625 }
  ],
  "rules": { "version": "set-world-0-15-35-salvage-2", "rate": 0.1 },
  "worstReturn": { "orbs": 15625, "expectedSalvage": 1562, "returnPerOrb": 0.1 },
  "strictSink": true
}
```

Salvage never pays back a craft: a guarantee returns at most 10% of its price, and no lottery spend returns more per orb. `worstReturn` is the best case for the player over every way to craft. Whether disassembly exists is your call.

## Monster drops

Drops fund crafting. They depend on the enemy's average stat and its encounter class.

```sh
curl https://set.world/api/drop/classes
curl 'https://set.world/api/drop?stats=12-14-10-11-13-16-12-14-11&class=elite&seed=7'
```

```ts
type DropClasses = { classes: Array<{ name: 'trash' | 'veteran' | 'elite' | 'boss' | 'world-boss'; multiplier: number }> };

type DropOverride = {
  flat?: number;                           // a non-negative safe integer that replaces the formula (multiplier is then ignored)
  multiplier?: number;                     // finite, 0..1,000,000: multiplies the formula before it is floored
  bonusOrbs?: { min: number; max: number };// integers, 0 ≤ min ≤ max ≤ 1,000,000,000: adds one uniform whole number in min..max, after flat or the formula
  guaranteedTier?: number;                 // 1..7 (F..S): also craft an item of exactly that grade
};

type DropResponse = {
  seed: number | null;
  stats: number[];                         // the 9 stats sent
  avgStat: number;
  class: string;
  baseDrop: number;
  classMultiplier: number;
  rolledVariance: number;                  // uniform 0.75..1.25, 4 decimals
  orbs: number;
  override: DropOverride | null;
  guaranteedItem?: Item & { salvage: number };                                                   // only with guaranteedTier
  guaranteedItemCraft?: { requestedTier: number; seed: number | null; budget: number; attempts: number; capped: boolean };
  contentVersion: string;
};
```

The request above, answered at this `contentVersion`:

```json
{
  "seed": 7,
  "stats": [12, 14, 10, 11, 13, 16, 12, 14, 11],
  "avgStat": 12.556,
  "class": "elite",
  "baseDrop": 11,
  "classMultiplier": 10,
  "rolledVariance": 0.7559,
  "orbs": 83,
  "override": null,
  "contentVersion": "8.1bmmTgz1B0Y9UKhiu84STg"
}
```

The arithmetic: `floor(11 × 10 × 0.7559) = 83`.

| Class | Multiplier |
| --- | ---: |
| trash | 1 |
| veteran | 3 |
| elite | 10 |
| boss | 50 |
| world-boss | 250 |

Use `trash` for common mobs, `veteran` for mini-bosses and rare spawns, `elite` for guardians and named enemies, `boss` for end-of-zone bosses and `world-boss` for raid and server events.

`class` is required. `override` is URL-encoded JSON; any other field is rejected with 400, and the echoed `override` is what the server applied. With a seed, the variance and then any bonus come from one seeded stream, so the same request returns the same orbs. A guaranteed item is crafted on `deriveSeed(seed, 1)` and leaves the orb roll untouched. The multipliers scale the reward, not the enemy's health or damage: threat is your game's math, and `stats` must stay in 8 to 24.

## Stat boosts

```sh
curl 'https://set.world/api/boost/cost?from=14&to=18'
```

```ts
type BoostCost = { from: number; to: number; orbs: number; perStep: Array<{ from: number; to: number; orbs: number }> };
```

```json
{
  "from": 14,
  "to": 18,
  "orbs": 2584,
  "perStep": [{ "from": 14, "to": 15, "orbs": 343 }, { "from": 15, "to": 16, "orbs": 512 }, { "from": 16, "to": 17, "orbs": 729 }, { "from": 17, "to": 18, "orbs": 1000 }]
}
```

Every step's price:

| Step | Orbs |
| --- | ---: |
| 8 → 9 | 1 |
| 9 → 10 | 8 |
| 10 → 11 | 27 |
| 11 → 12 | 64 |
| 12 → 13 | 125 |
| 13 → 14 | 216 |
| 14 → 15 | 343 |
| 15 → 16 | 512 |
| 16 → 17 | 729 |
| 17 → 18 | 1,000 |
| 18 → 19 | 1,331 |
| 19 → 20 | 1,728 |
| 20 → 21 | 2,197 |
| 21 → 22 | 4,096 |
| 22 → 23 | 8,192 |
| 23 → 24 | 32,768 |

`from` and `to` outside 8 to 24 are clamped; `from` must be below `to`. The endpoint prices a stat increase; your game decides whether players can buy one, and Set grants no stat points of its own.

## A schema for your wallet

Set has no wallet. An append-only ledger keeps an economy auditable:

```ts
type OrbLedgerEntry = {
  id: string;
  ownerId: string;
  delta: number;                           // positive for income, negative for spend
  reason: 'drop' | 'exchange' | 'craft' | 'boost' | 'salvage' | 'grant';   // 'exchange': your own resources converted to orbs
  request: string;                         // "/api/craft?orbs=125&seed=11"
  seed: number | null;
  contentVersion: string;
  response: unknown;                       // the full response, so the entry can be audited later
  at: string;
};
// balance = the sum of delta. Charge the effective `orbs` a lottery response reports, never the amount requested; a guarantee costs its grade's `craftCost`.
```

## Building a progression loop

1. **Roll a character** ([Rolling a character](https://set.world/skills/rolling-a-character)). It arrives with 15 items.
2. **Fight to earn orbs.** Your combat rules decide the fight; `/api/drop` prices each kill.
3. **Craft.** Choose a guarantee or a lottery. Equipment raises no stat by default; `equipmentBonus=1` opts in to Set's coarse bonus ([Slots](https://set.world/skills/equipment-slots)), and anything more is your game's meaning.
4. **Scale difficulty.** Enemy stats and class set drop prices; you set pacing.
5. **Salvage** what is discarded, if your game allows it.
6. **End game.** A Grade S guarantee costs 15,625 orbs; what a 15,625-orb lottery reaches is the last row of the odds table above.

### Pacing crafts across levels

The craft curve sees orbs, not levels. To keep endgame gear rare mid-game, cap the spend per craft by level and offer only guarantees that fit under the cap. For a 60-level game:

```text
maxSpend(L) = min(15625, round(15625 × (L / 60)²))     434 at L10, 3,906 at L30, 15,625 at L60
guarantee T allowed when craftCost(T) ≤ maxSpend(L)       A from L27, S only at L60
```

Steady crafting across all 15 items keeps Grade S an endgame story on its own. The per-level cap closes the one shortcut: hoarding a mid-game purse into one large craft or guarantee. The curve and the cap are yours to tune; the prices and odds above are not.

Every formula is per entity, so one hero and an army use the same prices. Before variance, 40 veterans with an average stat of 12 pay `40 × 9 × 3 = 1,080` orbs.

## Related

The derivations and the sink proof: [Algorithms](https://set.world/skills/algorithms), §3 and §8. What crafted gear does in Set's own game: [Derived stats](https://set.world/skills/anima-derived-stats).
