{

  "tables": {
    "dice_notation": {
      "columns": [
        "die",
        "min",
        "max"
      ],
      "rows": [
        [
          "d4",
          1,
          4
        ],
        [
          "d6",
          1,
          6
        ],
        [
          "d8",
          1,
          8
        ],
        [
          "d10",
          1,
          10
        ],
        [
          "d20",
          1,
          20
        ]
      ]
    },
    "tile_type_weights": {
      "columns": [
        "tile_type",
        "weight",
        "events"
      ],
      "rows": [
        [
          "normal",
          35,
          [
            "flavor_text",
            "minor_discovery"
          ]
        ],
        [
          "battle",
          20,
          [
            "enemy_encounter"
          ]
        ],
        [
          "treasure",
          10,
          [
            "loot_chest",
            "hidden_cache"
          ]
        ],
        [
          "choice",
          15,
          [
            "narrative_choice"
          ]
        ],
        [
          "merchant",
          5,
          [
            "merchant"
          ]
        ],
        [
          "rest",
          5,
          [
            "camp"
          ]
        ],
        [
          "trap",
          7,
          [
            "trap"
          ]
        ],
        [
          "quest",
          3,
          [
            "quest_event"
          ]
        ]
      ]
    },
    "rarity_weights": {
      "columns": [
        "rarity",
        "weight",
        "multiplier"
      ],
      "rows": [
        [
          "common",
          55,
          1.0
        ],
        [
          "uncommon",
          25,
          1.25
        ],
        [
          "rare",
          12,
          1.6
        ],
        [
          "epic",
          6,
          2.1
        ],
        [
          "legendary",
          2,
          3.0
        ]
      ]
    }
  },
  "movement_roll": {
    "formula": "1d6",
    "modifiers": [
      {
        "condition": {
          "player.status_effects": {
            "$contains": "haste"
          }
        },
        "effect": {
          "bonus": 1
        }
      },
      {
        "condition": {
          "player.status_effects": {
            "$contains": "crippled"
          }
        },
        "effect": {
          "penalty": 1
        }
      }
    ],
    "minimum_movement": 1
  },
  "skill_check": {
    "formula": "1d20 + stat",
    "result_ranges": [
      {
        "min": 1,
        "max": 9,
        "result": "failure"
      },
      {
        "min": 10,
        "max": 14,
        "result": "partial_success"
      },
      {
        "min": 15,
        "max": 19,
        "result": "success"
      },
      {
        "min": 20,
        "max": 999,
        "result": "critical_success"
      }
    ]
  }
}