# Ship crews (design 9.2, step 36). Read at startup by the game and the server
# (src/model/ships/ShipCrew.cpp).
#
# People live aboard ships as they do in the station: in the ship's own cells, so they stand and
# walk while it flies and turns. Each crew member has a job and, while on duty, a station: a block
# aboard they work. Crew without a station are off duty and walk the ship's rooms.
#
# [KEY Job] A crew member's job (9.2's roles). In this order: pilot, gunner, engineer, medic,
# cook, hacker, hauler.
#   name           what it's called
#   top, bottom, shoes, hat
#                  what they wear, by the style names in world/humans.txt
#   top colour, bottom colour, hat colour
#                  by cloth colour name (world/humans.txt); a list picks one for each person
#   backpack       1: they carry a pack
#   wage           credits a pay day at skill 1; each skill above adds [hire Settings]' per skill
#
# [KEY Station] A station aboard: a block crew are assigned to.
#   name           what the Fleet page's crew list calls it
#   block          the block, by its type key (EngineeringConsole)
#   job            who works it
#   seated         yes: they sit in it, in its cell, facing the way it faces. No: they stand at its
#                  front, facing it
#   does           what working it does (step 36c): pilot (flies the ship on orders), gunner (mans
#                  the nearest turret), engineer (repairs, fights fires, patches breaches, boosts a
#                  system), medic (heals), cargo (better prices), galley (cooks, cheers the crew)
#   systems        the ship's systems it mans: each gains [work Settings]' bonus while it's worked
#                  (engines, thrusters, weapons, life support, shields, quantum, gravity, scanner)
#
# [KEY Side] Who flies the ship, and what its crew wear for it: the colours here take the place of
# the jobs' (left out: the job's own). The sides are the traffic kinds (traffic.txt) and the
# player's own.
#   top colour, bottom colour, hat colour, hat
#
# [crew Settings]
#   spawn, drop    m: a crewed ship's people come out when a player is this near it, and go once
#                  nobody is within drop
#   spare          hands aboard an AI corvette beyond its stations, off duty
#   on foot        crew walking (not sat at a station) across every ship near players, at most;
#                  a ship that would pass it brings out only its seated crew
#   trip           each time an off-duty hand stops to think, the odds they walk to another room
#   duty trip      and for crew at a standing station, the odds they step away from it a while
#   stay           s, the least and most they stay where a trip took them before going back
#   wander         m off duty hands stroll from where they stand

# [hire Settings] Hiring a crew of your own (step 36b).
#   candidates     people for hire at each place that hires (the station, trading posts, outposts)
#   refresh        s of play time before a place has new people for hire
#   skill          the least and most skill a candidate has (1 to 5); 5 is never for hire
#   per skill      credits a pay day each skill above 1 adds to a job's wage
#   signing        pay days' wages paid up front to hire someone
#   pay every      s of play time between pay days (only while the crew's owner plays)
#   rescued skill  a rescued survivor who signs on: their skill, and their loyalty (0 to 1)
#   rescued loyalty
#
# [morale Settings] Morale runs 0 to 1. Low morale slows work (36c) and in the end a crew member
# leaves at the next dock.
#   start          a new hire's
#   paid, unpaid   on a pay day, paid in full or not
#   bed, air, rations   a minute without a bed, without air to breathe, or with no food in the hold
#   content        a minute with every need met
#   leave          below this they leave the next time their ship docks or lands
#   loyalty        a new hire's; losses are scaled by 1.5 less their loyalty
#   arrest         when their captain is arrested the crew disband: only those this loyal stay on
#
# [skill Settings]
#   gain           skill an hour on duty at their station brings, divided by the skill they have

[hire Settings]
candidates = 4
refresh = 1800
skill = 1, 4
per skill = 6
signing = 2
pay every = 1200
rescued skill = 1
rescued loyalty = 0.9

[morale Settings]
start = 0.7
paid = 0.02
unpaid = -0.15
bed = -0.004
air = -0.05
rations = -0.01
content = 0.004
leave = 0.25
loyalty = 0.5
arrest = 0.9

[skill Settings]
gain = 0.25

# [work Settings] Crew at work (step 36c). How well a station is worked (0 to 1) goes with the
# worker's skill and morale.
#   skill          work at skill 1, and at skill 5
#   morale         the share of it left at no morale (all of it at full morale)
#   player         a party member working a station
#   bonus          bars a manned system gains, worked in full ("manned systems work better")
#   reach          m: the game of a crewed ship's owner (or their party) runs it this near, so its
#                  crew fly, shoot and keep its systems going while nobody sits at the controls
#
# [pilot Settings] A pilot at the chair flies the ship on its order while nobody else does: hold
# course (the flight computer's own), stop, follow you, or go to your target.
#   speed          share of its top speed it flies at, worked at nothing (all of it worked in full)
#   follow         m behind whoever it follows
#   arrive         m off a target it goes to, beyond the target's size
#
# [gunner Settings]
#   aim            the gunner's aim skill in the turrets' model (turrets.txt), worked at nothing
#                  and worked in full; the AI ships' gunners' is 0.4 to 0.75
#
# [engineer Settings] An engineer at the console mends the ship, worst first: fires, then breaches,
# then burnt-out systems, then damaged systems, then the rest. The parts come from the hold.
#   repair         s a weld pass takes (a state up, or a burnt shell back), worked in full
#   fire           s to put out a fire
#   patch          s to patch a breach with a hull plate
#   boost          bars the system they're told to boost gains
#
# [medic Settings]
#   heal           health a second for someone near the medbay, worked in full
#   reach          m from the medbay
#
# [cargo Settings] A hand at the cargo console of a ship of yours in the system trades for you.
#   buy, sell      share off what you pay, and onto what you're paid, worked in full
#
# [galley Settings] A cook turns raw food in the hold into cooked, and their cooking cheers
# everyone aboard.
#   cooks          the cook recipes (recipes.txt) it makes, best first
#   time           s a batch, worked in full
#   morale         a minute, for each of the crew aboard while the galley is worked
#
# [rations Settings] Crew eat the food in their ship's hold, as the player eats (best first:
# cooked, then raw).
#   hunger         s a full stomach (100 food) lasts
#   eat below      they eat once their stomach is below this
#   raw, cooked, meal
#                  morale for eating raw food, cooked food, or a meal

[work Settings]
skill = 0.5, 1
morale = 0.6
player = 0.75
bonus = 1
reach = 1000

[pilot Settings]
speed = 0.6
follow = 90
arrive = 150

[gunner Settings]
aim = 0.3, 0.85

[engineer Settings]
repair = 4
fire = 1.5
patch = 6
boost = 1

[medic Settings]
heal = 4
reach = 4

[cargo Settings]
buy = 0.1
sell = 0.1

[galley Settings]
cooks = meal, emergency_ration, cooked_meat
time = 20
morale = 0.006

[rations Settings]
hunger = 3600
eat below = 60
raw = -0.02
cooked = 0
meal = 0.02

[crew Settings]
spawn = 600
drop = 900
spare = 2
on foot = 12
trip = 0.35
duty trip = 0.06
stay = 10, 25
wander = 2

# ---------------------------------------------------------------- Jobs

[pilot Job]
name = Pilot
wage = 20
top = Flight Jacket
top colour = Navy, Charcoal
bottom = Cargo Pants
bottom colour = Black, Charcoal
hat = Cap

[gunner Job]
name = Gunner
wage = 18
top = Vest
top colour = Olive, Khaki
bottom = Tactical Pants
bottom colour = Charcoal
shoes = Boots
hat = Optic Band

[engineer Job]
name = Engineer
wage = 20
top = Coverall
top colour = Orange, Yellow
bottom = Cargo Pants
bottom colour = Charcoal
shoes = Boots
hat = Goggles

[medic Job]
name = Medic
wage = 18
top = Lab Coat
top colour = White
bottom = Trousers
bottom colour = White, Grey
shoes = Sneakers

[cook Job]
name = Cook
wage = 12
top = Long Sleeve
top colour = White, Grey
bottom = Trousers
bottom colour = Black, Charcoal
hat = Headband

[hacker Job]
name = Hacker
wage = 24
top = Hoodie
top colour = Black, Purple, Teal
bottom = Cargo Pants
bottom colour = Black
shoes = Sneakers
hat = Optic Band

[hauler Job]
name = Hauler
wage = 10
top = Coverall
top colour = Khaki, Tan, Brown
bottom = Cargo Pants
bottom colour = Brown, Charcoal
shoes = Boots
backpack = 1

# ---------------------------------------------------------------- Stations

[pilot Station]
name = Pilot Chair
block = PilotChair
job = pilot
seated = yes
does = pilot
systems = engines, thrusters

[lift Station]
name = Turret Lift
block = TurretLift
job = gunner
seated = yes
does = gunner
systems = weapons

[engineering Station]
name = Engineering Console
block = EngineeringConsole
job = engineer
seated = no
does = engineer
systems = shields

[medbay Station]
name = Medbay
block = Medbay
job = medic
seated = no
does = medic

[cargo Station]
name = Cargo Console
block = CargoConsole
job = hauler
seated = no
does = cargo

[galley Station]
name = Galley
block = Galley
job = cook
seated = no
does = galley

# ---------------------------------------------------------------- Sides

# Pirates wear what they could get, faded and dark, as the outlaws do.
[pirate Side]
top colour = Rust, Void, Oxblood, Scrap
bottom colour = Void, Slate
hat colour = Scrap

# Patrols in their navy's white and blue.
[patrol Side]
top colour = White, Navy
bottom colour = Navy
hat colour = Navy

# Haulers' crews wear their own jobs' colours.
[hauler Side]

# A player's hired crew (step 36b).
[player Side]
