Skip to main content

Module monster

Module monster 

Source
Expand description

Monsters: full stat blocks, kept in a shared library (the SRD) and per campaign (homebrew), and turned into combatants when they join a fight.

A stat block is plain JSON, like a character sheet, so monsters can be written by hand or converted from elsewhere (see tools/).

Structs§

Feature
A trait, action, reaction or legendary action.
HitDice
Hit dice: countdsides plus bonus.
Monster
A stored monster: server-assigned metadata plus the stat block.
MonsterSheet
A full stat block. Everything but the name has a default, so a file needs only what the monster actually has.
MonsterSummary
For listing and completing names.

Enums§

MonsterError
Why a stat block isn’t valid.

Functions§

challenge_value
“1/4” is 0.25, “5” is 5; anything else sorts first.