# 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 "Care package to <planet>"
	job
	repeat
	deadline
	description "An anxious mother will pay you <payment> to deliver a care package of <cargo> to her child studying on <destination> by <date>."
	cargo "Food" 1
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 2 5
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "paradise" "research" "rich"
	on complete
		payment
		payment 5000
		dialog "Still wondering why one university student would possibly need such a large quantity of <commodity>, you deliver the interstellar care package and collect your payment of <payment>."


mission "Birthday supplies to <planet>"
	job
	repeat
	deadline
	description "An elderly couple wishes to contribute <cargo> for their grandchild's birthday bash on <destination> by <date>. Payment is <payment>."
	cargo "Luxury Goods" 1 3
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "paradise" "rich" "core" "near earth"
	on complete
		payment
		payment 5000
		dialog "You deliver the cargo to the garden of an imposing mansion in the countryside, wherein some pouty young sprout is throwing a very conspicuous fit at the center of a swarm of guests. The parents sheepishly hand you your payment of <payment>."


mission "Art delivery to <planet>"
	job
	repeat
	deadline
	description "Deliver <cargo> for an upcoming art exhibition on <destination> by <date>. Payment is <payment>."
	cargo "Luxury Goods" 3 8
	to offer
		random < 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "rich"
	destination
		distance 2 5
		attributes "paradise"
	on complete
		payment
		payment 5000
		dialog "Your ship is directed to the rear loading dock of a palatial complex where your cargo of <commodity> is unloaded. You collect your payment of <payment>."


mission "Newlyweds to <planet>"
	job
	repeat
	deadline
	description "This pair of newlyweds seeks passage to reach their honeymoon on <destination> by <date>, along with <tons> of their wedding gifts. They will pay you <payment> to take them there."
	passengers 2
	cargo "wedding gifts" 2 4
	to offer
		random < 10
	on offer
		require "Luxury Accommodations"
	source
		attributes "paradise"
	destination
		distance 2 15
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Quarg"
		attributes "paradise" "rich" "core" "near earth"
	on complete
		payment 10000 250
		dialog "You bid the two lovebirds goodbye on <planet> and collect your payment of <payment>."


mission "Theater props to <planet>"
	job
	repeat
	deadline
	description "A theater troupe on <destination> needs a delivery of <tons> of special <commodity> to use as props in an upcoming performance on <date>. Payment is <payment>."
	cargo "Luxury Goods" 9 15
	to offer
		random < 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "rich" "urban"
	destination
		distance 2 8
		attributes "paradise"
	on complete
		payment
		payment 8000
		dialog "Your ship is directed to the rear loading dock of a sprawling entertainment complex where your cargo of <commodity> is unloaded. You collect your payment of <payment>."


mission "Fine food to <planet>"
	job
	repeat
	deadline
	description "A highly-rated restaurant on <destination> seeks to acquire <tons> of fine <commodity> by <date>. Payment is <payment>."
	cargo "Food" 9 25
	to offer
		random < 10
	source
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "farming" "fishing"
	destination
		distance 2 10
		attributes "paradise"
	on complete
		payment
		payment 8000
		dialog "Your ship is directed to the rear loading dock of a very impressive eatery. White-gloved waiters gingerly unload the cargo of <commodity> and relay your payment of <payment>."


mission "Transport partiers [1]"
	name "Party-goers to <planet>"
	job
	repeat
	description "This group of <bunks> university students is willing to pay <payment> to have a huge party on <destination>, along with <tons> of their completely legal pharmaceuticals."
	passengers 7 12
	cargo "pharmaceuticals" 2 4
	illegal 1000 `It turns out that the "completely legal pharmaceuticals" in your hold are not so completely legal after all. The officers who confiscate the goods spend a long time talking with one of the students, whom you suspect to be politically connected. You're not surprised by the small size of the fine you receive as well as the fact that nobody was arrested.`
	stealth
	to offer
		random < 10
	on offer
		require "Luxury Accommodations"
	source
		attributes "paradise"
	destination
		distance 4 12
		attributes "tourism"
	on complete
		payment 10000 200
		dialog "You're not sorry to say goodbye to the rowdy and uncouth troublemakers you've been transporting. Their parents send you your payment of <payment> with not a word of acknowledgement."


mission "Transport partiers [2]"
	name "Party-goers to <planet>"
	job
	repeat
	description "This group of <bunks> university students is willing to pay <payment> to have a huge party on <destination>, along with <tons> of their snacks and school supplies."
	passengers 7 12
	cargo "snacks and school supplies" 2 4
	to offer
		random < 10
	on offer
		require "Luxury Accommodations"
	source
		attributes "paradise"
	destination
		distance 4 12
		attributes "tourism"
	on complete
		payment 5000 190
		dialog "You bid goodbye to the students, who behaved surprisingly well during the journey - yielding many fascinating conversations on subjects as diverse as philosophy, microfluidics, and intergalactic economics. Their proud parents send you your payment of <payment>."

mission "Food donations to <planet>"
	job
	repeat
	description "The fine citizens of <origin> seek a compassionate captain for a mission of mercy to donate <cargo> to the undernourished souls of <destination>. Payment is <payment>."
	cargo "Food" 7 2 .1
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 2 16
		attributes "rim" "south" "dirt belt" "frontier" "military"
	on complete
		payment 1000 90
		dialog "You collect your payment of <payment>, but not before noticing the general robustness and ample bellies of the dockworkers unloading the donation of <commodity>."


mission "Clothing donations to <planet>"
	job
	repeat
	description "The fine citizens of <origin> seek a compassionate captain for a mission of mercy to donate <cargo> to the under-dressed and fashion-deprived souls of <destination>. Payment is <payment>."
	cargo "Clothing" 7 2 .1
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 2 16
		attributes "rim" "south" "dirt belt" "frontier" "military"
	on complete
		payment 1000 100
		dialog "You collect your payment of <payment>, but not before noticing the fine quality of the clothes worn by the dockworkers unloading the donation of <commodity>."


mission "Medical aid to <planet>"
	job
	repeat
	description "The fine citizens of <origin> seek a compassionate captain for a mission of mercy to donate <cargo> to the suffering souls of <destination>. Payment is <payment>."
	cargo "Medical" 7 2 .1
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 2 16
		attributes "rim" "south" "dirt belt" "frontier" "military"
	on complete
		payment 1000 100
		dialog "You collect your payment of <payment>, but not before noticing the general health and vigor of the dockworkers unloading the donation of <commodity>."


mission "Charity goods to <planet>"
	job
	repeat
	description "The fine citizens of <origin> seek a compassionate captain for a mission of mercy to donate <cargo> to the naive and culturally-underexposed souls of <destination>. Payment is <payment>."
	cargo "Luxury Goods" 7 2 .1
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 2 16
		attributes "rim" "south" "dirt belt" "frontier" "military"
	on complete
		payment 1000 100
		dialog "You collect your payment of <payment>, but not before noticing the quality of the clothes, jewelry, and personal electronics carried by the dockworkers unloading the donation of <commodity>."


mission "Party goods to <planet>"
	job
	repeat
	deadline
	description "Planetside supplies of <commodity> are running low in the wake of an important gala. Pick up <tons> of it on <stopovers> and return to <origin> by <date>. Payment is <payment>."
	cargo "Luxury Goods" 10 2 .1
	to offer
		random < 10
	source
		attributes "paradise"
	stopover
		distance 5 9
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "paradise" "rich"
	on stopover
		dialog "You oversee the loading as dockworkers carry box after box of <commodity> onto your ship. Must be some party."
	on visit
		dialog "You've returned to <planet>, but forgot to pick up the <commodity> on <stopovers> first! Better head there before it's too late."
	on complete
		payment
		payment 10000 135
		dialog "Your ship is directed to land on a makeshift tarmac near a sprawling greenfield where novelty castles are being constructed. Sharply-dressed stewards unload the <commodity> and you collect your payment of <payment>."


mission "Estate assets to <planet>"
	job
	repeat
	description "Trustees are seeking starship captains willing to deliver individual portions of a recently deceased upstanding citizen's estate - <cargo> - to the upcoming estate sale on <destination>. Payment is <payment>."
	cargo "Luxury Goods" 18 2 .15
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 3 12
		attributes "rich"
	on complete
		payment
		payment 10000
		dialog "As you watch the dockworkers unload crate after crate, you can't help but wonder what would drive someone to collect such a huge quantity of <commodity>. You collect your payment of <payment>."


mission "Contract laborers to <planet>"
	job
	repeat
	description "Return to <destination> after picking up <bunks> contract laborers located on <stopovers> who are eager to experience the luxury of the paradise worlds. Payment is <payment>."
	passengers 13 30
	to offer
		random < 10
	source
		attributes "paradise"
	stopover
		distance 7 15
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
		attributes "mining" "fishing" "textiles" "factory" "farming" "oil"
	on stopover
		dialog "The shabbily-dressed young men and women in the group don't look nearly as happy to be boarding your ship as you expected, given the new opportunity that awaits them. They shuffle wearily up the ramp for the return trip to <planet>."
	on complete
		payment 10000 50
		dialog "The bedraggled contract laborers kept to themselves and didn't say a word to you throughout the entire trip. The scruffy foreman who receives you on <origin> seems pleased, however. He hands you your payment of <payment>."


mission "Waste disposal on <planet>"
	job
	repeat
	description "Urgent waste disposal is needed. Transport <cargo> to <destination> to keep property values from falling. Payment is <payment>."
	cargo "Garbage" 30 2 .03
	to offer
		random < 10
	source
		attributes "paradise"
	destination
		distance 2 20
		attributes "dirt belt"
	on complete
		payment
		dialog "You drop off the exceptionally foul shipment of <commodity> on <planet>, already looking forward to the chemical bath your cargo hold is going to receive. You collect your payment of <payment> and hope that somebody around here knows what to do with the unpleasant mess you dropped off."


mission "Transport high-class tourists"
	description "Bring <bunks> outrageously wealthy tourists on a fabulous journey to the wild and exotic world of <destination>. Payment is <payment>."
	job
	repeat
	passengers 8 22
	to offer
		random < 10
	on offer
		require "Luxury Accommodations"
	source
		attributes "paradise"
	destination
		attributes "religious" "quarg" "pirate" "volcanic" "frontier"
		distance 8 20
	on complete
		dialog "Your passengers begin to wander off, some of them sporting puzzled looks as the memories of glossy photos in the brochures give way to reality. You collect your payment of <payment>."
		payment 25000 250


mission "Pleasure cruise security"
	description "Escort the <npc> on a pleasure cruise to the wild and exotic planet of <stopovers> along with <tons> of their <commodity>, then return to <destination>, where you will be paid <payment>."
	job
	repeat
	cargo "Luxury Goods" 20 35
	to offer
		random < 10
		"combat rating" > 10
	source
		attributes "paradise" "rich"
	stopover
		attributes "tourism" "religious" "quarg" "pirate" "volcanic" "frontier" "moon" "fishing"
		distance 6 15
	destination
		attributes "paradise"
		distance 1 6
	npc accompany save
		government "Merchant"
		personality escort timid
		fleet
			names "civilian"
			variant
				"Star Queen"
	on stopover
		dialog "The passengers of the <npc> wander off, bedecked in the most conspicuous tourist attire they seem to have been able to find, and begin oohing and aahing at the exoticism of this faraway world. Hopefully none of them gets robbed. You prepare for the return journey to <destination>."
	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 50000
