Daggerheart

@randsum/daggerheart

Daggerheart RPG system support with hope and fear dice mechanics.

Overview

@randsum/daggerheart implements the Daggerheart RPG system, featuring the unique hope and fear dice mechanics. This package provides all the tools needed to run Daggerheart games, including character creation, combat resolution, and advancement tracking.

Installation

Installation

npm install @randsum/daggerheart
# or
bun add @randsum/daggerheart

Examples

Basic Usage

import { roll } from "@randsum/daggerheart"

// Basic roll with modifier
roll({ modifier: 5 })

// Roll with advantage
roll({
  modifier: 5,
  rollingWith: "Advantage"
})

// Roll with disadvantage
roll({
  modifier: -2,
  rollingWith: "Disadvantage"
})