bump
This commit is contained in:
parent
0486ec6115
commit
bf3d11e3c6
Binary file not shown.
Binary file not shown.
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "SeeItemValue",
|
"name": "SeeItemValue",
|
||||||
"author": "KcY",
|
"author": "KcY",
|
||||||
"version": "1.3.6",
|
"version": "1.4.0",
|
||||||
"license": "NCSA Open Source",
|
"license": "NCSA Open Source",
|
||||||
"main": "src/mod.js",
|
"main": "src/mod.js",
|
||||||
"akiVersion": "3.1.0",
|
"akiVersion": "3.1.0",
|
||||||
"UpdatedBy": "CWX, Valens",
|
"UpdatedBy": "CWX",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup:environment": "npm i",
|
"setup:environment": "npm i",
|
||||||
"build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./dist/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" ./**/*.* ./dist",
|
"build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./dist/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" ./**/*.* ./dist",
|
@ -1,5 +1,7 @@
|
|||||||
import type { DependencyContainer } from "tsyringe";
|
import type { DependencyContainer } from "tsyringe";
|
||||||
import { IMod } from "@spt-aki/models/external/mod";
|
import { IPreAkiLoadMod } from "@spt-aki/models/external/IPreAkiLoadMod";
|
||||||
|
import { IPostAkiLoadMod } from "@spt-aki/models/external/IPostAkiLoadMod";
|
||||||
|
import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { DynamicRouterModService } from "@spt-aki/services/mod/dynamicRouter/DynamicRouterModService"
|
import { DynamicRouterModService } from "@spt-aki/services/mod/dynamicRouter/DynamicRouterModService"
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"
|
||||||
@ -8,8 +10,9 @@ import { IDatabaseTables } from "@spt-aki/models/spt/server/IDatabaseTables";
|
|||||||
import { ITemplateItem } from "@spt-aki/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt-aki/models/eft/common/tables/ITemplateItem";
|
||||||
import { IHandbookBase } from "@spt-aki/models/eft/common/tables/IHandbookBase";
|
import { IHandbookBase } from "@spt-aki/models/eft/common/tables/IHandbookBase";
|
||||||
|
|
||||||
class SeeItemValue implements IMod
|
class SeeItemValue implements IPreAkiLoadMod, IPostAkiLoadMod, IPostDBLoadMod
|
||||||
{
|
{
|
||||||
|
|
||||||
private pkg;
|
private pkg;
|
||||||
private logger: ILogger;
|
private logger: ILogger;
|
||||||
private database: DatabaseServer;
|
private database: DatabaseServer;
|
||||||
@ -30,8 +33,7 @@ class SeeItemValue implements IMod
|
|||||||
private tradersArr;
|
private tradersArr;
|
||||||
private cfg;
|
private cfg;
|
||||||
|
|
||||||
public preAkiLoad(container: DependencyContainer)
|
preAkiLoad(container: DependencyContainer): void {
|
||||||
{
|
|
||||||
this.pkg = require("../package.json");
|
this.pkg = require("../package.json");
|
||||||
this.router = container.resolve<DynamicRouterModService>("DynamicRouterModService");
|
this.router = container.resolve<DynamicRouterModService>("DynamicRouterModService");
|
||||||
this.logger = container.resolve<ILogger>("WinstonLogger");
|
this.logger = container.resolve<ILogger>("WinstonLogger");
|
||||||
@ -40,9 +42,7 @@ class SeeItemValue implements IMod
|
|||||||
this.cfg = require("./config.json");
|
this.cfg = require("./config.json");
|
||||||
this.addRoute()
|
this.addRoute()
|
||||||
}
|
}
|
||||||
|
postAkiLoad(container: DependencyContainer): void {
|
||||||
public postAkiLoad(container: DependencyContainer)
|
|
||||||
{
|
|
||||||
this.database = container.resolve<DatabaseServer>("DatabaseServer");
|
this.database = container.resolve<DatabaseServer>("DatabaseServer");
|
||||||
this.table = this.database.getTables();
|
this.table = this.database.getTables();
|
||||||
this.items = this.table.templates.items;
|
this.items = this.table.templates.items;
|
||||||
@ -58,6 +58,9 @@ class SeeItemValue implements IMod
|
|||||||
this.fence = this.table.traders["579dc571d53a0658a154fbec"].base;
|
this.fence = this.table.traders["579dc571d53a0658a154fbec"].base;
|
||||||
this.tradersArr = [this.therapist, this.ragman, this.jaeger, this.mechanic, this.prapor, this.skier, this.peacekeeper, this.fence];
|
this.tradersArr = [this.therapist, this.ragman, this.jaeger, this.mechanic, this.prapor, this.skier, this.peacekeeper, this.fence];
|
||||||
}
|
}
|
||||||
|
postDBLoad(container: DependencyContainer): void {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
private addRoute() : void
|
private addRoute() : void
|
||||||
{
|
{
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user