# The galaxy (design 21.1; read by src/world/data/GalaxyTables.cpp, grown by
# src/model/universe/Galaxy.cpp). It follows docs/lore/make_map.py: star systems scattered round a
# core, each nation grown out from its seeds along the gates, the edge of the galaxy frontier or
# uninhabited, the trunk network of long gates, capitals and the Syndicate. The shape always holds;
# which star goes where comes from the galaxy seed.
#
# Places on the map are polar: a distance from the centre (galaxy units, the map's pixels at 960
# across) and a bearing in degrees, 0 at the top and turning clockwise, as the lore map has them.
#
#   seed            the galaxy seed a first playthrough uses (new game+ gets one of its own)
#   radius          how far the populated galaxy reaches
#   stars           how many star systems are scattered inside it
#   gap             the closest two stars may be, at the centre and at the edge (it grows outward)
#   void            an empty patch: distance, bearing, radius
#   neighbours      the longest step between neighbouring stars (territories grow along these)
#   gate reach      the longest local gate (neighbours further apart have none between them)
#   edge            stars further out than this are at the galaxy's edge: frontier or uninhabited
#   outer           a wider band of uninhabited stars past the edge, out to this far
#   outer stars     how many, at least `outer gap` apart
#   start           where the start system is: the Republic Frontier's outer end
#   start safe      no system this many gate jumps from the start or fewer is contested, so the
#                   way out of the start never crosses a front
#   core systems    the Core Republic's systems nearest the centre that make the closed core
#   reaches         the region that holds the unclaimed edge, in two parts
#   keep edge       the nations whose territory goes on to the galaxy's edge
#   edge sector     a nation's stretch of the edge: nation, from bearing, to bearing
#   no settlers     nations that suffer no settlers beside them: unclaimed systems there have no gates
#   reaches frontier  nations whose systems beside the Reaches are frontier (their frontier)
#   reaches odds    the odds an unclaimed system at the edge is frontier (else uninhabited)
#   syndicate       where the Syndicate's systems are centred, and how many it rules
#   hub ring        a ring of trunk hubs: its distance and the bearings of its hubs
#   routes          trunk routes from the outer ring to the last settled systems: distance, bearings
#   capital reach   a capital is within this many gate jumps of a trunk hub
#   trunk size      a trunk gate's vortex against a local one's
#   front           two nations whose border is a front: the systems either side are contested

[galaxy Layout]
seed = 21
radius = 420
stars = 330
gap = 21, 36
void = 300, 120, 38
void = 255, 300, 30
void = 350, 25, 28
neighbours = 75
gate reach = 58
edge = 345
outer = 462
outer stars = 45
outer gap = 36
start = 395, 210
start safe = 4
core systems = 12
reaches = Reaches
keep edge = Ascendancy, Dominion, Frontier, Hives
edge sector = Hives, 98, 128
no settlers = Ascendancy, Dominion
reaches frontier = Concord
reaches odds = 0.55
syndicate = 325, 172, 5
hub ring = 105; 20, 110, 200, 290
hub ring = 240; 5, 60, 115, 165, 215, 265, 320
routes = 320; 35, 90, 140, 190, 255, 340
capital reach = 3
trunk size = 1.8
front = Republic, Ascendancy
front = Republic, Dominion

# The nations (lore.md). In this order: the order is part of the data (saves and the network keep a
# nation by its place in it). 37a adds their organizations and how they get on.
#
#   name        as shown
#   short       in tight places
#   colour      its tint on the galaxy chart (sRGB 0..1)
#   species     whose name parts its systems are named from (species.txt)
#   style       its kit's station style (stations.txt): its stations and gate posts are built in it
#   authority   who holds its settled systems' gates
#   company     who holds the gates of its systems a company runs
#   frontier    who holds the gates of its frontier systems
#   capital     whether it has a capital (the Reaches aren't organized enough for one)
#   charts      who sells charts of its systems at its survey offices (none: they aren't sold)

[nation Republic]
name = Core Republic
short = Republic
colour = 0.79, 0.60, 0.18
species = Human
style = Republic
authority = Republic Gate Authority
company = Halden Ore Consolidated
frontier = Frontier charter company
capital = yes
charts = Republic Survey Bureau

[nation Ascendancy]
name = The Ascendancy
short = Ascendancy
colour = 0.36, 0.19, 0.52
species = Human
style = Ascendancy
authority = Throne gate wardens
company = The Forge Levy
frontier = Ascendancy march wardens
capital = yes

[nation Hives]
name = Tikkari Hives
short = Hives
colour = 0.17, 0.54, 0.56
species = Tikkari
style = Hive
authority = Warden caste
company = Delver caste
frontier = Seeker caste
capital = yes

[nation Concord]
name = Sethra Concord
short = Concord
colour = 0.80, 0.50, 0.86
species = Sethra
style = Bazaar
authority = House Vessa
company = House Kessith
frontier = House Siruth
capital = yes
charts = House Siruth

[nation Dominion]
name = Oruk Dominion
short = Dominion
colour = 0.61, 0.23, 0.18
species = Oruk
style = Dominion
authority = The Tollkeepers
company = The Stonebreakers
frontier = The Pathfinders
capital = yes

[nation Reaches]
name = Free Reaches
short = Reaches
colour = 0.18, 0.49, 0.31
species = Human
style = Reaches
authority = Nobody
company = A miners' co-op
frontier = Nobody
capital = no
cities = no

# Regions the nations grow from: each a nation's capitals and colonies (distance, bearing; split by
# |), and what a gate jump costs it (lower spreads further). The Republic grows from two: its core
# and the Frontier it pushed out to the rim.
#
#   nation      whose systems it grows
#   seeds       where it grows from
#   spread      the cost of a jump, times its length
#   inward      jumps to stars nearer the centre than this cost `times` as much: distance, times
#   outward     past this distance a jump costs more, by one more for each `per`: distance, per

[region Core]
nation = Republic
seeds = 0, 0 | 90, 40 | 90, 200 | 95, 300
spread = 1.0
outward = 165, 45

[region Frontier]
nation = Republic
seeds = 170, 210 | 250, 209 | 330, 211 | 395, 210
spread = 1.15
inward = 120, 4

[region Dominion]
nation = Dominion
seeds = 230, 335 | 250, 0 | 330, 320
spread = 1.05

[region Hives]
nation = Hives
seeds = 220, 65 | 300, 40 | 260, 105
spread = 1.05

[region Ascendancy]
nation = Ascendancy
seeds = 320, 255 | 360, 240 | 300, 280 | 300, 232
spread = 0.85

[region Concord]
nation = Concord
seeds = 230, 150 | 255, 172
spread = 1.25

[region Reaches]
nation = Reaches
seeds = 395, 70 | 395, 105 | 390, 140 | 395, 175 | 385, 195 | 330, 185
spread = 0.95
inward = 285, 3

# Who holds the Syndicate's systems' gates.
[syndicate Holder]
name = The Syndicate
style = Den
