# Fighting aboard ships and boarding (design 10.3 and 9.2, step 36d). Read at startup by the game
# and the server (src/model/ships/ShipCombat.cpp).
#
# Everyone aboard a ship takes a side: the players and their hired crews, or the pirates. Crews of
# patrol ships and haulers keep out of it. When people of both sides are aboard the same ship they
# fight through its rooms: the defenders hold their rooms, watching the doors, and fall back a room
# when they're hurt; attackers (boarders, a boarding party) push on toward the bridge. Anyone
# without a gun takes cover in the room furthest from the fight. A defender who sees the enemy
# bunched in a room with a door to space, none of their own side in it, opens that door: the room
# vents, and whoever is in it without a suit suffocates.
#
# [fight Settings]
#   health         a crew member's health (pirates' and boarders' are their gun's, below)
#   sight          m: how far they pick someone out down a corridor
#   accuracy       a hit's odds at point blank, halved by `falloff` m further
#   falloff
#   react          s from first seeing someone to the first shot
#   burst          rounds in a burst, least and most
#   gap            s between rounds of a burst
#   pause          s between bursts, least and most
#   damage         a share of the gun's damage each hit does (an item's damage, items.txt)
#   retreat        share of their health below which a defender falls back a room (once)
#   vacuum         health a second lost breathing nothing, without a suit
#   vent           s a door to space stays open once opened to vent a room
#   run            m/s
#   think          s between thoughts about where to be
#
# [arms Settings] What each job carries aboard a pirate ship (pistol, rifle, laser rifle or none),
# and each one's health.
#
# [boarders Settings] Pirates who board a disabled ship of a player's (an encounter the director
# picks), or that a test asks for.
#   odds           each time the director looks at a player aboard a disabled ship of theirs
#   count          least and most of them
#   guns           what they carry, one each in turn
#   health         theirs
#   suited         they come in suits (venting won't kill them), as a share of them
#   blocks         the least blocks of a ship they board (a fighter has fewer)
#   rooms          the least empty cells inside it, with its blocks above, below and to every side
#                  (a hole in the hull doesn't empty a wreck of them; a fighter has none). A
#                  boarding party needs the same of the ship it boards.
#
# [party Settings] A player's crew joining their boarding party.
#   reach          m: their ship is within this of the ship boarded
#   guns           the hold's guns crew take up, best first (crew without one stay unarmed)

[fight Settings]
health = 60
sight = 40
accuracy = 0.55
falloff = 25
react = 0.6
burst = 2, 4
gap = 0.22
pause = 0.9, 1.8
damage = 0.6
retreat = 0.4
vacuum = 18
vent = 8
run = 3.4
think = 0.6

[arms Settings]
pilot = pistol
gunner = rifle
engineer = pistol
medic = pistol
cook = pistol
hacker = pistol
hauler = rifle
health = 70

[boarders Settings]
odds = 0.35
count = 2, 4
guns = rifle, pistol, laser rifle
health = 80
suited = 0.5
blocks = 300
rooms = 40

[party Settings]
reach = 400
guns = laser_rifle, rifle, pistol
