GalCop Missions
By phkb

Overview
========
This OXP adds some local missions to the Bulletin Board system, to add more things to do in and around each system. Very little by way of new ships, stations, equipment or AI's has been added to the game. The idea was to simply make use of the existing assets in new and interesting ways. 

There are a number of different missions available, and the availability of these missions depends on a number of factors (score, system tech level, government type, installed equipment etc). Missions can be offered in a number of ways: via the Bulletin Board, from scooped escape pods, from passing ships, or from emails.

This OXP also includes the concept of "mission chains", in that completing one mission may trigger a second mission, which could then trigger a third mission, and so on. Sometimes the player is given an option as to whether they want to perform the secondary mission, and sometimes they won't be.

Generally, all the missions are optional. If you don't visit the Bulletin board, you won't see what's on offer, and very little in the game will change if you don't do the missions. You may occasionally be offered a mission when scooping escape capsules, and sometimes passing ships will pass on requests. 

Gameplay impacts
================
Some of the missions in this pack can impact on other areas of the game. For instance, one type of mission, if completed successfully, will result in a higher frequency of mis-jumps to a particular system. Some missions can effect the commodities of a station, or the availability of equipment at a station. It will hopefully be obvious when these changes take place (ie as a result of completing a mission).

Disease Outbreaks
=================
Another potential impact is on systems that are reported to have disease outbreaks. If a major outbreak occurs, GalCop might choose to lock down the system, preventing the disease from spreading off-world. When this happens, you might find you can’t jump to a particular system without a permit. Some pilots have reported there are ways around GalCop’s restrictions, but even if you do, you might find that GalCop stations in that system will physically prevent you from docking, and inattentive pilots might find their ship taking damage rather than entering the docking slot.

When a disease outbreak restriction is in effect, there might be missions you can undertake that will grant you the required permissions and passcodes to successfully enter the system and dock at the main station. These missions will likely be in systems close to where the outbreak is occurring. 

Required Equipment
==================
Fuel/Cargo scoops and the Advanced Space Compass are required for many of the missions. If your ship lacks these items, certain missions will be unavailable.

Broadcast Comms MFD is also a requirement for many of the missions, as it provides an interface for ship-to-ship communications. If you have not purchased this item, some of the missions will be unavailable.

New Equipment
=============
Some new equipment has been added with this OXP.

Range Finder MFD
----------------
When this item is purchased, installed and primed, you can press the "b" key (Mode) to switch the mode between escape capsules, black boxes, asteroids, ships, communication relays and cargo pods. Pressing the "n" (Activate) key will initiate a scan of the local area, up to a distance of 200km. The scan will take approximately 2 seconds to run, but will be run continuously until deactivated with the "n" key again. Any objects of the selected type within range will be displayed, along with the distance to the object. A "+" or "-" indicator will be displayed next to each item, showing whether you are moving away from (+), or towards (-), the target. When the target is less than 50km away, a simplified directional indicator will be shown instead, but outside this distance, the range finder does not provide directional information. The information returned by the scan is displayed in an MFD, so you will need to select an MFD slot (using the ":" key) and then select the Range Finder MFD (using the ";" key).

Direction indicators when distance < 50km:
	O - Target is generally ahead of you
	o - Target is ahead of you.
	X - Target is directly ahead of you.
	< - Target is to the left
	> - Target is to the right
	^ - Target is above you
	v - Target is below you
	A - Target is behind you (ie Aft)

The Range Finder MFD is available from all TL5 and greater systems for 250 cr.

Note: When the Range Finder is activated, there will be a drain on your ships energy. If the Ship Configuration OXP is installed, engaging the Range Finder will also generate cabin heat.

Range Finder Extender
---------------------
An additional device, a Range Finder Extender, which increases the range of the scanner to 500km, as well as boosting the range for the simplified directional indicator to 75km, is available from all TL9 systems for 2650 cr.

Comms Relay Beacon Switch
-------------------------
This device will be issued to the player when attempting particular missions, although it can also be purchased independently from TL3 systems for 60cr. It is a primable piece of equipment that will communicate with any communication relays in the system and request the beacon to be switched on for a short period of time. The device can be used 3 times before needing to be recharged. Using the device will incur a 5% penalty on whatever mission the communication relay relates to.

Comms Relay Beacon Switch Recharge
----------------------------------
This item will replace all the degraded parts of the switch, allowing it to be used 3 more times. The cost will vary, based on how degraded the current parts are. It is available in all systems.

Cargo Stopper
-------------
This device makes use of the tractor beam which forms part of the cargo scoops. When your ship is aimed at cargo cannisters that are floating away, it will automatically use the tractor beam to bring the cargo to a stop. Cargo must be within approximately 2km of your ship, and in the centre area of your front viewscreen, otherwise the tractor beam can't reach it.

Available from TL6 systems for 30cr.

Ejection Damper
---------------
This device attaches to the end of the cargo scoop, and when engaged, will apply some force to any ejected item so that it will slow to a stop within a short period of time, rather than floating away at a constant rate. 

Once purchased, the unit must be turned on before any cargo will be impacted. Prime the "Ejection Damper" equipment, and press either the "Mode" (b) or "Activate" (n) key to turn the unit on. Pressing those keys a second time will turn the unit off. The unit is automatically turned off whenever your ship docks. 

When the unit is on, all cargo ejected will be slowed to a stop. The device can be used on 50 ejected items before it needs to be replaced. 

Available from TL7 systems for 100cr.

Required OXP's
==============
The following OXP's are listed as required:

- Bulletin Board System (1.9)
	Required as all missions are accessed through this interface.

- Broadcast Comms MFD (v1.2.3)
	Required for missions that need ship-to-ship communications to take place. Also used for accepting or declining secondary missions.

- Email System (v1.7.2)
	Provides another interface for missions to be offered.

- GNN (v1.0)
	Provides text randomisation system used for mission descriptions. Some news items will be published periodically, which can add some flavour to game events. 

Recommended OXP's
=================
The following OXP's are listed as recommended, in that additional text and/or gameplay options will become available if they are installed.

- Manifest Scanner
	Can aid with finding cargo in other ships, which can be very important if you are on a mission to steal certain cargo.

- Cargo Scanner
	Can help with some missions to identify the contents of cargo containers.
	
- Black Market
	Some additional opportunities are available through the Black Market interface in this OXP.

- Satellites 
	Some missions are only available with this pack installed.

What else is in the box?
========================
Reputations: The missions available to the player originate from a number of different entities - governments, corporations, factions of every stripe. As missions are performed for these entities your reputation will increase. However, given the number of entities involved, a new F4 interface screen has been created that combines all reputation information into an easy to read display. Also, any awards received can be displayed as well.

If you have the Library OXP installed, you additionally have the option of importing a variety of internal and OXP reputations into the screen, rather than having those reputations displayed on the F5F5 Manifest screen. 

License
=======
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/

Thanks to Svengali and Disembodied for their PhraseGen tool.
Thanks to Ramirez for his remote mine model (from the "Missiles and Bombs" OXP).
Thanks to these forum members who have submitted bug reports or suggestions that have helped make the OXP better: Nite Owl, herodotus, Astrobe, Damocles Edge, Cody, Bogatyr, pagroove, gsagostinho, Cmd. Northgate, Balisongdalo, javirodriguez, lohcek, and MrFlibble.
Special thanks to cim who has very kindly given permission to include his "Black Box" model from Rescue Stations in this OXP.

No entry sign image from http://simpleicon.com/no_entry_sign_1.html
Warning sign image from http://simpleicon.com/warning-2.html
Tick image from http://simpleicon.com/ok_1.html
Pill image from http://simpleicon.com/pill_3.html
Star badge from https://www.iconfinder.com/icons/1031361/award_badge_best_prize_reward_icon#size=512 (Free for commercial use)
Round badge from https://www.iconfinder.com/icons/465072/achievement_award_label_medal_politic_win_winner_icon#size=512 (Free for commercial use)
Star medal from https://www.iconfinder.com/icons/111092/medal_icon#size=512  (CC BY-SA 3.0)
Star medal on ribbon from https://www.iconfinder.com/icons/316245/medal_icon#size=512 (Free for commercial use)
Trophy image from http://simpleicon.com/trophy_1.html
Cup image from http://simpleicon.com/cup.html
Candle image from http://simpleicon.com/candle-2.html
Family image from http://simpleicon.com/chat_10.html
Education image from http://simpleicon.com/wp-content/uploads/knowledge.png
Head image from https://www.shareicon.net/download/2016/04/17/751132_people_512x512.png
Raining image from http://simpleicon.com/wp-content/uploads/lightning__raining_2.png
Biohazard image from https://www.freepik.com/free-vector/biohazard-yellow-circle-sign-graphic-illustration_2631298.htm#fromView=search&page=1&position=0&uuid=040f7aab-af6b-4231-9d3d-7f20cc869cd0" Image by rawpixel.com on Freepik
Tractor beam sound effect by Finnolia Productions Inc from http://www.soundeffectsplus.com (license https://www.soundeffectsplus.com/content/license/)
Sound effect from https://freesound.org/people/jmorrisoncafe330/sounds/110097/ (license https://creativecommons.org/licenses/sampling+/1.0/)
Sound effect from https://freesound.org/people/klankbeeld/sounds/169334/ (license https://creativecommons.org/licenses/by/3.0/)
Sound effect from https://freesound.org/people/klankbeeld/sounds/239633/ (license https://creativecommons.org/licenses/by/3.0/)
Sound effect from https://freesound.org/people/flint10/sounds/197547/ (license https://creativecommons.org/publicdomain/zero/1.0/)
Sound effect from https://freesound.org/people/Robinhood76/sounds/219853/ (license https://creativecommons.org/licenses/by-nc/3.0/)
Sound effect from https://freesound.org/people/Robinhood76/sounds/333230/ (license https://creativecommons.org/licenses/by-nc/3.0/)
Sound effect from https://freesound.org/people/staticpony1/sounds/249597/ (license https://creativecommons.org/publicdomain/zero/1.0/)
Sound effect from https://freesound.org/people/TheBillinator3000/sounds/333845/ (license https://creativecommons.org/publicdomain/zero/1.0/)
Sound effect from https://freesound.org/people/InSintesi/sounds/346295/ (license https://creativecommons.org/licenses/by/3.0/)
Sound effect from https://freesound.org/people/lennyboy/sounds/275186/ (license https://creativecommons.org/publicdomain/zero/1.0/)
Sound effect from https://freesound.org/people/AlienXXX/sounds/168511/ (license https://creativecommons.org/licenses/by/3.0/)

Discussion
==========
This OXP is discussed at this forum link: http://bb.oolite.space/viewtopic.php?f=4&t=18745

Version History
===============
0.15
- Updated methods for third party heat application in Ship Configuration.
- Fixed issue with Nova mission detection for creating award.

0.14
- Market prices on disease outbreak systems now boosted, and quantities reduced. If you can get there, it's probably worth it.
- Added a hint for the player if they attempt to jump into a quarantined system and are blocked by GalCop.

0.13
- Added ability to call functions when testing conditions.

0.12
- Added Galactic Navy as a reputation entity, and added it to some missions.

0.11
- Fixed issue with "Recover stolen items" mission, when recovering the stolen documents, where the mission could not be completed.
- Darkened overlay images for better compatibility with Oolite 1.92.

0.10
- Fixed more issues with the Satellite missions.

0.9
- Really corrected issue preventing some satellite missions from being completable if the Galactic Almanac OXP is installed.
- Sound now plays when a fuel leak occurs.
- Tweaks to the reputation system to allow for complete localisation through descriptions.plist.
- Made some reputations visible on the reputations screen, even if the actual reputation value is zero.
- Fixed issue where some missions with a minimum player score were being offered to players under that value.
- Moved as much text as possible into descriptions.plist for slightly easier localisation.
- Added prebuilt descriptions for each mission that uses PhraseGen, so PhraseGen can be avoided when translating text. See notes in descriptions.plist or galcopbb_missiondetails.js for details.
- Bug fixes.

0.8.2
- Fixed referencing errors in spawning scripts for "Recover special cargo" (type 24) and "Black Box recovery" (type 22) missions.
- Fixed issue with mission state not being correctly recorded when the derelict is destroyed in black box recovery missions (types 22/23).
- Fixed issue with invalid functions calls for meet ship missions (type 30).
- Fixed issue with the meet ship mission, delivered by email (type 30), that wouldn't generate a second mission when you meet the target.
- Added clarity to "Computer Delivery" mission (type 42), so when the target ship is destroyed, the mission is failed.
- Removed "Computer Delivery" from being a follow-up mission.
- Fixed reference error bugs with investigation missions (types 130-138).
- Fixed issue with email missions causing a JS exception.
- Fixed invalid descriptions lookup key.
- Grammar corrections.

0.8.1
- Fixed referencing error in data cache missions (type 41) that was preventing the mission from being completable.

0.8
- Added a 10% penalty to cargo recovery missions (type 6) for each cargo pod the player destroys.
- Destroying a cargo pod in a "Cargo Recovery" mission will now trigger a mission status update.
- Fixed multiple issues with the descriptive text for "Cargo Recovery" missions (type 6).
- For type 6/7 missions, changed reward calculation to be based on the value of the commodity being collected.
- Excluded escape pods from being considered in the "Pirates for Hire" mission (type 8) when slaves are being sought.
- Adjusted spawning rules for ship with stolen items (type 33), to ensure they always spawn in scanner range of the player.
- Fixed bug in special delivery mission (type 40) that was preventing key information from being updated.
- Tweaked special delivery mission (type 40) so mission complete percentage doesn't go above 100%.
- Added missing position to a "Computer delivery" mission (type 42) description.
- Bug fixes in disease outbreak script (types 50-52).
- Fixed issue with disease outbreak systems, where system traffic wasn't being reduced, and GalCop station docking wasn't being prevented, in the case where the player doesn't have a valid permit.
- Added a screen displayed when docking at a station to inform player of disease lockdown systems with 7LY.
- Fixed grammar in descriptive text for "Hacking the witchpoint" mission (type 60).
- Fixed issues with mission details and grammar for station disrupt missions (type 63).
- Fixed issues preventing the disrupt station missions (type 63/64) from being completable.
- Reduced eject distance for the "Acquire GalCop Software" mission (type 65).
- Fixed issues preventing the "Acquire GalCop Software" mission (type 65) from being completable.
- Beacon labels are now turned off after collecting data from Solar Monitors (type 71).
- Updated manifest and BB status entries for donation missions (types 80-87) so that after a partial donation the status shows how much is remaining to donate.
- Removed waypoints from terminated or failed Seismic Scan missions (type 100).
- Fixed issue with manifest entry for "Asteroids in low orbit" mission (type 102), where it did not show progress towards completion.
- Fixed issue with completing the "Deliver Seismic Scan Data" mission (type 104), where the equipment item wasn't being removed.
- Destroying a satellite will now update the mission objectives (types 110-124).
- Corrected issue preventing some satellite missions from being completable if the Galactic Almanac OXP is installed.
- Fixed bug when spawning satellite defenders that was preventing the AI from being switched.
- Tweaked how far you have to go past the reference point before the unidentified signal is started in an Investigation mission (type 130-138).
- Tweaked descriptions for investigation missions to include a "reference point" past which a fair distance must be travelled in order to find the signal.
- Tweaked the location of unidentified signals in Investigation missions (type 130-138).
- Fixed spelling in "Defend station from attack" mission (type 152) description.
- Added some lurking pirates outside pirate bases.
- Added some extra details to manifest entry for missions that send to you a specific location in a system.
- Ejection damper now includes "uses left" in a console message when turned on and again when used.
- Switched a few mission types to stop the clock when complete.
- Switched a lot of mission types to be completable at any main station.
- Fixed issue that was preventing the Range Finder equipment from detecting mission-based escape pods.
- Fixed issue that was preventing the Range Finder equipment from detecting derelict ships.
- Added a simplified directional indicator to the Range Finder for when scanned items are less then 50km distant.
- Fixed issue where cargo collected for missions wasn't being handed over correctly and removed from the player's hold.
- Fixed issue where scooping more cargo than the mission requirement would cause some display and calculation irregularities.
- Fixed issue where the F5F5 manifest page wasn't getting updated correctly for missions that have multiple items to collect if items had been destroyed.
- Fixed various other grammar issues in mission text.
- Fixed grammar in readme.txt.
- Set global debug flag to false.
- Code refactoring.

0.7.0
- Fixed bug in "Extract telescope data" mission, where the wrong satellite types were being used in the calculations.

0.6.9
- Fixed issue where scooped Thargoid metal fragments were not being counted towards mission objective (type 13).
- Code refactoring.

0.6.8
- Fixed referencing errors with hit team docking notifications.
- Fixed JS error when in interstellar space while a slave rescue mission is active.
- Fixed JS error for disease outbreak systems.
- Fixed description for blackbox secondary mission that wasn't putting location into the details.
- Will now try up to 10 times to create a secondary mission after meeting a ship.
- When no secondary mission can be created after meeting a ship, a message providing some explanation is now given.
- Improved process for detecting and flagging alloys as having come from Thargoid vessels (type 13).
- Hit teams bug fixes.
- Bug fixes.

0.6.7
- Added mission type 18 to available missions.
- Fixed spelling error in function names for Collect ingredients mission (type 53).
- Fixed issue with possibly changing the status of the "defend the anaconda" mission (type 150) after completing it successfully.

0.6.6
- Turned off debug flag on investigation missions.

0.6.5
- Completing some missions will now reduce the players bounty.

0.6.4
- Fixed issue with the Reputations screen not showing some items.

0.6.3
- Removed customised PhraseGen code, made GNN a requirement for the OXP.

0.6.2
- Fixed a bug with donation missions and integration with Market Observer.

0.6.1
- Fixed error when repairing the Range Finder.
- Tweak to cargo stopper process for mild performance improvements when selecting targets.
- Fixes to the descriptions for slave repatriation missions (type 84).
- Fixes to the description for the Destroy Satellites mission (type 122).
- Donating cargo or slaves to charities will now update Market Observer (if installed).
- Adjusted time limit for satellite download missions.
- Tweaked manifest descriptions on satellite missions to better communicate distinct requirements for missions.
- Range Finder now compatible with GalTech Escape Pods.

0.6.0
- Cargo stopper is now activated automatically when cargo is targeted, in front of the player ship and in range, negating the need for priming and activating the equipment.
- Fixed stealing cargo missions, where it was possible to hand in cargo at stations other than the originating station.
- Improved mission status messages for stealing cargo missions to show how much has been collected.
- Bug fixes.

0.5.9
- Fixed some instances of timers being recycled while running.

0.5.8
- Fixed issue with delivery missions, where comms relay was not being spawned due to a Javascript error.

0.5.7
- Fixed some issues with retrieving data from stored settings used when the system populator runs.
- Cleaned up the process of setting ship scripts in all script files to prevent scripts not being present when required.

0.5.6
- Bug fix in spawning routine for derelict ships for black box missions (type 22).
- Fix to (hopefully) prevent scenario where mission ships were not being spawned.

0.5.5
- Small text adjustments for game consistency.
- Fix JS error in satellite missions.

0.5.4
- Improved logic for adding ships to a system.
- Fixed invalid reference error when generating missions.
- Better use of new functions available in later versions of Oolite.
- Corrected use of samplePrice method.

0.5.3
- The number of asteroids required to complete the Asteroid Removal missions (type 1) is now restricted to be less than the number of asteroids currently in the system.
- Fixed bug in the Hit Teams script where the definition of the "$initiateInvestigation" routine was inaccurately declared.

0.5.2
- Fixed invalid variable reference error.

0.5.1
- An email will now be sent to the player when they accept their first mission to Interstellar space, offering tips on how to enter interstellar space, and what to expect when they get there.

0.5.0
- Added some civil warzone missions (types 90, 91).
- Added defence missions (types 150, 152, 154, 156).
- Added a new delivery mission (type 46), which involves collecting cargo from a waypoint, and dropping it at another waypoint.
- Added a new investigation mission (136). Be afraid...
- Added secondary mission (type 74) to solar activity missions (70, 71, 73).
- Fixed error in description for solar activity mission (74).
- Fixed issue preventing the "gather ingredients" mission (53) from being created.
- Fixed issue with the "Remove Ejection Damper" equipment item, which wasn't removing the ejection damper equipment.
- Fixed issue with cargo recovery missions (6, 7), where ejecting and re-scooping cargo pods would throw the mission status out of kilter.
- Fixed manifest entry for the upload surveillance data mission (118) which was showing the wrong destination.
- Fixed some missions that were not including a player-rated bonus in their payment amounts.
- Defend satellite missions (124) were not being created for players with more than 64 kills.
- Upgrade satellite firmware missions (115) now have proper pass codes to transmit to the satellites.
- Tweaked the payment amount, and completion time requirement for satellite firmware update missions (115).
- Completing the delivery of personal messages for a dead pilot (141, secondary mission after investigation mission 132) now done manually.
- Limited some Thargoid missions to only be available in frontier systems.
- Updated description of Range Finder MFD equipment on F3 screen to include mention of cargo pods mode.
- Tweaks to the custom assassin AI routines to eliminate null target conditions.
- Various adjustments to the manifest entry for many missions.
- Spelling corrections.
- Bug fixes and code refactoring.
- Added a method to main script to allow for any mission to be easily tested during runtime ($testMissionType).

0.4.0
- Added "Cargo pod" mode to Range Finder.
- Fixed error with Range Finder when scanning for Black Boxes. If non-ship entities were in range (eg planet, sun), a Javascript error would occur.
- Changing the Range Finder mode will now clear the MFD of previous scan results.

0.3.7
- Fixed bug with missing variable declaration in failed mission function call.

0.3.6
- Removed debug flag that would cause a particular mission to always be generated.

0.3.5
- Fixed issue with secondary mission after investigation mission (132) not having correct destination on manifest.
- Code refactoring.

0.3.4
- Fixed title in manifest.plist file.
- Fixed missing reference error when completing data cache missions.
- Fixed missing reference error when completing black box missions.
- Fixed missing reference error when completing meet ship missions.
- Fixed missing reference error when completing hacking/restoring witchpoint beacon missions.
- Fixed missing reference error when completing some solar activity missions.
- Fixed missing reference error when completing some disease outbreak missions.

0.3.3
- Added some fallback code in case cargo pods are not spawned with our preferred barrel type.

0.3.2
- Fixed incorrect worldScript name references in Pirate Bases script.
- Added extra qualification to mission destination texts that refer to main planet, to help distinguish the main planet from any additional planets.
- Tweaked one investigation mission to limit its availability to more experienced players with an upgraded ship.
- Fixed issue with the Thargoid wreckage mission (13) which wasn't recognising wreckage collected in interstellar space.
- Removed debug log messages.

0.3.1
- Fixed spawning issues for investigation missions (types 130-139).
- Tweaked the power of the proximity mine.

0.3.0
- Added investigation missions (types 130-139).
- Switched from using a dummy alloy ship entity as a navigational beacon to using a visual effect.
- Code refactoring, improving code reuse.
- Split more mission specific functions out of general script file to associated script file.
- Fixed issue with some missions having a decimal amount as part of the payment. 
- Performance improvements when generating new missions for a system.
- Fixed status message with drug dealer mission (15).
- Bug fixes.

0.2.4
- Linked the MFD to Broadcast Comms MFD in the Auto-Prime Equipment OXP.
- Makes use of GNN OXP if installed.
- Improved handling of player ship death scenarios.
- Fixed linkage to Home System.

0.2.3
- Added the Ejection Damper equipment.
- Reduced the effective range of the Cargo Stopper to approximately 2km to make it slightly less OP.
- Added a sound effect for the tractor beam when activated.

0.2.2
- Tweaks to the positioning of ships for "Special Delivery" missions (40/41).
- Fixed issue with "Special Delivery" mission (40), where the target ship was not responding to the "I don't have any more" comms message.
- Tweaks to the scavenger AI, so the target ship doesn't jump out of the system prematurely.
- Added Advanced Space Compass as a requirement for "Special Delivery" missions (40).
- Removed some debug messages.

0.2.1
- Fixed issue with escape pod rescue missions (21, 22, 25) not being completable.
- Moved more interstellar populator routines into the correct methods.
- Removed some hard-coded scanner range values.
- Spelling corrections.

0.2.0
- Fixed issues with the "Collect cargo" (6/7) missions, where scooped cargo was being counted as destroyed instead of collected.
- Fixed issue with "Special Delivery" (40) missions where, if cargo was dumped and then re-scooped because it was drifting out of range, when the cargo was re-dumped the target ship was ignoring it.
- Fixed issues with missions that have multiple stages (types 41, 63, 64, 65, and 73) that weren't being initialised correctly and so would never start.
- Fixed issues with escape pod rescue missions (20) and runaway escape pod missions (25) that was preventing the escape pods from being spawned.
- Added a new device, a Comms Relay Beacon Switch, that is issued to the player for any "Collect data cache" (31) or "Special delivery" (41) mission. This device will turn on the comms relay beacon again after the initial transmission period has expired, although using it will incur a 5% payment reduction.
- Added a new device, the "Cargo Stopper", prime-able equipment available from TL6 systems, which, when pointed at moving cargo and then activated, will bring the cargo to a stop.
- Fixed issue where I.T.H.A. reputation was not being removed from the F5 page correctly when reputations were set to be moved to the "Reputations and Awards" page. 
- Forced bonus payment calculations to return an integer, rather than a decimal.
- Some mission text tweaks.

0.1.5
- Adjustments to the population routines for interstellar space.
- Fixed bug where reputation was not being applied correctly for missions where multiple reputation entities were defined.
- Fixed bug with distance calculation in the Disease Outbreak script.
- Adjusted time calculation for travel between threatened satellites during a satellite defend mission.
- Added reputation links to Home System OXP.
- Better handling of Combat Simulator.

0.1.4
- Adjusted calculation of the number of deaths from a disease outbreak.
- Fixes to secondary missions sourced from black boxes or escape pods or passing ships having a termination penalty.

0.1.3
- Reworked all the cargo collection mission types (8,9,10,11,13,14,15) so that mission updates happen when cargo is handed in, not when it is scooped (although a notification will still be given to the player that the cargo was suitable for the mission). Expiry time has also been removed, and maximum quantity can now be greater than the player's available cargo hold.
- Fixed issues with Thargoid wreckage collection missions, so alloys can now be successfully handed in, and (hopefully) alloys from any Thargoid warship (including OXP Thargoids) should now be acceptable.
- Applied some fixes for the "Stranded ship" mission to stop the ship from moving before receiving help.
- Code refactoring.
- Bug fixes.

0.1.2
- Tweaked the energy drain of the Range Finder.
- Added sound for when the Range Finder scan is stopped.
- Removed debug flag from "Thargoid wreckage" missions, so they shouldn't appear as frequently.
- Fixed cargo donation charity missions that were only being made available if the local market had slaves.
- Code refactoring and (hopefully) performance improvements.

0.1.1
- Fixed bug with Thargoid wreckage mission that was preventing the wreckage from being recognised.
- Made the "Collect Thargoid wreckage" mission have no expiry, and provided a means by which you can hand over incomplete amounts and continue.
- Removed debug flag from "Interstellar escape pod rescue" missions, so they shouldn't appear as frequently.

0.1.0
- Added some missions using Satellites OXP (types 110, 111, 113, 115, 122, 124).
- Fixed issue where emailed missions, or missions delivered via another ship, were not checking all the conditions, giving the player a mission they couldn't complete.
- Fixed issue with "Request for meeting" missions, where the target would not respond when the passcode was transmitted.
- Added additional text to mission briefing for missions that require an interstellar space destination to make it clearer this is required.
- Added additional text to mission briefing to make it clearer when a mission requires the player to return to the source system in order to complete it.
- Applied distance and player score bonuses to Special delivery missions (type 40).
- Fixed issue with the WBSA device not being start-able when the beacon is targeted.
- Fixed issue with the Range Finder not creating an energy drain.
- Mission text tweaks.

0.0.9
- Added "Gather ingredients" mission (type 53).
- Fixed issue where missions with a deposit could have a negative net payment if the player's reputation is low.
- Fixed issue with manifest entries not reflecting the state of progress correctly.
- Reworked how textures are specified in mission definitions.
- Added overlay images to charity missions.
- Added routines to control the creation of asteroid fields, so they will be created in the same place in each system, and reused for future missions.
- Fixed issues with mission descriptions missing some text elements.
- Fixed issue with cargo recovery mission text containing ">undefined".
- Fixed issue with RRS reputations causing a JavaScript error when opening the "Reputation and Awards" F4 screen.
- Headings on the reputations page will now be suppressed if there are no related items to display.
- Converted text for mission types 74, 100, 101 and 102 to use the PhraseGen tool.
- Some tweaks/fixes to mission text.
- Code refactoring.

0.0.8
- Better logic for determining what is a witchpoint buoy.
- Better client name generation using PhraseGen tool.
- Fixed minor text issue with the "decline mission" for escape pod messages.
- No mission accept/complete confirmation emails will be sent for secondary missions when the source of the mission is an NPC from an escape pod or a ship.
- If player ejects escape pod while pod occupant is communicating, conversation will stop and mission offering will be correctly terminated.
- Fixed error when scooping escape pod with no "crew" set (ie equivalent to scooping 1t slaves)
- Improved robustness of "Rescue Stricken Ship" missions.
- Fixed issue where stricken ships were not communicating with player correctly.
- Fixed error when firing on the stricken ship after it was repaired.

0.0.7
- Better logic for determining if a pirate ship has just been destroyed.
- Added a "+/-" indicator on the Range Finder MFD, to make it clearer in which direction the player is moving in relation to the target.

0.0.6
- Prevented Cargo Shepherd magnets from being targeted by delivery ships.
- Corrected issues with integrating to the Smugglers Black Market script.

0.0.5
- Fixed mess left after code refactoring. :(

0.0.4
- Fixed issue with escape pod missions not being complete-able.
- Turned off lights on derelict ships.
- Code refactoring to reduce the chance of scripts for various mission types conflicting with another.
- More robust logic for connecting with Smugglers Black Market.
- Bug fixes.

0.0.3
- Made compatible with v1.84 of Oolite.

0.0.2
- Initial public release.
