dmn 0.0.2

CLI and library for DMs and other players of Advanced Dungeons & Dragons (AD&D)
Documentation
henchman_race:
  formula: d100
  rows:
    - roll: 1-80
      steps:
        - text: "Human"
    - roll: 81-100
      steps:
        - table: henchman_nonhuman_race
henchman_nonhuman_race:
  formula: d100
  rows:
    - roll: 1-25
      steps:
        - text: "Dwarf"
    - roll: 26-50
      steps:
        - text: "Elf"
    - roll: 51-60
      steps:
        - text: "Gnome"
    - roll: 61-85
      steps:
        - text: "Half-elf"
    - roll: 86-95
      steps:
        - text: "Halfling"
    - roll: 96-100
      steps:
        - text: "Half-orc"

henchman_class:
  formula: d100
  rows:
    - roll: 1-20
      steps:
        - table: henchman_cleric_class
    - roll: 21-64
      steps:
        - table: henchman_fighter_class
    - roll: 65-84
      steps:
        - table: henchman_magic-user_class
    - roll: 85-99
      steps:
        - table: henchman_thief_class
    - roll: 100
      steps:
        - text: "Monk"


henchman_cleric_class:
  formula: d6
  rows:
    - roll: 1
      steps:
        - class: druid
    - roll: 2-6
      steps:
        - class: cleric

henchman_fighter_class:
  formula: d10
  rows:
    - roll: 1
      steps:
        - class: ranger
    - roll: 2
      steps:
        - class: paladin
    - roll: 3-10
      steps:
        - class: fighter

henchman_magic-user_class:
  formula: d6
  rows:
    - roll: 1
      steps:
        - class: illusionist
    - roll: 2-6
      steps:
        - class: magic-user

henchman_thief_class:
  formula: d6
  rows:
    - roll: 1
      steps:
        - class: assassin
    - roll: 2-6
      steps:
        - class: thief