# Copyright (c) 2014 by Michael Zahniser
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.  See the GNU General Public License for more details.

mission "Escort (Tiny, Northern)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> to escort her Shuttlecraft safely to <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 70
		"combat rating" < 6
		or
			"combat rating" > 0
			"cargo space" < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes north "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 2 3
	npc
		personality nemesis waiting
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Shuttle"
	on complete
		payment 15000
		dialog "The captain of the <npc> thanks you for escorting her safely, and pays you <payment>."

mission "Escort (Small, Northern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 70
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes north "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Northern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes north "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Northern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 50
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes north "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Northern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 20
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes north "near earth"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Northern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Northern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."


mission "Escort (Tiny, Core)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> to escort his Star Barge safely to <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 70
		"combat rating" < 6
		or
			"combat rating" > 0
			"cargo space" < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core "near earth" "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 2 3
	npc
		personality nemesis waiting
		government Pirate
		fleet
			names "pirate"
			variant
				"Wasp"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Star Barge (Armed)"
	on complete
		payment 20000
		dialog "The captain of the <npc> thanks you for escorting him safely, and pays you <payment>."

mission "Escort (Small, Core)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 70
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core "near earth" "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Core)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core "near earth" "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Core)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 50
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core "near earth" "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Core)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 20
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core "near earth" "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Core Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Core Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."


mission "Escort (Tiny, Southern)"
	name "Escort to <planet>"
	description "Despite your relative inexperience, the captain of the <npc> is willing to pay you <payment> to escort her Heavy Shuttle safely to <destination> by <date>."
	repeat
	job
	deadline 8
	to offer
		random < 70
		"combat rating" < 6
		or
			"combat rating" > 0
			"cargo space" < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 2 3
	npc
		personality nemesis waiting
		government Pirate
		fleet
			names "pirate"
			variant
				"Sparrow"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Heavy Shuttle"
	on complete
		payment 15000
		dialog "The captain of the <npc> thanks you for escorting her safely, and pays you <payment>."

mission "Escort (Small, Southern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 70
		"combat rating" > 5
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 60000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Medium, Southern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 40
		"combat rating" > 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Freighter"
	on complete
		payment 90000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Large, Southern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 50
		"combat rating" > 60
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Bulk Freighter"
	on complete
		payment 120000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort (Extra Large, Southern)"
	name "Escort to <planet>"
	description "The captain of the <npc> will pay you <payment> to escort them safely to <destination> by <date>."
	repeat
	job
	deadline 10
	to offer
		random < 20
		"combat rating" > 100
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes south rim "dirt belt"
	destination
		government Republic "Free Worlds" Syndicate Neutral
		distance 3 4
	npc
		personality nemesis waiting
		government Pirate
		fleet "Large Southern Pirates"
	npc
		personality nemesis waiting
		government Pirate
		fleet "Small Southern Pirates"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "civilian"
			variant
				"Behemoth"
	on complete
		payment 150000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."


mission "Bounty Hunting (Big)"
	name "Hunt down <npc>"
	description "A pirate vessel named <npc> has been attacking merchants near the <system> system. Destroy it and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 500
		random < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		personality heroic staying nemesis
		government Bounty
		system
			distance 1 2
		fleet
			names "pirate"
			variant
				"Leviathan"
			variant
				"Leviathan (Heavy)"
			variant
				"Leviathan (Laser)"
			variant
				"Falcon"
			variant
				"Falcon (Heavy)"
			variant
				"Falcon (Laser)"
			variant
				"Vanguard"
			variant
				"Vanguard (Particle)"
		dialog "The <npc> has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 250000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc>."

mission "Bounty Hunting (Medium)"
	name "Hunt down <npc>"
	description "A pirate vessel named <npc> has been attacking merchants near the <system> system. Destroy it and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 400
		random < 20
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		personality heroic staying nemesis
		government Bounty
		system
			distance 1 2
		fleet
			names "pirate"
			variant
				"Protector"
			variant
				"Protector (Laser)"
			variant
				"Osprey (Missile)"
			variant
				"Bastion (Heavy)"
			variant
				"Bastion (Laser)"
			variant
				"Firebird (Plasma)"
		dialog "The <npc> has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 200000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc>."

mission "Bounty Hunting (Small)"
	name "Hunt down <npc>"
	description "A pirate vessel named <npc> has been attacking merchants near the <system> system. Destroy it and return to <planet> for payment (<payment>)."
	repeat
	job
	to offer
		"combat rating" > 300
		random < 40
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes rim south north "dirt belt" core frontier
	npc kill
		personality heroic staying nemesis
		government Bounty
		system
			distance 1 2
		fleet
			names "pirate"
			variant
				"Firebird"
			variant
				"Firebird (Missile)"
			variant
				"Splinter"
			variant
				"Splinter (Laser)"
			variant
				"Osprey"
			variant
				"Osprey (Laser)"
			variant
				"Bastion"
			variant
				"Manta"
			variant
				"Manta (Proton)"
		dialog "The <npc> has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 150000
		dialog "The government of <planet> gratefully pays you <payment> for eliminating the <npc>."

mission "Southern Pirate Attack"
	name "Defend <planet>"
	description "Defeat a pirate raid on <destination>."
	minor
	repeat
	to offer
		"combat rating" > 100
		random < 10
	source
		attributes frontier
		attributes rim south "dirt belt"
	npc evade
		personality heroic staying
		government Pirate
		fleet "Small Southern Pirates"
		fleet "Large Southern Pirates"
		fleet "Large Southern Pirates"
	npc
		personality heroic staying
		government Militia
		fleet "Small Militia"
		fleet "Small Militia"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by pirates! We need every combat-worthy ship to join in the defenses!" The authorities will probably pay you quite well if you assist them, but this could also be an easy way to get yourself killed.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"A few militia pilots have gathered to help repel the pirate attack. You join them, and take off together..."
				launch
	on complete
		payment 150000
		dialog "The government of <planet> pays you <payment> for helping to drive off the pirates."

mission "Northern Pirate Attack"
	name "Defend <planet>"
	description "Defeat a pirate raid on <destination>."
	minor
	repeat
	to offer
		"combat rating" > 100
		random < 10
	source
		attributes frontier
		attributes north paradise deep
	npc evade
		personality heroic staying
		government Pirate
		fleet "Small Northern Pirates"
		fleet "Large Northern Pirates"
		fleet "Large Northern Pirates"
	npc
		personality heroic staying
		government Republic
		fleet "Small Republic"
		fleet "Small Republic"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by pirates! We need every combat-worthy ship to join in the defenses!" The authorities will probably pay you quite well if you assist them, but this could also be an easy way to get yourself killed.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"The local Navy garrison is preparing to repel the pirate attack. You join them, and take off together..."
				launch
	on complete
		payment 250000
		dialog "The government of <planet> pays you <payment> for helping to drive off the pirates."

mission "Core Pirate Attack"
	name "Defend <planet>"
	description "Defeat a pirate raid on <destination>."
	minor
	repeat
	to offer
		"combat rating" > 100
		random < 10
	source
		attributes frontier
		attributes core "near earth"
	npc evade
		personality heroic staying
		government Pirate
		fleet "Small Core Pirates"
		fleet "Large Core Pirates"
		fleet "Large Core Pirates"
	npc
		personality heroic staying
		government Syndicate
		fleet "Small Syndicate"
		fleet "Small Syndicate"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by pirates! We need every combat-worthy ship to join in the defenses!" The authorities will probably pay you quite well if you assist them, but this could also be an easy way to get yourself killed.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"The local Syndicate defense forces are preparing to repel the pirate attack. You join them, and take off together..."
				launch
	on complete
		payment 200000
		dialog "The government of <planet> pays you <payment> for helping to drive off the pirates."

mission "Cargo [0]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 8
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [1]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 90
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [2]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 80
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [3]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 70
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 3 14
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Cargo [4]"
	name "Delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 60
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 4000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Bulk Delivery [0]"
	name "Bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 25 2 .05
	to offer
		random < 70
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 8
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Bulk Delivery [1]"
	name "Bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 25 2 .05
	to offer
		random < 60
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Bulk Delivery [2]"
	name "Bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 25 2 .05
	to offer
		random < 50
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 4000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [0]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 90
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 4 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 16000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [1]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 5 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 18000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [2]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 70
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 6 14
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 20000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Rush Delivery [3]"
	name "Rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 5 2 .1
	to offer
		random < 60
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 7 16
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 22000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."



mission "Passengers [0]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [1]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	to offer
		random < 75
		has "ship: Transport"
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [2]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [3]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "Bring <fare> to <destination>. Payment is <payment>."
	passengers 1 10 .9
	to offer
		random < 25
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Passengers [4]"
	name "Passenger transport to <planet>"
	job
	repeat
	description "These <bunks> passengers want to escape the pollution and crime on <origin> and settle on <destination>. Payment is <payment>."
	passengers 2 10 .9
	to offer
		random < 50
	source
		attributes "urban"
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport miners to <planet>"
	job
	repeat
	description "This family of <bunks> miners is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "mining"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You wish the mining family the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport farmers to <planet>"
	job
	repeat
	description "This family of <bunks> farmers is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "farming"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You wish the farm family the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport mill workers to <planet>"
	job
	repeat
	description "This family of <bunks> mill workers is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "textiles"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You wish the workers the best of luck on <planet>, and collect your payment of <payment>."

mission "Transport workers to <planet>"
	job
	repeat
	description "This family of <bunks> factory workers is hoping to find work on <destination>, and they will pay you <payment> to take them there."
	passengers 2 2 .8
	to offer
		random < 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "factory"
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 2000
		dialog "You wish the workers the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists out [0]"
	name "Bring a tourist to <planet>"
	job
	repeat
	description "This tourist wants to see <destination>, and will pay you <payment>."
	passengers 1
	to offer
		random < 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "tourism"
		distance 6 35
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 6000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists out [1]"
	name "Bring tourists to <planet>"
	job
	repeat
	description "These <bunks> tourists want to see <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "tourism"
		distance 2 25
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 4000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists out [2]"
	name "Bring tourists to <planet>"
	job
	repeat
	description "These <bunks> tourists want to see <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 75
	source
		attributes "rich" "urban"
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "tourism"
		distance 4 30
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 8000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists back [0]"
	name "Bring a tourist home to <planet>"
	job
	repeat
	description "This tourist is headed home to <destination>, and will pay you <payment>."
	passengers 1
	to offer
		random < 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
		attributes "tourism"
	destination
		distance 6 35
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 6000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists back [1]"
	name "Bring tourists home to <planet>"
	job
	repeat
	description "These <bunks> tourists are headed home to <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 50
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
		attributes "tourism"
	destination
		distance 2 25
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 4000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Tourists back [2]"
	name "Bring tourists home to <planet>"
	job
	repeat
	description "These <bunks> tourists are headed home to <destination>. They are willing to pay you <payment>."
	passengers 2 10 .9
	to offer
		random < 75
	source
		attributes "tourism"
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "rich" "urban"
		distance 4 30
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 8000
		dialog "You wish your <passengers> the best of luck on <planet>, and collect your payment of <payment>."

mission "Family [0]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 60
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 4000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Family [1]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 50
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 5 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 6000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Family [2]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 40
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 6 24
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 8000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Family [3]"
	name "Transport family to <planet>"
	job
	repeat
	description "This family of <bunks> is relocating to <destination>. They will pay you <payment> to take them there."
	passengers 2 4 .5
	to offer
		random < 30
		"passenger space" > 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		distance 8 32
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "The family you have been transporting departs your ship after paying you <payment>."

mission "Strike Breakers [mining]"
	name "Strike breakers to <planet>"
	job
	repeat
	description "Bring <bunks> strike breakers to <destination>, to take the place of mine workers who are on strike. The company will pay you <payment>."
	passengers 5 5 .2
	to offer
		random < 10
		"passenger space" > 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "mining"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "You unload the strike breakers amid an angry crowd of protesters held back by police. When you return to your ship, you find that the company has transferred the agreed-upon payment of <payment> into your account."

mission "Strike Breakers [textile]"
	name "Strike breakers to <planet>"
	job
	repeat
	description "Bring <bunks> strike breakers to <destination>, to take the place of textile workers who are on strike. The company will pay you <payment>."
	passengers 5 5 .2
	to offer
		random < 10
		"passenger space" > 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "textiles"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "You unload the strike breakers amid an angry crowd of protesters held back by police. When you return to your ship, you find that the company has transferred the agreed-upon payment of <payment> into your account."

mission "Strike Breakers [factory]"
	name "Strike breakers to <planet>"
	job
	repeat
	description "Bring <bunks> strike breakers to <destination>, to take the place of factory workers who are on strike. The company will pay you <payment>."
	passengers 5 5 .2
	to offer
		random < 10
		"passenger space" > 20
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	destination
		attributes "factory"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment
		payment 10000
		dialog "You unload the strike breakers amid an angry crowd of protesters held back by police. When you return to your ship, you find that the company has transferred the agreed-upon payment of <payment> into your account."

mission "Colonists [0]"
	name "Colonists to <planet>"
	job
	repeat
	description "These <bunks> people are hoping to join a colony on <destination>. They will pay you <payment> to take them there."
	passengers 10 4 .1
	to offer
		random < 30
		"passenger space" > 30
	source
		attributes "urban" "near earth" "core" "factory"
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "frontier" "dirt belt" "south" "farming" "mining" "rim" "forest"
		distance 2 20
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 8000
		dialog "The colonists depart your ship after paying you <payment>."

mission "Colonists [1]"
	name "Colonists to <planet>"
	job
	repeat
	description "These <bunks> people are hoping to join a colony on <destination>. They will pay you <payment> to take them there."
	passengers 10 4 .1
	to offer
		random < 20
		"passenger space" > 30
	source
		attributes "urban" "near earth" "core" "factory"
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		attributes "frontier" "dirt belt" "south" "farming" "mining" "rim" "forest"
		distance 4 30
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 10000
		dialog "The colonists depart your ship after paying you <payment>."

mission "Large Bulk Delivery [0]"
	name "Large bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 40 2 .02
	to offer
		random < 70
		"cargo space" > 160
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 2 8
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 4000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Bulk Delivery [1]"
	name "Large bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 40 2 .02
	to offer
		random < 60
		"cargo space" > 160
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 6000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Bulk Delivery [2]"
	name "Large bulk delivery to <planet>"
	job
	repeat
	description "Deliver <cargo> to <destination>. Payment is <payment>."
	cargo random 40 2 .02
	to offer
		random < 50
		"cargo space" > 160
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 8000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [0]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 90
		"cargo space" > 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 4 10
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 36000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [1]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 80
		"cargo space" > 80
	source
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 5 12
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 38000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [2]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 70
		"cargo space" > 80
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 6 14
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 40000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."

mission "Large Rush Delivery [3]"
	name "Large rush delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> to <destination> by <date>. Payment is <payment>."
	cargo random 20 6 .1
	to offer
		random < 60
		"cargo space" > 80
	source
		attributes mining textiles factory farming fishing oil
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	destination
		distance 7 16
		government "Republic" "Free Worlds" "Syndicate" "Quarg" "Neutral" "Hai"
	on complete
		payment
		payment 42000
		dialog "You drop off your cargo of <commodity> and collect your payment of <payment>."
