# QualityProfile

> Kinbarrow modding reference — content tree `b2f73c2ab65ff925`, version `0.2.0+main.a22009f4c`.

The seven-tier quality ladder for ONE class of item (`tables/quality_profiles.ron`) — OURS, not the SRD's, which prices a longsword but never says what a FINE one is. `tiers` carries all seven in ladder order (Trash → Legendary), so every item of the class reads its modifiers from the same row and no tier can be quietly omitted.

**Note on syntax:** these files are RON, not JSON. The shapes below are exact,
but punctuation follows RON — read a real `data/*.ron` file alongside.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `class` | `string` | required | The item class this profile covers ("weapon"/"armor"/"tool"/"lock"/"good"). |
| `tiers` | `TierEffects[]` | required | All seven tier effects, in ladder order. |

## Nested shapes

<a id="quality-tier"></a>

### QualityTier

The seven quality tiers (semantic — engine code branches on it).

<a id="quality-tier--trash"></a>

#### QualityTier::Trash

Select the trash behavior.

<a id="quality-tier--poor"></a>

#### QualityTier::Poor

Select the poor behavior.

<a id="quality-tier--normal"></a>

#### QualityTier::Normal

Select the normal behavior.

<a id="quality-tier--good"></a>

#### QualityTier::Good

Select the good behavior.

<a id="quality-tier--excellent"></a>

#### QualityTier::Excellent

Select the excellent behavior.

<a id="quality-tier--masterwork"></a>

#### QualityTier::Masterwork

Select the masterwork behavior.

<a id="quality-tier--legendary"></a>

#### QualityTier::Legendary

Select the legendary behavior.

<a id="tier-effects"></a>

### TierEffects

One rung of the seven-tier quality ladder: what an item of this tier is worth and how it performs, as deltas off the Normal baseline. A class-wide row in a `QualityProfile`, or a single item's override of one.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ac_delta` | `integer` | optional | AC delta at this tier (armor); absent = n/a. |
| `attack_delta` | `integer` | optional | Attack-roll delta at this tier (weapons); absent = n/a. |
| `damage_delta` | `integer` | optional | Damage delta at this tier (weapons); absent = n/a. |
| `dc_delta` | `integer` | optional | Lock DC delta vs the Normal DC 10 base at this tier (locks); absent = n/a. |
| `integrity_factor` | `number` | optional | Max-integrity multiplier (the `structure` class) — defaulted so the arms/tool/lock profiles never spell it. |
| `tier` | `QualityTier` | required | The quality tier this row describes. |
| `value_factor` | `double` | required | Worth multiplier at this tier (every class). |
| `work_factor` | `number` | optional | Work-output multiplier at this tier (tools); absent = n/a. |


