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

Expansion Chrysopelea MK-I

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Adds the Chrysopelea MK-I to Oolite, a small ship with four missile slots, a good reacharge rate and reasonable maneuverability. Features PBR textures. Adds the Chrysopelea MK-I to Oolite, a small ship with four missile slots, a good reacharge rate and reasonable maneuverability. Features PBR textures.
Identifier oolite.oxp.tsoj.chrysopelea_mk-i oolite.oxp.tsoj.chrysopelea_mk-i
Title Chrysopelea MK-I Chrysopelea MK-I
Category Ships Ships
Author Tsoj Tsoj
Version 2.3 2.3
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://wiki.alioth.net/index.php/Chrysopelea_MK-I n/a
Download URL https://wiki.alioth.net/img_auth.php/0/0d/Chrysopelea_mk-i_v2.3.oxz n/a
License CC-BY-NC-SA 4.0 CC-BY-NC-SA 4.0
File Size n/a
Upload date 1634769477

Documentation

Also read http://wiki.alioth.net/index.php/Chrysopelea%20MK-I

readme.txt

chrysopelea_mk-i.oxp
-----------------------------------------

An oxp for Oolite v1.90 and higher that adds a new ship called 'Chrysopelea MK-I'. 

Installing and Uninstalling this oxp
------------------------------------
To install, simply copy the chrysopelea_mk-i.oxp folder into your oolite AddOns folder, next time you start the game the ship will be available.
to uninstall, move or delete the chrysopelea_mk-i.oxp folder from your oolite AddOns folder, next time you start the game the ship will be gone.

Links
-----
Oolite: http://www.oolite.org/
Oolite Bulletin boards: http://www.aegidian.org/bb/

Update History:
20 October 2021 - added little script to make the Erlage system special, relesae version 2.3
20 March 2021 - adjusted texture colors, added new texture, removed green and yellow textures, adjusted shipdata, relesae version 2.2
15 February 2021 - complete update of model, textures and stats, release version 2.0
22 Februar 2020 - updated stats
6 January 2017 - texture rework and shaders by Keeper
12 Oktober 2016 - original release
  
------------------------------------
By Tsoj
This work is licensed under the Attribution-NonCommercial-ShareAlike 4.0 International license (CC BY-NC-SA 4.0). To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

Equipment

This expansion declares no equipment.

Ships

Name
chrysopelea_mk-i_blue
chrysopelea_mk-i_grey
chrysopelea_mk-i_inverted
chrysopelea_mk-i_red
Chrysopelea MK-I
chrysopelea_mk-i_white

Models

This expansion declares no models.

Scripts

Path
Scripts/chrysopelea_mk-i_script.js
this.name           = "Chrysopelea MK-I";
this.author         = "Tsoj";
this.copyright      = "(C) 2021 Tsoj";
this.licence        = "CC-NC-BY-SA 4.0";
this.description    = "Discounts for Chrysopelea MK-I when at Erlage";
this.version        = "1.0";

"use strict";

this.guiScreenWillChange = function(to, from)
{
	const station = player.ship.dockedStation

	if(
		system.ID == 79 && galaxyNumber == 0 && // Erlage in Galaxy 1
		(to == "GUI_SCREEN_SHIPYARD" || guiScreen == "GUI_SCREEN_SHIPYARD") &&
		station != null && station.hasShipyard
	)
	{
		for(i in Ship.keysForRole("player")){
			const shipKey = Ship.keysForRole("player")[i]
			const shipData = Ship.shipDataForKey(shipKey);
			if(shipData.name.indexOf("hrysopelea") != -1){
				var found = false
				for(j in station.shipyard){
					if(station.shipyard[j].shipdata_key == shipKey){
						found = true;
						break;
					}
				}
				if(found)
					continue;

				const price = shipData._oo_shipyard.price * 0.7
				station.addShipToShipyard({
					short_description:
						shipData.name + ": Exquisite customer model using Erlageian tree wood.\n" +
						"Buying directly from the shipyards of the Design Bureau for Advanced and Fulfilling Technology at Erlage, " +
						"this Chrysopelea will have a decent reduction in price, as well as some extras!", 
					shipdata_key: shipKey, 
					price: price,
					personality: 0, 
					extras: [
						"EQ_WEAPON_BEAM_LASER",
						"EQ_ADVANCED_COMPASS",
						"EQ_ECM",
						"EQ_FUEL_INJECTION",
						"EQ_FUEL_SCOOPS",
						"EQ_SCANNER_SHOW_MISSILE_TARGET",
						"EQ_HARDENED_MISSILE"
					]
				})
			}
		}
	}
}