# Copyright (c) 2014 by Michael Zahniser and Nate Graham
#
# 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 "Transport executive to <planet>"
	job
	repeat
	deadline
	description "A busy executive needs immediate transportation to attend an urgent meeting on <destination> by <date>. Payment is <payment>."
	passengers 1
	to offer
		random < 20
	source
		government Syndicate
	destination
		distance 3 15
		government Republic "Free Worlds" Syndicate Neutral Quarg
		attributes paradise rich core "near earth"
	on complete
		payment 1000 170
		dialog "The executive rushes off your ship without even a goodbye, fancy briefcase in hand. You collect your payment of <payment>."


mission "Corporate retreat from <origin>"
	job
	repeat
	deadline
	description "A team of <bunks> engineers needs transport to a corporate retreat on the exotic planet of <stopovers>, after which they require return transport back to <origin> by <date>. Payment is <payment>."
	passengers 7 18
	to offer
		random < 20
	source
		government Syndicate
	stopover
		attributes quarg volcanic frontier north south
		distance 3 12
		government Republic "Free Worlds" Syndicate Neutral Quarg
	on stopover
		dialog "For days your ship has played host to endless discussions about load calculations, tensile strengths, and thermodynamic limits. You're grateful for some peace and quiet as the team of engineers tromps out of the hatch and heads for their exotic corporate retreat. You prepare for the return journey to <origin>."
	on complete
		payment 1000 90
		dialog "The team's boss thanks you for a smooth trip and authorizes a payment of <payment>."


mission "Corporate espionage"
	description "The <npc> is about to enter this system. Locate it and make detailed scans of its cargo, which are of considerable interest to a team of Syndicate researchers on <destination>; proceed there for <payment> after retrieving the data."
	job
	repeat
	to offer
		random < 10
	source
		government Republic Syndicate Neutral
	destination
		government Syndicate
		attributes research
		distance 3 12
	npc "scan cargo"
		government Merchant
		personality fleeing uninterested entering target
		fleet
			names "civilian"
			variant
				"Scout"
			variant
				"Bounder"
		dialog "You manage to make the requested scans of the <npc>'s cargo. Time to head to <planet>."
	on complete
		dialog `You transmit your scans and receive a hearty congratulations, as well as <payment>. "This will save us months!" you hear someone say in the background as you close the audio link.`
		payment 50000


mission "Document delivery to <planet>"
	job
	repeat
	description "Deliver <tons> of ordinary documents to <destination>. Payment is <payment>."
	cargo "Confidential documents" 6 12
	to offer
		random < 10
	source
		government Syndicate
	destination
		distance 3 20
		government Republic "Free Worlds" Syndicate Neutral
		attributes factory mining "dirt belt"
	on complete
		payment 5000 170
		dialog "Almost as soon as you open the cargo hatch, several silent and surprisingly well-dressed men feed the crates of documents onto a conveyor belt right next to your landing site that you hadn't noticed, where to your surprise they soon disappear into the flames of an industrial incinerator. You collect your payment of <payment>."


mission "Waste recycling on <planet>"
	job
	repeat
	description "Syndicated Systems is looking for intrepid captains willing to make a difference as part of our new Green Initiative! Deliver <tons> of recyclable <commodity> to our special facility on <destination>. Payment is <payment>."
	cargo "Garbage" 6 40
	to offer
		random < 20
	source
		government Syndicate
	destination
		distance 3 10
		government Syndicate
	on complete
		payment
		payment 2000
		dialog "You land on <planet> and drop off the exceptionally smelly shipment of <commodity> at a nondescript building, as instructed. Just as you take off, your rear camera catches sight of a burly Syndicate employee running out of the building shaking his fist. You notice that your payment of <payment> came from your contact on <origin>, not from anywhere on <planet>."


mission "Rush fuel Delivery"
	name "Rush fuel delivery to <planet>"
	job
	repeat
	deadline
	description "A civilian reactor on <destination> is running low on fuel and needs an emergency shipment of <cargo> by <date>. Payment is <payment>."
	cargo "Heavy Metals" 10 2 .1
	to offer
		random < 20
		"cargo space" > 15
	source
		government Syndicate
	destination
		distance 3 10
		government Syndicate
	on complete
		payment
		payment 20000
		dialog "You drop off your cargo of <commodity> at the loading bay of a towering nuclear complex and collect your payment of <payment>."


mission "Rush equipment Delivery"
	name "Rush equipment delivery to <planet>"
	job
	repeat
	deadline
	description "Syndicate techs on <destination> need a rush shipment of <tons> of specialized <commodity> by <date>. Payment is <payment>."
	cargo "Equipment" 5 20
	to offer
		random < 20
	source
		government Syndicate
	destination
		distance 3 10
		government Syndicate
	on complete
		payment
		payment 9000
		dialog "You drop off your cargo of <commodity> at the loading bay of a towering nuclear complex and collect your payment of <payment>."


mission "Syndicate target practice [0]"
	name "Syndicate target practice"
	job
	repeat
	description "Disable the robotic target dummy ship in <system>, collect test data for Syndicate engineers by scanning its cargo, and land on <planet>. Warning: the target ship is programmed to engage in self-defense behaviors to ensure a realistic simulation. Payment is <payment>."
	source
		government Syndicate
	destination
		distance 1 3
		government Syndicate
	to offer
		random < 20
		"combat rating" > 5
		"combat rating" < 50
	npc save disable "scan cargo"
		personality staying heroic target
		government "Test Dummy"
		ship "Berserker" "Syndicate Test Vessel"

		system destination
		dialog "You scan the disabled craft and take careful measurements of the battle damage. Time to deliver the results on <planet>."
	on visit
		dialog "You forgot to either disable or scan the target dummy ship in <system>! You'll need to head back there and do that before you can return here for payment."
	on complete
		payment 20000
		dialog "You transmit the scan results to a team of eager engineers and collect your payment of <payment>."


mission "Syndicate target practice [1]"
	name "Syndicate target practice"
	job
	repeat
	description "Disable the robotic target dummy ship in <system>, collect test data for Syndicate engineers by scanning its cargo, and land on <planet>. Warning: the target ship is programmed to engage in self-defense behaviors to ensure a realistic simulation. Payment is <payment>."
	source
		government Syndicate
	destination
		distance 1 3
		government Syndicate
	to offer
		random < 20
		"combat rating" > 50
		"combat rating" < 200
	npc save disable "scan cargo"
		personality staying heroic target
		government "Test Dummy"
		ship "Quicksilver" "Syndicate Test Vessel"
		system destination
		dialog "You scan the disabled craft and take careful measurements of the battle damage. Time to deliver the results on <planet>."
	on visit
		dialog "You forgot to either disable or scan the target dummy ship in <system>! You'll need to head back there and do that before you can return here for payment."
	on complete
		payment 40000
		dialog "You transmit the scan results to a team of eager engineers and collect your payment of <payment>."


mission "Syndicate target practice [2]"
	name "Syndicate target practice"
	job
	repeat
	description "Disable the robotic target dummy ship in <system>, collect test data for Syndicate engineers by scanning its cargo, and land on <planet>. Warning: the target ship is programmed to engage in self-defense behaviors to ensure a realistic simulation. Payment is <payment>."
	source
		government Syndicate
	destination
		distance 1 3
		government Syndicate
	to offer
		random < 20
		"combat rating" > 150
		"combat rating" < 1000
	npc save disable "scan cargo"
		personality staying heroic target
		government "Test Dummy"
		ship "Splinter" "Syndicate Test Vessel"
		system destination
		dialog "You scan the disabled craft and take careful measurements of the battle damage. Time to deliver the results on <planet>."
	on visit
		dialog "You forgot to either disable or scan the target dummy ship in <system>! You'll need to head back there and do that before you can return here for payment."
	on complete
		payment 60000
		dialog "You transmit the scan results to a team of eager engineers and collect your payment of <payment>."


mission "Syndicate target practice [3]"
	name "Syndicate target practice"
	job
	repeat
	description "Disable the robotic target dummy ship in <system>, collect test data for Syndicate engineers by scanning its cargo, and land on <planet>. Warning: the target ship is programmed to engage in self-defense behaviors to ensure a realistic simulation. Payment is <payment>."
	source
		government Syndicate
	destination
		distance 1 3
		government Syndicate
	to offer
		random < 20
		"combat rating" > 1000
	npc save disable "scan cargo"
		personality staying heroic target
		government "Test Dummy"
		ship "Vanguard" "Syndicate Test Vessel"
		system destination
		dialog "You scan the disabled craft and take careful measurements of the battle damage. Time to deliver the results on <planet>."
	on visit
		dialog "You forgot to either disable or scan the target dummy ship in <system>! You'll need to head back there and do that before you can return here for payment."
	on complete
		payment 100000
		dialog "You transmit the scan results to a team of eager engineers and collect your payment of <payment>."
