Back to Index Page generated: Dec 20, 2024, 7:22:09 AM

Expansion Undocumented Launch

Content

Warnings

  1. Information URL mismatch between OXP Manifest and Expansion Manager string length at character position 0

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description For a small application filing fee, station masters will allow you to perform an emergency launch without filing a cargo manifest. For a small application filing fee, station masters will allow you to perform an emergency launch without filing a cargo manifest.
Identifier oolite.oxp.Wildeblood.UndocumentedLaunch oolite.oxp.Wildeblood.UndocumentedLaunch
Title Undocumented Launch Undocumented Launch
Category Equipment Equipment
Author Wildeblood Wildeblood
Version 1.0 1.0
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL n/a
Download URL https://wiki.alioth.net/img_auth.php/7/7b/UndocumentedLaunch.oxz n/a
License CC-BY-NC-SA 3.0 CC-BY-NC-SA 3.0
File Size n/a
Upload date 1610873343

Documentation

Also read http://wiki.alioth.net/index.php/Undocumented%20Launch

Undocumented Launch READ ME.txt

-------------------------------
Undocumented Launch OXP  ver. 1
-------------------------------
  Date: November 12th, 2012
Author: Wildeblood


---------------------
Installation and use:
---------------------

Place the Undocumented Launch OXP into your "AddOns" folder. At the main stations of planets with technical level 4 or higher, for a small application filing fee, the station master will allow you to perform an emergency launch without filing a cargo manifest. Be fueled and ready to launch before requesting an undocumented launch.

Equipment

Name Visible Cost [deci-credits] Tech-Level
Undocumented Launch yes 300 4+

Ships

This expansion declares no ships. This may be related to warnings.

Models

This expansion declares no models. This may be related to warnings.

Scripts

Path
Config/script.js
"use strict";

this.name        = "Undocumented Launch";
this.version     = "1.0";

/* ====================================================================================
			LAUNCH PLAYER SHIP
======================================================================================= */

this.playerBoughtEquipment = function(equipment)
	{
	if (equipment === "EQ_UNDOCUMENTED_LAUNCH")
		{
		player.ship.removeEquipment("EQ_UNDOCUMENTED_LAUNCH");
		if (player.ship.fuel < 7.0)
			{
			player.credits += 30;
			player.commsMessage("Complete re-fuelling and be ready to launch immediately!");
			}
		else
			{
			this.$bountyBackup = (player.bounty + 2);
			player.ship.launch();
			}
		}
	}

this.shipLaunchedFromStation = function()
	{
	if (this.$bountyBackup)
		{
		player.bounty = this.$bountyBackup;
		player.commsMessage("You may be fined up to 100cr for launching without filing a manifest.",6);
		delete this.$bountyBackup;
		}
	}

/* ====================================================================================
			THE END
======================================================================================= */
Scripts/undocumented_launch_available.js
this.name = "undocumented_launch_available";
this.version = "1.0";

this.allowAwardEquipment = function (eqKey, ship, context) {
    "use strict";
    if (context !== "purchase" || eqKey !== "EQ_UNDOCUMENTED_LAUNCH") {
        return false;
    }
    var market = player.ship.dockedStation.market;
    for (prop in market) {
        if (market[prop].legalPenalty && manifest[prop]) {
            return true;
        }
    }
    return false;
}