"use strict";
this.name = "NewCargoes_Book";
this.author = "phkb";
this.description = "Adds the New Cargoes Trading Advice to the Ship's Library";

//-------------------------------------------------------------------------------------------------------------
this.startUpComplete = function () {
    if (worldScripts["Ships Library"]) this._registerBook();
}

//-------------------------------------------------------------------------------------------------------------
this._registerBook = function () {
    var contents = [
        { level: 0, key: "newcargoes_chap1"},
        { level: 0, key: "newcargoes_chap2"},
        { level: 1, key: "newcargoes_chap2a"},
        { level: 1, key: "newcargoes_chap2b"},
        { level: 0, key: "newcargoes_chap3"},
        { level: 1, key: "newcargoes_chap3a"},
        { level: 1, key: "newcargoes_chap3b"},
        { level: 0, key: "newcargoes_chap4"},
        { level: 1, key: "newcargoes_chap4a"},
        { level: 0, key: "newcargoes_chap5"}
    ];

    worldScripts["Ships Library"]._registerBook("newcargoes", expandMissionText("newcargoes_book_title"), contents, 22);
}