# Ore by depth, and ore veins (design 5.1 and 24.12; read by src/world/blocks/Materials.cpp, used by oreAt in
# src/world/terrain/Terrain.cpp). Ore sits in pockets: one possible pocket per 6 m cell of rock, likelier
# within a few metres of a cave. Bands run from the surface down, in file order.
#
#   name      shown on the visor
#   top       metres below the surface where the band starts; it runs down to the next band's
#             top, the last to bedrock. Above the first band there is no ore.
#   odds      the band's pocket odds, times the base (5% of cells, 22% beside caves)
#   size      the band's pocket radius, times the base (1.2 to 2.1 m)
#   ores      KIND WEIGHT, ...: what a pocket is, by weight. Kinds: iron, copper, ilmenite (the
#             world's metal ores: iron and copper on stone worlds, iron and ilmenite on basalt
#             ones, so a kind the world hasn't got is left out), sulfur, crystal (a geode of the
#             world's crystal) and rare_earths.
#
# [ore-rules World]
#   sulfur volcanism   sulfur pockets only on worlds at least this volcanic (0 to 1)
#
# [ore-veins World] (design 5.1, factory feel part 5): long bodies of mostly one ore running deep,
# mixed with the rock round them, at most one in each cell of a face's grid. A vein starts `top`
# metres under the surface and runs down `length`, moving sideways `slant` metres for each metre
# down (a way of its own) and drifting `wander` metres round that line, so a drill rig in one spot
# does well for a while and then the vein wanders out from under it. Over its top, up to the
# surface, a thin crust of the same ore shows where it is. Ranges are `low` to `high`, picked per
# vein. Odds and weights go from `lush` (the most living worlds) to `hostile` (dead ones) by how
# much life a world has.
#   cell               metres: the grid veins are placed in
#   odds lush/hostile  a cell's chance of a vein
#   top                metres under the surface its body starts
#   length             metres it runs down
#   radius             metres across its body, from its middle
#   slant              metres sideways for each metre down
#   wander, wander scale  metres it drifts round that line, and the metres down of one drift
#   fill               share of its body that is ore; the rest is the rock round it
#   crust              share of the cells over its top, to the surface, that are ore
#   ores               KIND LUSH HOSTILE, ...: what a vein is, by weight on a living world and a
#                      dead one. Kinds: iron, copper, ilmenite (as for pockets: a kind the world
#                      hasn't got is left out), cobalt and rare_earths.
#
# Part of generation version 1: changing a value changes the terrain (see README.md).

[ore-rules World]
sulfur volcanism = 0.35

[ore-veins World]
cell = 256
odds lush = 0.06
odds hostile = 0.45
top = 10
length low = 120
length high = 220
radius low = 3
radius high = 5
slant low = 0.04
slant high = 0.1
wander = 1
wander scale = 80
fill = 0.75
crust = 0.25
ores = iron 3 1, copper 2 0.5, ilmenite 2 1, cobalt 0.2 3, rare_earths 0.3 3

[ore-band Shallow]
name = Shallow
top = 5
odds = 1
size = 1
ores = iron 3, copper 2, sulfur 1

[ore-band Middle]
name = Middle
top = 60
odds = 1.3
size = 1.15
ores = iron 3, copper 2, ilmenite 3, crystal 1

[ore-band Deep]
name = Deep
top = 150
odds = 1
size = 1.3
ores = rare_earths 3, crystal 2
