dmn 0.0.2

CLI and library for DMs and other players of Advanced Dungeons & Dragons (AD&D)
Documentation
ua_magic:
  formula: d100
  rows:
    - roll: 1-10
      steps:
        - table: magic_maps
    - roll: 11-100
      steps:
        - table: ua_magic_items

ua_magic_items:
  formula: d100
  rows:
    - roll: 1-20
      steps:
        - text: "Potion"
        - table: ua_potions
    - roll: 21-35
      steps:
        - text: "Scroll"
        - table: ua_scrolls
    - roll: 36-40
      steps:
        - text: "Ring"
        - table: ua_rings
    - roll: 41-45
      steps:
        - text: "Rod/Staff/Wand"
        - table: ua_rod_staff_wand
    - roll: 46-60
      steps:
        - text: "Misc. Magic"
        - table: ua_misc_magic
    - roll: 61-75
      steps:
        - text: "Armor/Shield"
        - table: ua_armor_shields
    - roll: 76-86
      steps:
        - text: "Sword"
        - table: ua_swords
    - roll: 87-100
      steps:
        - text: "Misc. Weapon"
        - table: ua_misc_weapons

ua_potions:
  formula: d100
  rows:
    - roll: 1-65
      steps:
        - text: "Table 1"
    - roll: 66-100
      steps:
        - text: "Table 2"

ua_scrolls:
  formula: d100
  rows:
    - roll: 1-85
      steps:
        - text: "Table 1"
    - roll: 86-100
      steps:
        - text: "Table 2"

ua_rings:
  formula: d100
  rows:
    - roll: 1-67
      steps:
        - text: "Table 1"
    - roll: 68-100
      steps:
        - text: "Table 2"

ua_rod_staff_wand:
  formula: d100
  rows:
    - roll: 1-40
      steps:
        - text: "Table 1"
    - roll: 41-100
      steps:
        - text: "Table 2"

ua_misc_magic:
  formula: d100
  rows:
    - roll: 1-14
      steps:
        - text: "Table 1"
    - roll: 15-28
      steps:
        - text: "Table 2"
    - roll: 29-42
      steps:
        - text: "Table 3"
    - roll: 43-56
      steps:
        - text: "Table 4"
    - roll: 57-70
      steps:
        - text: "Table 5"
    - roll: 71-85
      steps:
        - text: "Table 6"
    - roll: 86-100
      steps:
        - text: "Table 7"

ua_armor_shields:
  formula: d100
  rows:
    - roll: 1-50
      steps:
        - text: "Table 1"
    - roll: 51-100
      steps:
        - text: "Table 2"

ua_swords:
  formula: d100
  rows:
    - roll: 1-95
      steps:
        - text: "Table 1"
        - table: sword_type
        - table: sword_intelligence
    - roll: 96-100
      steps:
        - text: "Table 2"
        - table: sword_type
        - table: sword_intelligence

ua_misc_weapons:
  formula: d100
  rows:
    - roll: 1-50
      steps:
        - text: "Table 1"
    - roll: 51-100
      steps:
        - text: "Table 2"