# Cave biomes (design 6.2 and 24.12; read by src/world/terrain/CaveBiomes.cpp). One row per CaveBiome value,
# keyed by its C++ name. Which planets hold a biome stays in code; its bands, weight and look are here.
# See README.md in this folder for the format.
#
#   name              shown in the game
#   ambience          the sound bed under assets/audio
#   bands             the depth bands it turns up in: shallow, middle, deep
#   weight            its share against the other biomes of its band
#   crystal weight    the weight instead on crystal worlds (optional)
#
# The look: each a material source, and a share of the cells it covers (optional; none and 0 when
# left out, except drip, which is rock with a share of 0.04).
#
#   wall, ceiling, floor   the rock face lining the cave
#   spot                   blotches on that face
#   drip                   stalactites, stalagmites and columns, as a share of floor and ceiling cells
#   decor, glow            floor growths, plain and glowing
#   hang                   hangs from the ceiling
#   liquid                 pools (pool share) and falls (fall share)
#
# A source is one of:
#   none
#   rock, crystals                  the planet's own
#   cave glow                       the planet's glowing cave floor prop
#   glowcaps                        that prop if it is glowcaps, else glowcaps on living worlds
#   water, acid, lava, methane      the planet's liquid (none if it has none)
#   wall, floor, spot               the same material as that field of this row
#   Type[, count[, value]]          a block type in the planet's palette: variants, and a value shift
#   alien Type[, count[, up]]       a block type tinted by the planet's alien tissue; up joins it upward
#
# Sources are made in the order wall, ceiling, floor, spot, drip, decor, hang, glow, liquid.

[cave Plain]
name = Caves
ambience = amb/cave
bands = shallow, middle, deep
weight = 1
decor = crystals
decor share = 0.004
glow = cave glow
glow share = 0.012

[cave RootCaves]
name = Root caves
ambience = amb/cave
bands = shallow
weight = 1.5
wall = Dirt, 2
ceiling = wall
floor = Moss, 2
spot = Moss, 1, -0.1
spot share = 0.3
drip = none
hang = Vine, 2, -0.15
hang share = 0.08
glow = glowcaps
glow share = 0.006

[cave FungalForest]
name = Fungal forest
ambience = amb/fungal
bands = shallow, middle
weight = 1.2
floor = Moss, 2, -0.1
spot = Lichen, 2
spot share = 0.3
drip share = 0.015
decor = Puffball
decor share = 0.03
glow = glowcaps
glow share = 0.05

[cave CrystalCaverns]
name = Crystal caverns
ambience = amb/crystal
bands = middle, deep
weight = 0.5
crystal weight = 1.6
spot = Marble
spot share = 0.15
drip = crystals
drip share = 0.05
decor = crystals
decor share = 0.03

[cave FloodedCaves]
name = Flooded caves
ambience = amb/water_lap
bands = shallow, middle
weight = 1
wall = Limestone, 2
ceiling = wall
floor = Limestone, 1, -0.1
# flowstone
spot = Limestone, 1, 0.25
spot share = 0.3
drip = spot
drip share = 0.07
liquid = water
pool share = 0.12
fall share = 0.004

[cave IceCaves]
name = Ice caves
ambience = amb/cave
bands = shallow, middle, deep
weight = 2
wall = PackedIce, 2
ceiling = wall
floor = Permafrost, 2
spot = Snow
spot share = 0.2
drip = Ice
drip share = 0.06
decor = IceSpike
decor share = 0.02

[cave LavaTubes]
name = Lava tubes
ambience = amb/volcanic
bands = middle, deep
weight = 2
wall = Basalt, 2
ceiling = wall
floor = Obsidian
spot = Sulfur
spot share = 0.12
drip = wall
drip share = 0.02
glow = MagmaRock
glow share = 0.01
liquid = lava
pool share = 0.05

[cave ToxicGrottos]
name = Toxic grottos
ambience = amb/acid
bands = shallow, middle, deep
weight = 1.5
floor = Sulfur, 2
spot = Sulfur, 1, 0.15
spot share = 0.35
liquid = acid
pool share = 0.06

[cave MethaneCaverns]
name = Methane caverns
ambience = amb/cave
bands = shallow, middle, deep
weight = 2
wall = Permafrost, 2
ceiling = wall
floor = Snow
spot = PackedIce
spot share = 0.2
drip = Ice
drip share = 0.03
liquid = methane
pool share = 0.08

[cave SaltCaverns]
name = Salt caverns
ambience = amb/cave
bands = shallow, middle
weight = 1.5
wall = Sandstone, 2
ceiling = wall
floor = SaltCrust, 2
spot = floor
spot share = 0.3
drip = SaltCrust, 1, 0.2
drip share = 0.03
decor = Pebbles
decor share = 0.03

# Chitin, membrane and biomass all glow, so whole walls of them would light every chunk: the lining
# is tissue-tinted peat and mud, spotted with glowing chitin.
[cave AlienHollows]
name = Alien hollows
ambience = amb/fungal
bands = shallow, middle, deep
weight = 1.5
wall = alien Peat, 2
ceiling = wall
floor = alien Mud, 2
spot = alien Chitin, 1
spot share = 0.08
drip = none
hang = alien Bulb, 1, up
hang share = 0.03
glow = alien Feelers, 2
glow share = 0.03

[cave FossilBeds]
name = Fossil beds
ambience = amb/cave
bands = middle, deep
weight = 0.4
spot = Bone
spot share = 0.12
decor = Pebbles
decor share = 0.02
