Skip to main content
forge-progression tracks how a character advances: experience, levels off a configurable curve, unspent attribute points, and unlocks (refcounted flags other systems use to gate content like recipes or abilities).

Concepts

  • XP & levels. GainXP adds experience; crossing a threshold levels up and awards points. The curve is floor(Base * (L-1)^Factor).
  • Unlocks. A source-scoped, refcounted set. forge-crafting knowledge and ability learning ride on unlocks, so the same id can be granted by several sources and only revoked when the last releases it.

Exports

Events

Configuration

forge-progression ships no content (the curve and points are tunables, not data). Unlocks and the things they gate are defined by the systems that use them.