This commit is contained in:
CWX 2022-06-22 19:25:21 +01:00
parent d26c1b7987
commit 6eb85d19b5
875 changed files with 51 additions and 17 deletions

View File

@ -27,7 +27,7 @@ class HideoutArchitect implements IMod
this.json = container.resolve<JsonUtil>("JsonUtil");
this.mod = require("../package.json");
this.translations = require("../res/translations.json");
this.logger.info(`Loading: ${this.mod.name} ${this.mod.version}`);
this.logger.info(`Loading: ${this.mod.author}: ${this.mod.name} - ${this.mod.version}`);
this.hookRoutes();
}

View File

@ -27,7 +27,7 @@ class HideoutArchitect implements IMod
this.json = container.resolve<JsonUtil>("JsonUtil");
this.mod = require("../package.json");
this.translations = require("../res/translations.json");
this.logger.info(`Loading: ${this.mod.name} ${this.mod.version}`);
this.logger.info(`Loading: ${this.mod.author}: ${this.mod.name} - ${this.mod.version}`);
this.hookRoutes();
}

View File

@ -27,7 +27,7 @@ class HideoutArchitect implements IMod
this.json = container.resolve<JsonUtil>("JsonUtil");
this.mod = require("../package.json");
this.translations = require("../res/translations.json");
this.logger.info(`Loading: ${this.mod.name} ${this.mod.version}`);
this.logger.info(`Loading: ${this.mod.author}: ${this.mod.name} - ${this.mod.version}`);
this.hookRoutes();
}

View File

@ -1,7 +1,7 @@
{
"name": "MunitionsExpert",
"author": "Faupi",
"version": "1.4.1",
"version": "1.5.0",
"license": "NCSA Open Source",
"main": "./src/MunitionsExpert.js",
"akiVersion": "3.0.0",

View File

@ -16,7 +16,7 @@ class MunitionsExpert implements IMod
private modLoader: InitialModLoader;
private table: IDatabaseTables;
private globalLocale: { [x: string]: { interface: { [x: string]: any; }; }; };
private mod: { name: string; version: any; };
private mod: { name: string; version: any; author: any;};
private translations: { [x: string]: any; };
private items: { [x: string]: any; };
private path: { resolve: (arg0: string) => any; };
@ -29,7 +29,7 @@ class MunitionsExpert implements IMod
this.json = container.resolve<JsonUtil>("JsonUtil");
this.mod = require("../package.json");
this.translations = require("../res/translations.json");
this.logger.info(`Loading: ${this.mod.name} ${this.mod.version}`);
this.logger.info(`Loading: ${this.mod.author}: ${this.mod.name} - ${this.mod.version}`);
this.path = require("path");
this.cfg = require("./config.json");
this.hookRoutes();
@ -86,7 +86,7 @@ class MunitionsExpert implements IMod
{
const modOutput = {
status: 1,
data: null
data: {}
};
modOutput.data = {...this.mod, ...{path: this.path.resolve(this.modLoader.getModPath(this.mod.name))}};

Some files were not shown because too many files have changed in this diff Show More