Update V-AIO to v1.7.0 compatible with latest SPT-AKI v3.4.0
This commit is contained in:
parent
96301881d1
commit
2c7493853f
Binary file not shown.
@ -1,11 +1,22 @@
|
|||||||
{
|
{
|
||||||
"bossChance":
|
"bossChance":
|
||||||
{
|
{
|
||||||
"activated": false,
|
"activated": false,
|
||||||
"chance": 100
|
"chance": 100
|
||||||
},
|
},
|
||||||
|
|
||||||
"maxBotCap": 20,
|
"maxBotCap":
|
||||||
|
{
|
||||||
|
"factory": 25,
|
||||||
|
"customs": 25,
|
||||||
|
"woods": 20,
|
||||||
|
"shoreline": 20,
|
||||||
|
"lighthouse": 25,
|
||||||
|
"reservebase": 20,
|
||||||
|
"interchange": 20,
|
||||||
|
"laboratory": 25,
|
||||||
|
"default": 20
|
||||||
|
},
|
||||||
|
|
||||||
"pmc":
|
"pmc":
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export interface BotsConfig
|
export interface BotsConfig
|
||||||
{
|
{
|
||||||
bossChance: BossChance
|
bossChance: BossChance
|
||||||
maxBotCap: number
|
maxBotCap: MaxBotCap
|
||||||
pmc: Pmc
|
pmc: Pmc
|
||||||
scav: Scav
|
scav: Scav
|
||||||
}
|
}
|
||||||
@ -57,4 +57,17 @@ export interface LooseWeapon
|
|||||||
export interface Scav
|
export interface Scav
|
||||||
{
|
{
|
||||||
lootNValue: number
|
lootNValue: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MaxBotCap
|
||||||
|
{
|
||||||
|
factory: number
|
||||||
|
customs: number
|
||||||
|
woods: number
|
||||||
|
shoreline: number
|
||||||
|
lighthouse: number
|
||||||
|
reservebase: number
|
||||||
|
interchange: number
|
||||||
|
laboratory: number
|
||||||
|
default: number
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "Valens-AIO",
|
"name": "Valens-AIO",
|
||||||
"version": "1.6.1",
|
"version": "1.7.0",
|
||||||
"main": "src/mod.js",
|
"main": "src/mod.js",
|
||||||
"license": "CC BY-NC-ND 4.0",
|
"license": "CC BY-NC-ND 4.0",
|
||||||
"author": "Valens",
|
"author": "Valens",
|
||||||
"akiVersion": "3.2.*",
|
"akiVersion": "3.4.*",
|
||||||
"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",
|
||||||
|
@ -87,12 +87,13 @@ export class Bots
|
|||||||
this.logger.info(`Chance Same Side Is Hostle is ${modPMC.chanceSameSideIsHostile}`);
|
this.logger.info(`Chance Same Side Is Hostle is ${modPMC.chanceSameSideIsHostile}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Adjusts the Max Bot Cap located in configs/bot.json/maxBotCap
|
// Adjusts the Max Bot Cap located in configs/bot.json/maxBotCap
|
||||||
if (mod.maxBotCap != bot.maxBotCap)
|
|
||||||
{
|
{
|
||||||
this.botConfig.maxBotCap = mod.maxBotCap;
|
for (const [key] of Object.entries(bot.maxBotCap))
|
||||||
this.logger.info(`Bot Cap is now ${mod.maxBotCap}`);
|
{
|
||||||
|
bot.maxBotCap[key] = mod.maxBotCap[key];
|
||||||
|
this.logger.info(mod.maxBotCap[key]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
28
src/loot.ts
28
src/loot.ts
@ -55,26 +55,26 @@ export class Loot
|
|||||||
{
|
{
|
||||||
// Customs Marked Room Loot.
|
// Customs Marked Room Loot.
|
||||||
let spawnPoints = this.tables.getTables().locations.bigmap.looseLoot.spawnpoints;
|
let spawnPoints = this.tables.getTables().locations.bigmap.looseLoot.spawnpoints;
|
||||||
const cstmsmarked1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)1203364");
|
const customsMarked1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)1203364");
|
||||||
const cstmsmarked2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (9)1198014");
|
const customsMarked2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (9)1198014");
|
||||||
const cstmsmarked3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)1207194");
|
const customsMarked3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)1207194");
|
||||||
|
|
||||||
cstmsmarked1.itemDistribution.push(...this.containers());
|
customsMarked1.itemDistribution.push(...this.containers());
|
||||||
cstmsmarked2.itemDistribution.push(...this.containers());
|
customsMarked2.itemDistribution.push(...this.containers());
|
||||||
cstmsmarked3.itemDistribution.push(...this.containers());
|
customsMarked3.itemDistribution.push(...this.containers());
|
||||||
|
|
||||||
// Reserve Marked Room Loot.
|
// Reserve Marked Room Loot.
|
||||||
spawnPoints = this.tables.getTables().locations.rezervbase.looseLoot.spawnpoints;
|
spawnPoints = this.tables.getTables().locations.rezervbase.looseLoot.spawnpoints;
|
||||||
const rsrvRBBK1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)49516");
|
const rsrvRBBK1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)2248454");
|
||||||
const rsrvRBBK2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)69186");
|
const rsrvRBBK2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)2268052");
|
||||||
const rsrvRBBK3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (9)39600");
|
const rsrvRBBK3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (9)2238562");
|
||||||
|
|
||||||
const rsrvRBPKPM1 = spawnPoints.find(x=>x.template.Id==="cult_Loot 135 (11)56822");
|
const rsrvRBPKPM1 = spawnPoints.find(x=>x.template.Id==="cult_Loot 135 (11)2255712");
|
||||||
const rsrvRBPKPM2 = spawnPoints.find(x=>x.template.Id==="cult_Loot 135 (12)56254");
|
const rsrvRBPKPM2 = spawnPoints.find(x=>x.template.Id==="cult_Loot 135 (12)2255152");
|
||||||
|
|
||||||
const rsrvRBVO1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)60780");
|
const rsrvRBVO1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)2259670");
|
||||||
const rsrvRBVO2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (11)55578");
|
const rsrvRBVO2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (11)2254476");
|
||||||
const rsrvRBVO3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (12)55522");
|
const rsrvRBVO3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (12)2254420");
|
||||||
|
|
||||||
rsrvRBBK1.itemDistribution.push(...this.containers());
|
rsrvRBBK1.itemDistribution.push(...this.containers());
|
||||||
rsrvRBBK2.itemDistribution.push(...this.containers());
|
rsrvRBBK2.itemDistribution.push(...this.containers());
|
||||||
|
@ -158,7 +158,7 @@ export class Prewipe
|
|||||||
|
|
||||||
for (const trader in this.traders)
|
for (const trader in this.traders)
|
||||||
{
|
{
|
||||||
for (const assort in this.traders[trader].assort.barter_scheme)
|
for (const assort in this.traders[trader]?.assort?.barter_scheme)
|
||||||
{
|
{
|
||||||
const itemScheme = this.traders[trader].assort.barter_scheme[assort];
|
const itemScheme = this.traders[trader].assort.barter_scheme[assort];
|
||||||
switch (itemScheme[0][0]._tpl)
|
switch (itemScheme[0][0]._tpl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user