# Crime and law (design 19.5, step 38; read by src/model/people/Law.cpp). Each nation's own law
# profile (strictness, policing, contraband, restricted gear, punishment, corruption) is in
# nations.txt. This file holds what is the same everywhere: the crimes, what they cost, and who
# owns each kind of place.
#
# [crime KEY]
#   name      as shown
#   what      how the HUD puts it: "breaking what belongs to someone"
#   grade     minor, moderate or major: fined, wanted, outlaw (design 19.5, "Heat and record")
#   severity  points: about a minute of detention each
#   fine      credits, before the nation's strictness
#   by value  and this share of what the thing broken or taken is worth (its recipe value)
#
# [owners Places] KIND = who owns a structure of that kind (structures.txt's kinds, as shown):
#   nobody    free to break: ruins, wrecks and places left empty
#   holder    whoever holds the system (its station and gates)
#   gang      the gang that works the system: theirs, but no law protects it
#   place     the organization its own definition names (places.txt's org)
#   or a profession (mining, hauling, research, security, salvage, shipbuilding, settlers): the
#   system's outfit of that kind, else its nation's main organization of it, else the holder
#   below     blocks under a place's floor that are still its own; deeper is open ground
#
# [owners Traffic] whose the traffic's ships are, the same way (pirates are always the gang's).
#
# [law Records] how a crime gets on the record (step 38b):
#   report after   s a witness takes to report what they saw; down them first and it never is
#   witness range  m a person sees a crime from, with a clear line of sight
#   camera range   m a Security Camera sees from; it records at once
#   ship report    s a ship that was attacked takes to report it, if it lives that long
#   merge          s: more of the same against the same owner joins one charge
#   suspect range  m: the owner's people this near an unseen crime make its doer a suspect
#   suspect fades  s of play a suspect stays one with nothing else turning up
#   wanted fines   unpaid fines above this make a player wanted (half again as much where the law
#                  is lax, half where it is strictest)
#   deadline       s of play an unpaid fine waits before it does
#   outlaw severity  severity on the record that makes an outlaw (a major crime does at once)
#   heat           the local alarm each point of severity raises (1 is a full alarm)
#   heat fade      s a full alarm takes to fade
#   negligence     s after hostile fire near you in which your stray shots are negligence
#   standing       standing lost with the victim: minor, moderate, major
#   log            crimes a record remembers
#
# [sacred Places] places = the nation places (places.txt's keys) it is desecration to damage.
#
# [law Enforcement] how the law comes for a player (step 38c):
#   arrive        shares of the system's policing seconds (nations.txt) before a response comes:
#                 for the fined, the wanted, an outlaw. Heat brings it sooner.
#   hail          s a hail gives to answer: pay, surrender or leave
#   squad         officers sent after the wanted on foot, and after an outlaw
#   patrols       patrol ships sent after a wanted ship, and an outlaw's
#   stun          stun a player takes from security's rounds before they drop
#   stun fade     stun shaken off each second, once the shooting stops
#   stun hold     s after a round strikes before any is shaken off
#   standoff      s a wanted player may stay put with a squad on them before it rushes and takes
#                 them; standoff range, m that counts as staying put
#   stun seconds  s a stunned player is out
#   flee foot     m from where they were hailed that counts as running, on foot; flee ship, how far
#                 an outlaw told to leave must fly to have left, and how far past a patrol's scan
#                 range a ship may get before it has run from the scan. (A ship hailed to pay or
#                 give up isn't running by flying on: only letting the hail run out counts.)
#   cooldown      s after a response ends before the next can start
#   give up       m a squad follows on foot before it gives up
#   chase         s patrol ships keep after a ship
#   approach      m round the station where traffic control watches speed; speed limit, m/s there
#   warn          s a warning gives (a drawn weapon, a staff room, speeding) before it is a crime
#   rewarn        s before the same warning is given again
#
# [law Detention] arrest, detention and clearing a name (step 38d):
#   sentence      s held for each point of severity not yet served; sentence min and max bound it
#   bail          credits for each second left, to walk out early
#   work          s off the sentence for each rock broken on a prison's work detail; work pay,
#                 credits paid for it
#   clear         credits a law office asks for each point of severity (on top of what is owed) to
#                 stop a player being wanted
#   impound       credits to get an impounded ship back
#   fade fined    s of play with no new crime in the nation before unpaid fines lapse; fade wanted,
#                 before wanted status does. An outlaw's never do.
#   bribe from    the corruption (nations.txt) at which officials take bribes
#   bribe         the share of a price a bribe costs: where they barely take them, where it is custom
#   grace         s after being moved to a hold before leaving it counts as escaping
#
# [law Customs] scans, fences, gangs and bounty hunters (step 38e):
#   find              the odds a scan finds each forbidden stack: in a nation's interior, on its
#                     border, on its frontier
#   patrol range      m a patrol scans a ship from; patrol every, s between its scans of one player
#                     (half as long for a suspect); scan hail, s the scan holds the ship
#   checkpoint every  s between a customs checkpoint's scans of one player
#   fence             the share of list price a fence pays for stolen goods
#   gang standing     standing gained with the system's gang when a crime of yours against the
#                     law is reported: minor, moderate, major
#   hunter every      s between bounty hunters coming for an outlaw's ship; hunter max, ships at
#                     most; hunter per, credits of bounty for each hunter past the first
#
# [contraband Items] NAME = ITEM: the names in nations.txt's contraband lists that are items today
#   (prices.txt's keys). Stolen goods are contraband everywhere lawful, without a line here.
#
# [clothing Laws]
#   uniforms  clothes only the enlisted may wear: worn by anyone else it is impersonation
#   red       NATION, COLOUR: the nation where a non-citizen may not wear that cloth colour

[crime negligence]
name = Negligence
what = stray fire hitting what belongs to someone, in a fight you didn't start
grade = minor
severity = 1
fine = 25

[crime reckless_flying]
name = Reckless flying
what = landing or lifting off without clearance, or flying fast in a station's approach
grade = minor
severity = 1
fine = 60

[crime restricted_gear]
name = Restricted gear
what = drawing a weapon where it is banned
grade = minor
severity = 1
fine = 50

[crime trespass]
name = Trespass
what = staying in a staff-only room after a warning
grade = minor
severity = 1
fine = 40

[crime vandalism]
name = Vandalism
what = breaking what belongs to someone
grade = minor
severity = 1
fine = 30
by value = 1.5

[crime theft]
name = Theft
what = taking what belongs to someone
grade = minor
severity = 2
fine = 60
by value = 2

[crime illegal_salvage]
name = Illegal salvage
what = cutting a wreck that belongs to someone
grade = minor
severity = 2
fine = 80
by value = 1

[crime smuggling]
name = Smuggling
what = carrying contraband or stolen goods through a scan
grade = minor
severity = 2
fine = 120
by value = 1

[crime evading]
name = Evading
what = running from a hail, a scan or an officer
grade = moderate
severity = 3
fine = 250

[crime impersonation]
name = Impersonation
what = wearing a uniform or insignia you haven't earned
grade = minor
severity = 2
fine = 150

[crime desecration]
name = Desecration
what = damaging a shrine or an order's site
grade = moderate
severity = 4
fine = 400
by value = 2

[crime assault]
name = Assault
what = shooting a faction's person or ship
grade = moderate
severity = 4
fine = 500

[crime murder]
name = Murder
what = killing a faction's person
grade = major
severity = 10
fine = 5000

[crime piracy]
name = Piracy
what = destroying or claiming a faction's ship, or raiding a hauler
grade = major
severity = 10
fine = 8000

[crime jailbreak]
name = Jailbreak
what = escaping detention, or breaking someone else out
grade = major
severity = 8
fine = 4000

# Breaching a hull (as decided): breaking what held a room's air in, at a place or aboard a ship
# or the station, so that the room has no air now. More than vandalism: people breathe that air.
[crime hull_breach]
name = Hull Breach
what = breaching a hull and letting the air out
grade = moderate
severity = 4
fine = 600
by value = 1.5

# Hacking (design 18.5): breaking into an owned place's systems is a crime once the hacker is
# identified, which is when the trace fills. A hack that ends before that leaves no record.
[crime hacking]
name = Hacking
what = breaking into someone's systems
grade = moderate
severity = 3
fine = 300

# Sabotage by a hack (design 18.3 and 19.5): a machine burnt out. Recorded with the hacking, when
# the place's systems identify who did it.
[crime sabotage]
name = Sabotage
what = wrecking a faction's machines
grade = major
severity = 7
fine = 2500

[owners Places]
below = 4
Research Outpost = research
Abandoned Settlement = nobody
Crashed Ship = nobody
Ancient Ruins = nobody
Relay Tower = holder
Derelict Outpost = gang
Trading Post = hauling
Farmstead = settlers
Research Dig = research
Mining Camp = mining
Abandoned Mine = nobody
Sensor Station = research
Geothermal Plant = mining
Pirate Camp = gang
Wrecked Freighter = nobody
Military Wreck = nobody
Escape Pod = nobody
Nation's Place = place
Settlement = settlers
Grand Ruins = nobody

[owners Traffic]
Patrol = holder
Hauler = hauling

[law Records]
report after = 4
witness range = 40
camera range = 24
ship report = 6
merge = 6
suspect range = 80
suspect fades = 900
wanted fines = 600
deadline = 3600
outlaw severity = 30
heat = 0.12
heat fade = 240
negligence = 30
standing = -2, -8, -25
log = 12

[sacred Places]
places = Shrine

[law Enforcement]
arrive = 1.0, 0.6, 0.4
hail = 20
squad = 3, 5
patrols = 2, 3
stun = 60
stun fade = 2
stun hold = 6
standoff = 60
standoff range = 25
stun seconds = 8
flee foot = 60
flee ship = 3000
cooldown = 180
give up = 220
chase = 240
approach = 1500
speed limit = 150
warn = 8
rewarn = 60

[law Detention]
sentence = 60
sentence min = 45
sentence max = 900
bail = 3
work = 12
work pay = 2
clear = 120
impound = 400
fade fined = 3600
fade wanted = 7200
bribe from = 0.1
bribe = 1.0, 0.4
grace = 4

[law Customs]
find = 1.0, 0.8, 0.4
patrol range = 1500
patrol every = 300
scan hail = 8
checkpoint every = 120
fence = 0.5
gang standing = 1, 3, 8
hunter every = 600
hunter max = 3
hunter per = 3000

[contraband Items]
live specimens = egg

[clothing Laws]
uniforms = uniform_jacket, peaked_cap, beret, insignia, rank_badge
red = Ascendancy, Ascendancy Red
