Back to Index Page generated: Nov 12, 2024, 11:02:04 PM

Expansion Internal Fuel Tank

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Single use 5 LY internal fuel tank. Mounts in cargo bay and requires 5 tons of free cargo space. Available on systems with TL 8 and more. Select and activate as primed equipment. Single use 5 LY internal fuel tank. Mounts in cargo bay and requires 5 tons of free cargo space. Available on systems with TL 8 and more. Select and activate as primed equipment.
Identifier oolite.oxp.stranger.InternalFuelTank oolite.oxp.stranger.InternalFuelTank
Title Internal Fuel Tank Internal Fuel Tank
Category Equipment Equipment
Author stranger stranger
Version 0.1.3 0.1.3
Tags fuel fuel
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://aegidian.org/bb/viewtopic.php?f=4&t=19557 n/a
Download URL https://wiki.alioth.net/img_auth.php/c/c7/InternalFuelTank.oxz n/a
License CC-BY-NC-SA 3.0 CC-BY-NC-SA 3.0
File Size n/a
Upload date 1610873467

Documentation

Also read http://wiki.alioth.net/index.php/Internal%20Fuel%20Tank

ReadMe & License.txt

Internal Fuel Tank OXP by Stranger

This OXP is released under the Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license.
You are free to use and distribute this OXP on non-commercial basis. 
Rebundling of this OXP within another distribution is permitted as long as it is unchanged.
Any mods/derivatives of this OXP must be distributed under another names.
The license information (either as this file or merged into a larger one) must be included in the OXP.

--------------------------------------------------------------

This OXP provides single use 5 LY fuel tank for additional safety in case of long jumps. It mounts in cargo bay and requires 5 tons of cargo space. Select fuel tank with Shift-N key and activate fuel transfer onto main tank with N key. Any unused fuel will be lost!
To install package unzip archive, and then move the folder "Internal Fuel Tank.oxp" to the AddOns directory of your Oolite installation. Then start the game up.

Credits: smivs - idea of internal tank and citation in description.

--------------------------------------------------------------

Version history:

29.01.2018 - Version 0.1.3	Converted to OXZ
10.04.2018 - Version 0.1.2	manifest.plist edited
09.04.2018 - Version 0.1.1	manifest.plist added
10.12.2015 - Version 0.1	Initial release.

Equipment

Name Visible Cost [deci-credits] Tech-Level
Internal Fuel Tank yes 1000 8+

Ships

This expansion declares no ships.

Models

This expansion declares no models.

Scripts

Path
Scripts/internal_fuel_tank.js
"use strict";

// Standard attributes 
this.name           = "Internal Fuel Tank"; 
this.author         = "Stranger"; 
this.copyright      = "Stranger";
this.licence        = "Creative Commons Attribution - Non-Commercial - Share Alike 4.0";
this.version        = "0.1"; 
this.description    = "Additional single use fuel tank mounted in cargo bay."; 

this.activated = function()
    {
    // if tank activated
    if (player.ship.equipmentStatus ("EQ_INTERNAL_TANK") == "EQUIPMENT_OK")
        {
        this.ship.fuel += 5.0;
        player.ship.removeEquipment("EQ_INTERNAL_TANK");
        }
    }