Back to Index Page generated: Jun 13, 2026, 7:54:49 PM

Expansion Santa

Content

Warnings

  1. Found XML equipment list
  2. XML script list found

Manifest

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
Dependent Expansions
  • oolite.oxp.Chris.MincePie:1.1
  • 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

    Relationships Diagram

    Documentation

    Also read http://wiki.alioth.net/index.php/Santa

    readme.txt

    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.

    Equipment

    Name Visible Cost [deci-credits] Tech-Level
    Santas Lists yes 10 100+

    Ships

    Name
    Expensive Christmas Prezzie
    Big Christmas Prezzie
    Small Christmas Prezzie
    Hard Christmas Prezzie
    Chewy Christmas Prezzie
    Boozy Christmas Prezzie
    Well Wrapped Christmas Prezzie
    Fashionable Christmas Prezzie
    North Pole Security Squad
    Santa
    Gifts
    Santa
    Santa
    poor Santas tattered hat!
    Santas List of all good Children... Your name is not on it!

    Models

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

    Scripts

    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")
        }
    }