# 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.

phrase "deep mystery cube pickup"
	word
		`As instructed, you`
		`You`
	word
		` `
	word
		`open a deposit box`
		`open a storage locker`
	word
		` `
	word
		`in an unmarked and uninhabited warehouse`
		`near your landing site`
	word
		` `
	word
		`and pick up the mystery package. It is a small black cube, about two centimeters to a side, surprisingly heavy for its size, with no markings of any kind.`
	word
		` `
	word
		`Odd.`
		`Odd.`
		`Strange.`
		`Strange.`
		`You think you see a shady figure watching you, but it could be your imagination.`
		`You overhear someone giving your description, but you can't see where it's coming from or who they're talking to.`
		`As you leave, you make eye contact with a dangerous-looking individual. Were they watching you? Probably a coincidence.`

phrase "deep mystery cube dropoff payment"
	word
		`As instructed, you`
	word
		` `
	word
		`leave the mystery cube by the side of the road a few kilometers away from the spaceport.`
		`leave the mystery cube behind a rickety-looking wooden tower.`
		`bury the cube out in the middle of nowhere before landing in the spaceport.`
		`hand the cube to the first beggar woman you see planetside. She accepts it without a word, and leaves.`
		`drop the cube at a warehouse. Nobody comes around to collect it.`
	word
		``
		` "This has to be legal, or they couldn't post it to the job board," you remind yourself.`
	word
		` `
	word
		`Your bank account immediately notifies you that the agreed-upon payment of <payment> has been deposited. You wonder how they knew.`

phrase "deep mystery cube dropoff station payment"
	word
		`As instructed, you`
	word
		` `
	word
		`leave the mystery cube in the second supplies cabinet you come across.`
		`leave the mystery cube in an unscrewed air vent.`
		`hand the cube to the third tourist couple you see on the station. They accept it without a word.`
		`drop the cube into a copper trash can in the spaceport.`
		`drop the cube into a laundry chute.`
	word
		``
		` "This has to be legal, or they couldn't post it to the job board," you remind yourself.`
	word
		` `
	word
		`Your bank account immediately notifies you that the agreed-upon payment of <payment> has been deposited. You wonder how they knew.`

mission "Mystery Cube Delivery Job [0]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 25
		"combat rating" > 35
	source
		attributes "deep"
	destination
		distance 7 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Hai" "Quarg"
		not attributes "station"
	on accept
		dialog phrase "deep mystery cube pickup"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		"mystery cube" ++
		payment 5000 1000
		dialog phrase "deep mystery cube dropoff payment"
	npc
		government "Bounty Hunter"
		personality nemesis disables waiting plunders
		system
			distance 6 9
		fleet "Bounty Hunters"


mission "Mystery Cube Delivery Job [1]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes "deep"
	destination
		distance 9 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Hai" "Quarg"
		not attributes "station"
	on accept
		dialog phrase "deep mystery cube pickup"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		"mystery cube" ++
		payment 5000 1000
		dialog phrase "deep mystery cube dropoff payment"
	npc
		government "Bounty Hunter"
		personality nemesis disables waiting plunders
		system
			distance 6 9
		fleet "Bounty Hunters"


mission "Mystery Cube Delivery Job [2]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes "deep"
	destination
		distance 9 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Hai" "Quarg"
		not attributes "station"
	on accept
		dialog phrase "deep mystery cube pickup"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		"mystery cube" ++
		payment 5000 1000
		dialog phrase "deep mystery cube dropoff payment"
	npc
		government "Bounty Hunter"
		personality nemesis disables waiting plunders
		system
			distance 6 9
		fleet "Bounty Hunters"


mission "Mystery Cube Delivery Job [3]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes "deep"
	destination
		distance 9 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Hai" "Quarg"
		not attributes "station"
	on accept
		dialog phrase "deep mystery cube pickup"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		"mystery cube" ++
		payment 5000 1000
		dialog phrase "deep mystery cube dropoff payment"
	npc
		government "Bounty Hunter"
		personality nemesis disables waiting plunders
		system
			distance 6 9
		fleet "Bounty Hunters"


mission "Mystery Cube Delivery Job Station"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 7
		"combat rating" > 35
	source
		attributes "deep"
	destination
		distance 9 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Hai" "Quarg"
		attributes "station"
	on accept
		dialog phrase "deep mystery cube pickup"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		"mystery cube" ++
		payment 5000 1000
		dialog phrase "deep mystery cube dropoff station payment"
	npc
		government "Bounty Hunter"
		personality nemesis disables waiting plunders
		system
			distance 6 9
		fleet "Bounty Hunters"


mission "Mystery Cube Retrieval Job"
	name "Mystery retrieval"
	job
	repeat
	description "Retrieve a package from <stopovers>, then return to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes "deep"
	stopover
		distance 9 20
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Hai" "Quarg"
		attributes "spaceport"
		not attributes "station"
	on stopover
		dialog phrase "deep mystery cube pickup"
	on visit
		dialog phrase "generic missing stopover or cargo"
	on complete
		"mystery cube" ++
		payment 5000 1000
		dialog phrase "deep mystery cube dropoff payment"
	npc
		government "Bounty Hunter"
		personality nemesis disables waiting plunders
		system
			distance 10 17
		fleet "Bounty Hunters"


mission "Transport scientists"
	name "Transport scientists"
	description "A team of <bunks> scientists needs some research notes analyzed at the facility on <stopovers>. Take the scientists there and then return them to <planet> for <payment>."
	job
	repeat
	to offer
		random < 15
	passengers 5 16
	source
		attributes "deep"
	stopover
		attributes "research"
		distance 2 50
	on stopover
		dialog "The scientists have been giddily discussing the results of their research during the entire trip. You're happy for a bit of peace and quiet as they make tracks for a prominent research lab to have the results analyzed. You prepare for the return journey to <planet>."
	on visit
		dialog phrase "generic missing stopover or passengers"
	on complete
		dialog "You bid goodbye to the scientists and accept your payment of <payment>."
		payment
		payment 30000


mission "Escort science vessel"
	description "The crew of the science vessel <npc> requests an escort to <stopovers> where they plan to study some unusual phenomena. Escort them there and then return them to <planet> for <payment>."
	job
	repeat
	to offer
		random < 15
		"combat rating" > 50
	source
		attributes "research"
	stopover
		attributes "quarg" "pirate" "volcanic" "frontier" "dirt belt" "north" "south"
		distance 6 50
	npc
		government "Pirate"
		personality nemesis waiting plunders
		system
			distance 2 3
		fleet "pirate raid"
	
	npc accompany save
		government "Merchant"
		personality escort timid
		fleet
			names "deep"
			variant
				"Scout"
			variant
				"Bounder"
			variant
				"Star Queen"
	on stopover
		dialog "The <npc> lands alongside you and teams of scientists wearing crisp white lab coats and serious-looking boots and gloves descend on the test site with all manner of exotic equipment. As they take their measurements, you prepare for the return journey to <planet>."
	on visit
		dialog "You have reached <planet>, but you can't complete this mission until the <npc> has visited <stopovers> with you and then joined you here."
	on complete
		dialog "You bid goodbye to the captain of the <npc> and accept your payment of <payment>."
		payment
		payment 60000

phrase "academic conference recording payment"
	word
		`You touch down on <planet> and make your way to the conference hall at a grand university. The provided credentials gain you access and you set up the recording equipment at the back of the room.`
	word
		` `
	word
		`The panelists are electrifying, speaking eloquently on a variety of cutting-edge topics in the sciences and humanities. The experience leaves you feeling remarkably optimistic about the future of humanity here in the stars.`
	word
		` `
	word
		`You transmit the video to your contact on <origin> and receive your payment of <payment>.`

mission "Record academic conference"
	job
	repeat
	description "Record an academic conference on <destination> for professors who cannot attend. Credentials and recording equipment will be provided. Payment is <payment>."
	cargo "recording equipment" 1
	to offer
		random < 15
	source
		attributes "deep"
	destination
		attributes "research" "quarg" "rich" "paradise"
		distance 4 10
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		dialog phrase "academic conference recording payment"
		payment 5000 1000
