# Event sites (design 20.4, step 34d): places that come and go, made by the server's simulations
# and gone when they're done. Read by the server and the game (src/sim/events/EventSites.cpp). While one
# lasts every player in its system sees it on the Map and the ship scanner, and hears of it when
# it starts.
#
# [sites Rules]
#   roll         s of world time between the server's rolls for a new site in each live system
#   chance       the odds a roll brings one
#   most         sites at once in a system, at most
#   near         m: a player this close to a site is at it (rescues, escorts, stampedes)
#   pirates      m: pirates this close to a site's ships keep it from being saved
#
# [site KEY]       Distress, Convoy, Wreck, Stampede, Raid, Strike, Blockade (the code knows these seven)
#   name         as the Map shows it
#   weight       odds against the others when a roll comes up (0: only from its cause)
#   last         s of world time it lasts, fewest and most
#   reward       credits paid to each player at it when it is saved (distress, convoy, raid, strike)
#   hold         s a player stays at it, with no pirates near, to save it
#   ships        haulers at it (distress, convoy); the holder's patrol ships holding a gate (blockade)
#   raiders      pirates that come for them once a player is at it, at most (a raid's are there from the start)
#   over         a herd this many times what its region holds stampedes (stampede)
#   drain        a raid nobody stops: the share of the depot's fuel stock it takes when it ends
#   cause        what the Map and the news say: {lane}, {world}, {species}, {ship}, {depot}, {holder},
#                {gate}
#
# Strikes and blockades (step 37d) come only in a nation's systems, never the start system's: there
# the roll weighs only the other kinds, so it rolls as it always did.

[sites Rules]
roll = 900
chance = 0.4
most = 2
near = 1200
pirates = 2500

[site Distress]
name = Distress call
weight = 3
last = 1200, 2400
reward = 250
hold = 40
ships = 1
raiders = 2
cause = A hauler broke down on the {lane} lane and is calling for help

[site Convoy]
name = Refugee convoy
weight = 1
last = 1800, 2400
reward = 400
hold = 60
ships = 3
raiders = 3
cause = Settlers leaving {world} gather on the {lane} lane, asking for an escort

[site Wreck]
name = Fresh wreck
weight = 0
last = 600, 900
cause = {ship} went down here: whoever gets to it first salvages it

[site Stampede]
name = Stampede
weight = 0
last = 900, 1500
over = 1.15
cause = Too many {species} for the grazing on {world}: the herd is restless

# Pirates raiding a fuel depot (step 34e, depots.txt). Drive them off and stay; if nobody does,
# they drain its tanks and its fuel goes dear until the stock drifts back.
[site Raid]
name = Depot raid
weight = 1
last = 900, 1500
reward = 350
hold = 20
raiders = 3
drain = 0.6
cause = Pirates are raiding {depot} and draining its tanks

# Workers on a nation's world down tools (step 37d). Go down and hear them out (stay near a while)
# and their committee pays for the help settling it.
[site Strike]
name = Strike
weight = 1
last = 1200, 2400
reward = 300
hold = 45
cause = Workers on {world} have downed tools against {holder}: hear them out

# The holder's patrol ships close a gate for a while (step 37d): they hold station at it and turn
# nobody back yet (step 38's law will), so it is news and a sight more than a fight.
[site Blockade]
name = Blockade
weight = 1
last = 900, 1800
ships = 3
cause = {holder} is blockading the {gate}
