---
config:
  layout: elk
  theme: base
  themeCSS: ".cluster-label div { background: #fafbfc; }"
  flowchart:
    htmlLabels: true
    useMaxWidth: false
    curve: linear
    nodeSpacing: 30
    rankSpacing: 55
---
flowchart TB
%% Geography, resources, water and weather | Dwarf Fortress 53.16 | checked 2026-09-19
%% Node sources and edge claims: ../SOURCE-INDEX.md and ../systems-data.json
classDef state fill:#edf4fb,stroke:#557795,color:#152b40;
classDef process fill:#eaf5f0,stroke:#46795f,color:#173c29;
classDef control fill:#f0edfb,stroke:#79619b,color:#332552;
classDef report fill:#f0f1f3,stroke:#7a828a,color:#333b43,stroke-dasharray:3 3;
classDef inferred fill:#fff3da,stroke:#ad6900,color:#633d00,stroke-width:2px,stroke-dasharray:6 4;
classDef uncertain fill:#fff0f1,stroke:#b34150,color:#712631,stroke-width:2px,stroke-dasharray:2 4;
  subgraph sg0["World geography"]
    W_PARAMS{{"Generation parameters and<br/>seeds"}}:::control
    W_FIELDS["Elevation, rain, drainage and<br/>temperature"]:::state
    W_BIOME["Biome distribution"]:::state
    W_GEO["Soil and rock layers"]:::state
    W_MINERAL["Ore, gems, flux, coal, sand<br/>and clay"]:::state
    W_ENV["Local environment"]:::state
  end
  subgraph sg1["Weather and water"]
    W_WEATHER("Rain, snow and wind"):::process
    W_TEMP["Climate and seasonal<br/>temperature"]:::state
    W_WATER["Rivers, pools and usable<br/>water"]:::state
    W_FREEZE("Freezing, thawing and<br/>evaporation"):::process
    W_AQUIFER["Light and heavy aquifers"]:::state
    W_LEAK("Aquifer leakage"):::process
    W_SEAL{{"Seal walls or drain with<br/>pumps"}}:::control
    W_POWER["Local wind strength"]:::state
  end
  subgraph sg2["Connections to other panels"]
    W_PLANTS["Wild vegetation and fungi"]:::state
    W_WILDLIFE["Regional wildlife populations"]:::state
    J_WORK("Job execution"):::process
    B_WIND("Windmill generation"):::process
  end
  subgraph sg3["Cross-system ports"]
    C_HEALTH["Injuries and illness"]:::state
    P_THOUGHT["Experienced events / thoughts"]:::state
    A_ACTION{{"Adventurer actions"}}:::control
  end
  W_PARAMS -->|"sets ranges and generates<br/>fields"| W_FIELDS
  %% edge 1: WA01
  W_FIELDS -->|"determines biome types"| W_BIOME
  %% edge 2: WA10
  W_PARAMS -->|"sets mineral frequency"| W_MINERAL
  %% edge 3: WA01
  W_GEO -->|"controls available deposits"| W_MINERAL
  %% edge 4: WA14
  W_BIOME -->|"selects local layer sequence"| W_GEO
  %% edge 5: WA10
  W_BIOME -->|"permits native plant species"| W_PLANTS
  %% edge 6: WA10
  W_BIOME -->|"permits native animal species"| W_WILDLIFE
  %% edge 7: WA10
  W_BIOME -->|"sets local habitats and<br/>resources"| W_ENV
  %% edge 8: WA10
  W_FIELDS -->|"sets climate range"| W_TEMP
  %% edge 9: WA12
  W_TEMP -->|"changes water state<br/>seasonally"| W_FREEZE
  %% edge 10: WA12
  W_FREEZE -->|"changes liquid availability"| W_WATER
  %% edge 11: WA12
  W_FREEZE -->|"ice can trap or kill<br/>occupants"| C_HEALTH
  %% edge 12: WA13
  W_TEMP -->|"extremes damage tissue"| C_HEALTH
  %% edge 13: WA12
  W_WEATHER -->|"rain refills murky pools"| W_WATER
  %% edge 14: WA13
  W_WEATHER -->|"exposure generates weather<br/>thoughts"| P_THOUGHT
  %% edge 15: WA13
  W_WEATHER -->|"determines available wind"| W_POWER
  %% edge 16: WA13
  W_AQUIFER -->|"exposure releases groundwater"| W_LEAK
  %% edge 17: WA15
  W_LEAK -->|"adds water indefinitely"| W_WATER
  %% edge 18: WA15
  W_LEAK -->|"flooding interrupts mining<br/>and building"| J_WORK
  %% edge 19: WA15
  W_SEAL -->|"blocks or drains inflow"| W_LEAK
  %% edge 20: WA15
  W_ENV -->|"constrains travel and supply<br/>access"| A_ACTION
  %% edge 21: WA18
  W_WATER -->|"provides drinkable sources<br/>where fresh"| A_ACTION
  %% edge 22: WA18
  W_POWER -->|"wind drives generation"| B_WIND
  %% edge 23: WA13, R_WIND
  click W_PARAMS "https://dwarffortresswiki.org/index.php/World_generation" "W_PARAMS: World generation" _blank
  click W_FIELDS "https://dwarffortresswiki.org/index.php/World_generation" "W_FIELDS: World generation" _blank
  click W_BIOME "https://dwarffortresswiki.org/index.php/Biome" "W_BIOME: Biome" _blank
  click W_GEO "https://dwarffortresswiki.org/index.php/Stone_layers" "W_GEO: Stone layers" _blank
  click W_MINERAL "https://dwarffortresswiki.org/index.php/Stone_layers" "W_MINERAL: Stone layers" _blank
  click W_ENV "https://dwarffortresswiki.org/index.php/Biome" "W_ENV: Biome" _blank
  click W_WEATHER "https://dwarffortresswiki.org/index.php/Weather" "W_WEATHER: Weather" _blank
  click W_TEMP "https://dwarffortresswiki.org/index.php/Climate" "W_TEMP: Climate" _blank
  click W_WATER "https://dwarffortresswiki.org/index.php/Climate" "W_WATER: Climate" _blank
  click W_FREEZE "https://dwarffortresswiki.org/index.php/Climate" "W_FREEZE: Climate" _blank
  click W_AQUIFER "https://dwarffortresswiki.org/index.php/Aquifer" "W_AQUIFER: Aquifer" _blank
  click W_LEAK "https://dwarffortresswiki.org/index.php/Aquifer" "W_LEAK: Aquifer" _blank
  click W_SEAL "https://dwarffortresswiki.org/index.php/Aquifer" "W_SEAL: Aquifer" _blank
  click W_POWER "https://dwarffortresswiki.org/index.php/Weather" "W_POWER: Weather" _blank
  click W_PLANTS "https://dwarffortresswiki.org/index.php/Biome" "W_PLANTS: Biome" _blank
  click W_WILDLIFE "https://dwarffortresswiki.org/index.php/Biome" "W_WILDLIFE: Biome" _blank
  click C_HEALTH "https://dwarffortresswiki.org/index.php/Climate" "C_HEALTH: Climate" _blank
  click P_THOUGHT "https://dwarffortresswiki.org/index.php/Weather" "P_THOUGHT: Weather" _blank
  click J_WORK "https://dwarffortresswiki.org/index.php/Aquifer" "J_WORK: Aquifer" _blank
  click A_ACTION "https://dwarffortresswiki.org/index.php/Adventurer_mode" "A_ACTION: Adventurer mode" _blank
  click B_WIND "https://dwarffortresswiki.org/index.php/Weather" "B_WIND: Weather" _blank
