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.
@ -5,7 +5,18 @@
|
||||
"chance": 100
|
||||
},
|
||||
|
||||
"maxBotCap": 20,
|
||||
"maxBotCap":
|
||||
{
|
||||
"factory": 25,
|
||||
"customs": 25,
|
||||
"woods": 20,
|
||||
"shoreline": 20,
|
||||
"lighthouse": 25,
|
||||
"reservebase": 20,
|
||||
"interchange": 20,
|
||||
"laboratory": 25,
|
||||
"default": 20
|
||||
},
|
||||
|
||||
"pmc":
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
export interface BotsConfig
|
||||
{
|
||||
bossChance: BossChance
|
||||
maxBotCap: number
|
||||
maxBotCap: MaxBotCap
|
||||
pmc: Pmc
|
||||
scav: Scav
|
||||
}
|
||||
@ -58,3 +58,16 @@ export interface Scav
|
||||
{
|
||||
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",
|
||||
"version": "1.6.1",
|
||||
"version": "1.7.0",
|
||||
"main": "src/mod.js",
|
||||
"license": "CC BY-NC-ND 4.0",
|
||||
"author": "Valens",
|
||||
"akiVersion": "3.2.*",
|
||||
"akiVersion": "3.4.*",
|
||||
"scripts": {
|
||||
"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",
|
||||
|
@ -87,12 +87,13 @@ export class Bots
|
||||
this.logger.info(`Chance Same Side Is Hostle is ${modPMC.chanceSameSideIsHostile}`);
|
||||
}
|
||||
|
||||
|
||||
// Adjusts the Max Bot Cap located in configs/bot.json/maxBotCap
|
||||
if (mod.maxBotCap != bot.maxBotCap)
|
||||
{
|
||||
this.botConfig.maxBotCap = mod.maxBotCap;
|
||||
this.logger.info(`Bot Cap is now ${mod.maxBotCap}`);
|
||||
for (const [key] of Object.entries(bot.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.
|
||||
let spawnPoints = this.tables.getTables().locations.bigmap.looseLoot.spawnpoints;
|
||||
const cstmsmarked1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)1203364");
|
||||
const cstmsmarked2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (9)1198014");
|
||||
const cstmsmarked3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)1207194");
|
||||
const customsMarked1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)1203364");
|
||||
const customsMarked2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (9)1198014");
|
||||
const customsMarked3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)1207194");
|
||||
|
||||
cstmsmarked1.itemDistribution.push(...this.containers());
|
||||
cstmsmarked2.itemDistribution.push(...this.containers());
|
||||
cstmsmarked3.itemDistribution.push(...this.containers());
|
||||
customsMarked1.itemDistribution.push(...this.containers());
|
||||
customsMarked2.itemDistribution.push(...this.containers());
|
||||
customsMarked3.itemDistribution.push(...this.containers());
|
||||
|
||||
// Reserve Marked Room Loot.
|
||||
spawnPoints = this.tables.getTables().locations.rezervbase.looseLoot.spawnpoints;
|
||||
const rsrvRBBK1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)49516");
|
||||
const rsrvRBBK2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)69186");
|
||||
const rsrvRBBK3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (9)39600");
|
||||
const rsrvRBBK1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)2248454");
|
||||
const rsrvRBBK2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (8)2268052");
|
||||
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 rsrvRBPKPM2 = spawnPoints.find(x=>x.template.Id==="cult_Loot 135 (12)56254");
|
||||
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)2255152");
|
||||
|
||||
const rsrvRBVO1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)60780");
|
||||
const rsrvRBVO2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (11)55578");
|
||||
const rsrvRBVO3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (12)55522");
|
||||
const rsrvRBVO1 = spawnPoints.find(x=>x.template.Id==="Loot 135 (10)2259670");
|
||||
const rsrvRBVO2 = spawnPoints.find(x=>x.template.Id==="Loot 135 (11)2254476");
|
||||
const rsrvRBVO3 = spawnPoints.find(x=>x.template.Id==="Loot 135 (12)2254420");
|
||||
|
||||
rsrvRBBK1.itemDistribution.push(...this.containers());
|
||||
rsrvRBBK2.itemDistribution.push(...this.containers());
|
||||
|
@ -158,7 +158,7 @@ export class Prewipe
|
||||
|
||||
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];
|
||||
switch (itemScheme[0][0]._tpl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user