# The station's market (design 15.1, static shops first). Read at startup by the game and the
# server (src/model/items/Market.cpp). Prices never move and stock never runs out.
#
# [market Station]   sell share: what a shop pays for an item, as a share of its price (so buying
#                    and selling back always loses money); survey data: what the survey office
#                    pays for a world's survey data, once per world per player; repair: credits
#                    per point of hull damage; refuel: credits per unit of fuel; forecast: a
#                    world's weather forecast at the survey office; chart: a chart of a nation's
#                    systems there (step 23j); oxygen: what the dockmaster
#                    charges for a whole oxygen tank's air (a part-full one pays its share); rescue: what the dockmaster or
#                    an outpost's director pays for a crashed pod's survivor handed over (step 30c).
# [prices GROUP]     ITEM = PRICE: an item key (its name in lower case with '_' for spaces) or a
#                    resource (stone, wood, sand, plant, ice, crystal, iron_ore, copper_ore,
#                    ilmenite, rare_earths, cobalt), which prices every item that counts as it. An item's own key wins.
#                    Items with no price can't be traded.
# [horn Worlds]      WORLD CLASS = N: a horn's grade is its world's N times its species' temper's
# [horn Tempers]     N (both 1 if unlisted). It's set when the horn drops and sells at the horn
#                    price times the grade (design 10.6: a hostile horn from a toxic world is worth
#                    a lot). World classes are keys of the planet classes (makeProfile).
# [shop KIND]        a shop by its facility kind (stations.txt): sells (item keys, listed in this
#                    order, `forecasts` for a forecast of each world, `charts` for a chart of the
#                    nation's systems where it has a chart seller (galaxy.txt), `world_ores` for one of
#                    each ore of the counter's own world (a structure's counter), `nation_dress` for its
#                    nation's own dress (nations.txt's sells), `schematic:KEY` for a
#                    recipe's schematic, `blueprint:NAME` for the blueprint of a layout in
#                    assets/data/layouts) and buys (keys or resources,
#                    `any` for anything priced, `survey_data`).

[market Station]
sell share = 0.5
survey data = 400
repair = 1
refuel = 1
forecast = 25
chart = 300
oxygen = 6
rescue = 300

[prices Resources]
stone = 1
sand = 1
wood = 2
plant = 1
ice = 2
sulfur = 5
crystal = 8
iron_ore = 4
copper_ore = 6
ilmenite = 9
rare_earths = 20
cobalt = 30

[prices Parts]
iron_plate = 10
copper_plate = 14
titanium_plate = 24
copper_wire = 6
iron_gear = 12
glass_pane = 6
woven_fiber = 5
circuit_board = 30
advanced_circuit = 80
processor = 160
power_cell = 60
hide = 6
horn = 8

[prices Tools]
stone_pickaxe = 15
welder = 120
mining_drill = 900
handheld_mining_laser = 1100
tractor_beam = 180
heavy_tractor_beam = 1200
fuel_canister = 25
oxygen_tank = 30
rounds = 2
energy_cell = 5
pistol = 250
rifle = 600
laser_rifle = 1400
laser_sword = 900
laser_spear = 1100
# The first cyberdeck (design 18.4): what a hack is run from. The better marks are made at a
# fabricator (recipes.txt), not bought.
cyberdeck_mk_i = 2400
cyberdeck_mk_ii = 9000
cyberdeck_mk_iii = 30000

[prices Salvage]
black_box = 450
blueprint = 60

[prices Food]
meat = 4
crop = 3
forage = 3
egg = 15
cooked_meat = 10
nutrient_paste = 8
emergency_ration = 12
meal = 18
drink = 6
bunk_pass = 40

[prices Suits]
scout_helmet = 60
scout_suit_top = 80
scout_suit_pants = 70
scout_boots = 50
scout_oxygen_pack = 90
pioneer_helmet = 220
pioneer_suit_top = 280
pioneer_suit_pants = 250
pioneer_boots = 180
pioneer_oxygen_pack = 320
vanguard_helmet = 650
vanguard_suit_top = 800
vanguard_suit_pants = 720
vanguard_boots = 520
vanguard_oxygen_pack = 900
scout_jetpack = 250
pioneer_jetpack = 700
vanguard_jetpack = 1800

[prices Clothes]
cap = 15
beanie = 15
headband = 10
goggles = 25
respirator = 40
optic_band = 45
cowl = 20
t_shirt = 15
long_sleeve = 20
jacket = 40
hoodie = 30
vest = 30
sweater = 30
coverall = 45
lab_coat = 45
duster = 60
plate_carrier = 120
flight_jacket = 70
trousers = 20
cargo_pants = 30
skirt = 20
leggings = 20
tactical_pants = 45
boots = 30
sneakers = 25
sandals = 10
mag_boots = 90
dye = 10
# The nations' pieces (step 37b).
uniform_jacket = 80
long_coat = 90
robe = 85
tabard = 50
spiked_harness = 70
peaked_cap = 30
beret = 25
hood = 20
wide_hat = 25
spiked_boots = 60
insignia = 40
rank_badge = 40
ring = 60
chain = 70
crest_gem = 120
armband = 10
hive_mark = 30
trophy = 35

[prices Ship]
hull_plate = 15
hull_window = 20
wing_plate = 10
wing_edge = 6
angled_wing = 25
hull_slope = 10
cockpit = 600
pilot_chair = 150
thruster = 250
maneuvering_thrusters = 180
landing_gear = 120
large_landing_gear = 400
boarding_ramp = 250
large_engine = 1500
fuel_cell = 300
cargo_pod = 150
laser_cannon = 700
mining_laser = 900
ship_tractor_beam = 1100
life_support = 400
reactor = 1200
shield_generator = 900
gravity_generator = 800
door = 60
corvette_core = 2500
warp_drive = 1600
interdictor = 2200
missile_rack = 1500
flare_launcher = 600
bomb_bay = 900
turret_cockpit = 2400
turret_lift = 400
turret_rail = 60
turret_cannon = 1100
engineering_console = 500
medbay = 600
cargo_console = 400
comms_array = 900
galley = 350
missile = 120
flare_cartridge = 25
bomb = 90
warp_coil = 500

# Horns by how rare their world is. Living temperate worlds are common; anything harsh enough to
# keep its fauna rare pays more.
[horn Worlds]
temperate = 1
lush = 1
tropical = 1
ocean = 2
tundra = 2
desert = 2
steaming = 3
scorched = 3
frozen = 3
volcanic = 4
cryogenic = 4
toxic = 5
inferno = 6

# And by how dangerous their species is to take one from.
[horn Tempers]
timid = 1
defensive = 2
hostile = 4

# Schematics (design 7.6): what a shop asks for each, by the recipe it teaches. A shop lists the
# ones it sells as `schematic:KEY` among its wares.
# A data layout's blueprint, by its file's name (step 31e). A blueprint sells back at the
# `blueprint` price above, whatever it holds: anyone can copy one.
[blueprints Prices]
fighter = 900
hauler = 1100
long_fighter = 1000
corvette = 6000
gear_line = 250
smelter_line = 200
shelter = 150

# Program chips (design 18.4): what a cyberdeck runs. `chip:KEY` in a shop's `sells` lists one.
# Lawful shops sell the ones that only read or hide (Rainbow, Mask); the ones that force a way in
# or take a machine over are a fence's ([shop fence], at a boom town's saloon).
[chips Prices]
rainbow = 350
mask = 400
brute_force = 1100
override = 1500
spoof = 1900
worm = 2600
burnout = 1700
purge = 1500
ghost = 12000
overload = 5200

# What a fence asks before it sells one: standing with the system's gang (or, where there is
# none, with whoever owns the place). A chip not listed is sold to anyone.
[chips Standing]
worm = 5
overload = 12
ghost = 20

[schematics Prices]
reactor = 1400
shield_generator = 1200
large_engine = 1800
interdictor = 2600
missile_rack = 1600
flare_launcher = 700
bomb_bay = 1000
turret_cockpit = 2600
turret_lift = 400
turret_rail = 60
turret_cannon = 1200
engineering_console = 600
medbay = 700
cargo_console = 500
comms_array = 1100
galley = 400
titanium_pickaxe = 250
mining_drill = 700
pioneer_helmet = 300
pioneer_suit_top = 350
pioneer_suit_pants = 320
pioneer_boots = 260
pioneer_oxygen_pack = 400
pioneer_jetpack = 450
vanguard_helmet = 800
vanguard_suit_top = 900
vanguard_suit_pants = 850
vanguard_boots = 700
vanguard_oxygen_pack = 1000
vanguard_jetpack = 1200
handheld_mining_laser = 900
mining_laser = 1600
assembler = 600

# ---------------------------------------------------------------------------------------------
# The concourse's shops.

# The general store and parts counter.
[shop general]
sells = fuel_canister, oxygen_tank, stone_pickaxe, welder, tractor_beam, rounds, energy_cell, emergency_ration, iron_plate, copper_plate, copper_wire, iron_gear, glass_pane, circuit_board, schematic:titanium_pickaxe, schematic:mining_drill, schematic:pioneer_helmet, schematic:pioneer_suit_top, schematic:pioneer_suit_pants, schematic:pioneer_boots, schematic:pioneer_oxygen_pack, schematic:pioneer_jetpack, schematic:vanguard_helmet, schematic:vanguard_suit_top, schematic:vanguard_suit_pants, schematic:vanguard_boots, schematic:vanguard_oxygen_pack, schematic:vanguard_jetpack, schematic:handheld_mining_laser, schematic:assembler, blueprint:gear_line, blueprint:smelter_line, blueprint:shelter, cyberdeck_mk_i, chip:rainbow, chip:mask, chip:purge
buys = any

[shop shipwright]
sells = hull_plate, hull_window, wing_plate, wing_edge, angled_wing, hull_slope, cockpit, pilot_chair, thruster, maneuvering_thrusters, landing_gear, boarding_ramp, fuel_cell, cargo_pod, laser_cannon, ship_tractor_beam, heavy_tractor_beam, life_support, door, warp_drive, warp_coil, titanium_plate, advanced_circuit, processor, power_cell, schematic:reactor, schematic:shield_generator, schematic:large_engine, schematic:mining_laser, schematic:missile_rack, schematic:flare_launcher, schematic:bomb_bay, schematic:turret_cockpit, schematic:turret_lift, schematic:turret_rail, schematic:turret_cannon, schematic:engineering_console, schematic:medbay, schematic:cargo_console, schematic:comms_array, schematic:galley, missile, flare_cartridge, bomb, blueprint:fighter, blueprint:hauler, blueprint:long_fighter, blueprint:corvette
buys = blueprint, hull_plate, hull_window, wing_plate, wing_edge, angled_wing, hull_slope, cockpit, pilot_chair, thruster, maneuvering_thrusters, landing_gear, large_landing_gear, boarding_ramp, large_engine, fuel_cell, cargo_pod, laser_cannon, life_support, reactor, shield_generator, gravity_generator, door, corvette_core, warp_drive, interdictor, missile_rack, flare_launcher, bomb_bay, turret_cockpit, turret_lift, turret_rail, turret_cannon, engineering_console, medbay, cargo_console, comms_array, galley, missile, flare_cartridge, bomb, warp_coil, iron_plate, copper_plate, titanium_plate, advanced_circuit, processor, power_cell

# Suits and clothes.
[shop outfitter]
sells = scout_helmet, scout_suit_top, scout_suit_pants, scout_boots, scout_oxygen_pack, scout_jetpack, pioneer_helmet, pioneer_suit_top, pioneer_suit_pants, pioneer_boots, pioneer_oxygen_pack, jacket, flight_jacket, coverall, cargo_pants, boots, mag_boots, dye, nation_dress
buys = scout_helmet, scout_suit_top, scout_suit_pants, scout_boots, scout_oxygen_pack, pioneer_helmet, pioneer_suit_top, pioneer_suit_pants, pioneer_boots, pioneer_oxygen_pack, vanguard_helmet, vanguard_suit_top, vanguard_suit_pants, vanguard_boots, vanguard_oxygen_pack, scout_jetpack, pioneer_jetpack, vanguard_jetpack, cap, beanie, headband, goggles, respirator, optic_band, cowl, t_shirt, long_sleeve, jacket, hoodie, vest, sweater, coverall, lab_coat, duster, plate_carrier, flight_jacket, trousers, cargo_pants, skirt, leggings, tactical_pants, boots, sneakers, sandals, mag_boots, uniform_jacket, long_coat, robe, tabard, spiked_harness, peaked_cap, beret, hood, wide_hat, spiked_boots, insignia, rank_badge, ring, chain, hide, woven_fiber

# The survey office pays for survey data, once per world, and for samples, and sells forecasts
# and, in the Republic and the Concord, charts.
[shop survey]
sells = energy_cell, glass_pane, forecasts, charts
buys = survey_data, egg, horn, hide, crystal

# ---------------------------------------------------------------------------------------------
# Research outposts' trade terminals (design 15.1, step 26): their first console. They buy what
# science wants, the survey data (once per world per player, wherever it's sold), specimens and
# data, and sell a few supplies. The first credits a stranded surveyor earns come from here.
[shop outpost]
sells = energy_cell, emergency_ration, nutrient_paste, glass_pane, power_cell, circuit_board, fuel_canister, oxygen_tank
buys = survey_data, horn, hide, egg, crystal, rare_earths

# Food and drink.
[shop cantina]
sells = meal, cooked_meat, nutrient_paste, emergency_ration, drink, bunk_pass
buys = meat, crop, forage, egg

# A fence, at the back of a boom town's saloon: the chips no lawful shop sells.
[shop fence]
sells = chip:brute_force, chip:override, chip:spoof, chip:worm, chip:burnout, chip:overload, chip:ghost

# ---------------------------------------------------------------------------------------------
# Step 30's places (design 20.1), each counter's shop named in assets/data/world/structures.txt.

# A trading post's market: frontier supplies, and it buys whatever a prospector brings in.
[shop tradingpost]
sells = fuel_canister, oxygen_tank, stone_pickaxe, welder, rounds, energy_cell, pistol, emergency_ration, nutrient_paste, iron_plate, copper_wire, glass_pane, woven_fiber, jacket, cargo_pants, boots
buys = any

# A farmstead's counter: it sells what it grows and raises, and buys what a farm can't make.
[shop farmstead]
sells = crop, meat, egg, forage, cooked_meat, meal
buys = fuel_canister, iron_plate, copper_wire, iron_gear, glass_pane, power_cell, energy_cell, hide

# A research dig's field lab: like an outpost's terminal, it buys survey data and specimens.
[shop dig]
sells = energy_cell, emergency_ration, glass_pane, fuel_canister, circuit_board
buys = survey_data, horn, hide, egg, crystal, rare_earths

# A mining camp's office: it sells the ore it digs and buys what its crew eats.
[shop miningcamp]
sells = stone_pickaxe, fuel_canister, world_ores
buys = meat, crop, forage, egg, cooked_meat, meal, nutrient_paste, emergency_ration, drink

# ---------------------------------------------------------------------------------------------
# A fuel depot's counter (design 20.3, step 34e, depots.txt): fuel and air for the road, and it
# buys the ice it melts into fuel (and the cells that run its pumps).
[shop depot]
sells = fuel_canister, fuel_cell, oxygen_tank, energy_cell, emergency_ration
buys = ice, power_cell, fuel_canister
