Back to Index | Page generated: Nov 12, 2024, 11:02:04 PM |
from Expansion Manager's OXP list | from Expansion Manifest | |
---|---|---|
Description | Santa watch the system clock and take off within Christmas time only. If you defeat his ship then you can scoop Santa's Lists with the names of good childrens. Deliver it to the main station for some reward. | Santa watch the system clock and take off within Christmas time only. If you defeat his ship then you can scoop Santa's Lists with the names of good childrens. Deliver it to the main station for some reward. |
Identifier | oolite.oxp.Griff.Santa | oolite.oxp.Griff.Santa |
Title | Santa | Santa |
Category | Missions | Missions |
Author | Griff, Littlebear | Griff, Littlebear |
Version | 1.2 | 1.2 |
Tags | ||
Required Oolite Version | ||
Maximum Oolite Version | ||
Required Expansions | ||
Optional Expansions | ||
Conflict Expansions | ||
Information URL | http://wiki.alioth.net/index.php/Santa | n/a |
Download URL | https://wiki.alioth.net/img_auth.php/e/e2/Santa_1.2.oxz | n/a |
License | CC BY-NC-SA 4 | CC BY-NC-SA 4 |
File Size | n/a | |
Upload date | 1610873494 |
Also read http://wiki.alioth.net/index.php/Santa
santa.oxp v2 A daft oxp for oolite that adds a bit of festive cheer to the ooniverse. Installing Extract the santa.oxp folder from the archive and place it in the Addons folder inside your oolite folder on your hard drive. For full install instructions, see the guide at http://wiki.alioth.net/index.php/OXP Santa has an oolite 'trader' role with a slightly less chance than normal trader ships of being selected by oolite to populate a system, this means that santa is rare but he may turn up more than once, so remember, it's not the real santa out there, just one of his many helpers. Thanks to lolwhites for the idea and to Littlebear for help fixing the prezzies in the .plists This version add some reindeer escorts for santas sleigh to help keep him safe. Griff 16/12/06 Version 1.0 Original release Version 1.1 (November 2009) - translation to JS and Oolite 1.73 - added code so the special ships only appear round christmastime. Version 1.2 (May 2010) - adapted for Oolite 1.74: new equipment handling and new mission screen. No functional changes.
Name | Visible | Cost [deci-credits] | Tech-Level |
---|---|---|---|
Santas Lists | yes | 10 | 100+ |
Path | |
---|---|
Scripts/santaClausMain.js | this.name = "santaClausMain"; this.author = "Eric Walch and Lestradae Duval"; this.copyright = "Oolite Creative Commons"; this.description = "Adds some fun to the universe."; this.version = "1.2"; this.startUp = function () { this.today = new Date(); if (this.today.getMonth() === 11 && this.today.getDate() > 15 && this.today.getDate() < 31) { this.chrismasTime = true; } else { delete this.startUp; delete this.shipExitedWitchspace; delete this.missionScreenOpportunity; delete this.equipmentDamaged; } }; this.shipExitedWitchspace = function () { this.addSanta(); }; this.addSanta = function () { if (this.chrismasTime && Math.random() < 0.33) { system.legacy_addSystemShips('santaclaus', 1, 0.04 + Math.random() * 0.05); } }; this.missionScreenOpportunity = function () { if (!player.ship.docked || !player.ship.dockedStation.isMainStation) return; if (player.ship.equipmentStatus("EQ_Santa_Letter") === "EQUIPMENT_OK") { mission.runScreen({messageKey: "santa_letter", background: "santa_elvesmessage.png"}); player.credits += 30; player.ship.removeEquipment("EQ_Santa_Letter"); } }; this.equipmentDamaged = function (equipment) { if (equipment === "EQ_Santa_Letter") { player.ship.removeEquipment("EQ_Santa_Letter"); } }; |
Scripts/santaLetter.js | this.name = "santaLetter"; this.author = "Eric Walch"; this.copyright = "Share alike"; this.comment = "Christmas letter" this.version = "1.0"; this.shipWasScooped = function (scooper) { if (scooper.isPlayer) { scooper.awardEquipment("EQ_Santa_Letter") } } |