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

Expansion Display Reputation

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Displays your current reputations as a passenger, parcel and contract cargo carrier under the heading 'Reputation' on your ship's manifest screen. Displays your current reputations as a passenger, parcel and contract cargo carrier under the heading 'Reputation' on your ship's manifest screen.
Identifier oolite.oxp.Wildeblood.Display_Reputation oolite.oxp.Wildeblood.Display_Reputation
Title Display Reputation Display Reputation
Category Ambience Ambience
Author Wildeblood & Commander McLane Wildeblood & Commander McLane
Version 1.3 1.3
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://wiki.alioth.net/index.php/Display_reputation_OXP n/a
Download URL https://wiki.alioth.net/img_auth.php/b/bb/DisplayReputation1.3.oxz n/a
License CC BY-NC-SA 3.0 CC BY-NC-SA 3.0
File Size n/a
Upload date 1610873454

Documentation

Also read http://wiki.alioth.net/index.php/Display%20Reputation

Equipment

This expansion declares no equipment.

Ships

This expansion declares no ships.

Models

This expansion declares no models.

Scripts

Path
Config/script.js
"use strict";

this.name    = "display_reputations";
this.version = "1.3";

this.startUp = this.shipExitedWitchspace = this.reportScreenEnded = function () {
    this._setReputations();
}

this._setReputations = function () {
    var title = expandMissionText("display_reputation_title_word");
    if (player.passengerReputation >= 0) {
        var passenger = expandMissionText("display_reputation_passenger_" + player.passengerReputation);
    } else {
        var passenger = expandMissionText("display_reputation_passenger_minus");
    }
    if (player.contractReputation >= 0) {
        var contract = expandMissionText("display_reputation_contract_" + player.contractReputation);
    } else {
        var contract = expandMissionText("display_reputation_contract_minus");
    }
    if (player.parcelReputation >= 0) {
        var parcel = expandMissionText("display_reputation_parcel_" + player.parcelReputation);
    } else {
        var parcel = expandMissionText("display_reputation_parcel_minus");
    }
    mission.setInstructions([title, passenger, parcel, contract]);
}