War Zones for Diplomacy
=======================
by phkb and m4r35n357

Overview
========
This OXP is an addon for the Diplomacy OXP and performs three functions:

1. Where two systems are at war, this OXP will often add a battle between ships from those systems. It is purely up to the player whether they want to get involved or not. When no active battle is added, there is a chance there will be the aftermath of a battle.

2. Market prices in any warring systems are elevated, while quantities available will be reduced.

3. Finally, some missions will be added to the GalCop Bulletin Board as a result of two warring systems.

Acknowledgements
================
This OXP is borrowed heavily from the Factions OXP by m4r35n357.

Requirements
============
Diplomacy 0.20 or later
GalCop Missions 0.13 or later
Market Script Interface.

Licence
=======
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

Version History
===============
1.9.1
- Fixed error when attempting to create pilots for faction escorts.

1.9
- Fixed invalid property name for descriptions lookup.
- Fixed some other incomplete references that caused JS errors.

1.8
- Trimmed helper text in Library Config so it will be fully visible.
- Fixed issue with Library Config not showing the flags page due to an error.

1.7
- Fixed issue with aftermath generation where errors could occur while spawning escape capsules.
- When battles are completed, any foreign ships will now wait a suitable amount of time before performing the jump, rather than the instant the battle is won.
- Removed debug code that would make battles happen 100% of the time between warring systems.
- Added unique fleet names based on government type (with thanks to Cholmondely for the suggestions/examples).
- A light destroyer can now sometimes be involved in the skirmishes.
- Added compatibility with Factions.

1.6
- Player is now automatically conscripted into an active battle if they are a citizen of either side and flying their flag.
- When battles are completed, remaining ships will return home.
- When no active battle is taking place in a warring system, there is now a 50% chance of there being the aftermath of a battle.
- Reworked shipdata roles to be less confusing.
- Switched to using logcontrol.plist for controlling log file output.
- Changed name to "Diplomacy: War Zones".
- Code refactoring.

1.5
- Fixed manifest.plist requirements issue.

1.4
- Moved restoration of market impact values to startUp, so values are restored before prices potentially set.
- Fixed incorrectly named file.

1.3
- Cleaned up warring parties scanner colours, and made sure different colours will be applied to different systems of the same type.
- Made sure the "war" happens within visible distance of the witchpoint.
- Updated Wireframe Ship Images with correct Sidewinder link.
- Added market changes if a system is at war.
- Added two BB missions for at war systems.

1.2
- Added "use strict" to ship script file.
- Suppressed "The 'conditions' key is deprecated in shipdata entry" messages in log file.

1.1
- Fixed incorrect condition script filename in shipdata.

1.0
- Initial release