Загрузить файлы в «/»
This commit is contained in:
parent
a914be29de
commit
0112eeab60
65
mod.ts
Normal file
65
mod.ts
Normal file
@ -0,0 +1,65 @@
|
||||
import { DependencyContainer } from "tsyringe";
|
||||
import { IPostAkiLoadMod } from "@spt-aki/models/external/IPostAkiLoadMod";
|
||||
import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod";
|
||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
|
||||
class Mod implements IPostAkiLoadMod, IPostDBLoadMod
|
||||
{
|
||||
container: DependencyContainer;
|
||||
|
||||
public postAkiLoad(container: DependencyContainer): void
|
||||
{
|
||||
this.container = container;
|
||||
}
|
||||
|
||||
public postDBLoad(container: DependencyContainer): void
|
||||
{
|
||||
const databaseServer = container.resolve<DatabaseServer>("DatabaseServer");
|
||||
const tables = databaseServer.getTables();
|
||||
|
||||
const item = "5857a8bc2459772bad15db29",
|
||||
price = 500000;
|
||||
|
||||
const mechanic = tables.traders["5a7c2eca46aef81a7ca2145d"];
|
||||
|
||||
mechanic.assort.items.push({
|
||||
"_id": item,
|
||||
"_tpl": item,
|
||||
"parentId": "hideout",
|
||||
"slotId": "hideout",
|
||||
"upd":
|
||||
{
|
||||
"UnlimitedCount": false,
|
||||
"StackObjectsCount": 1
|
||||
}
|
||||
});
|
||||
mechanic.assort.barter_scheme[item] = [
|
||||
[
|
||||
{
|
||||
"count": 1,
|
||||
"_tpl": "544a11ac4bdc2d470e8b456a"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"_tpl": "59db794186f77448bc595262"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"_tpl": "5d0376a486f7747d8050965c"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"_tpl": "619cbfeb6b8a1b37a54eebfa"
|
||||
},
|
||||
{
|
||||
"count": 5,
|
||||
"_tpl": "59faff1d86f7746c51718c9c"
|
||||
}
|
||||
|
||||
]
|
||||
];
|
||||
mechanic.assort.loyal_level_items[item] = 4;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { mod: new Mod() }
|
27
package.json
Normal file
27
package.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "GammaBarter",
|
||||
"version": "1.0.0",
|
||||
"author": "SgtEnrollee",
|
||||
"license": "NCSA",
|
||||
"main": "src/mod.js",
|
||||
"akiVersion": "3.8.3",
|
||||
"isBundleMod": false,
|
||||
"scripts": {
|
||||
"setup": "npm i",
|
||||
"build": "node ./build.mjs",
|
||||
"buildinfo": "node ./build.mjs --verbose"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "20.4.5",
|
||||
"@typescript-eslint/eslint-plugin": "6.2.0",
|
||||
"@typescript-eslint/parser": "6.2.0",
|
||||
"archiver": "^6.0",
|
||||
"eslint": "8.46.0",
|
||||
"fs-extra": "^11.1",
|
||||
"ignore": "^5.2",
|
||||
"os": "^0.1",
|
||||
"tsyringe": "4.8.0",
|
||||
"typescript": "5.1.6",
|
||||
"winston": "^3.9"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user