Change Container changes to just adjust drawer and jackets
This commit is contained in:
parent
4f06544a00
commit
40f78e2775
@ -4,5 +4,6 @@
|
|||||||
"LooseKeyPileProbability": 0.2,
|
"LooseKeyPileProbability": 0.2,
|
||||||
"AlterKeyCardProbability": true,
|
"AlterKeyCardProbability": true,
|
||||||
"LooseKeycardProbability": 0.02,
|
"LooseKeycardProbability": 0.02,
|
||||||
"staticRelativeProbability": 1658
|
"drawerStaticRelativeProbability": 1658,
|
||||||
|
"jacketStaticRelativeProbability": 829
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "LooseKeyModifier",
|
"name": "LooseKeyModifier",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"main": "src/mod.js",
|
"main": "src/mod.js",
|
||||||
"license": "See License file",
|
"license": "See License file",
|
||||||
"author": "Kaeno",
|
"author": "Kaeno",
|
||||||
"akiVersion": "^3.5.1",
|
"akiVersion": "^3.6.1",
|
||||||
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "16.18.10",
|
"@types/node": "16.18.10",
|
||||||
|
26
src/mod.ts
26
src/mod.ts
@ -30,6 +30,8 @@ class Lkm implements IPostDBLoadMod
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (staticName === "578f87b7245977356274f2cd") // Drawer
|
||||||
|
{
|
||||||
for (const itemDistribution of staticy)
|
for (const itemDistribution of staticy)
|
||||||
{
|
{
|
||||||
if (itemHelper.isOfBaseclass(itemDistribution.tpl, BaseClasses.KEY_MECHANICAL))
|
if (itemHelper.isOfBaseclass(itemDistribution.tpl, BaseClasses.KEY_MECHANICAL))
|
||||||
@ -37,16 +39,36 @@ class Lkm implements IPostDBLoadMod
|
|||||||
const matchingItem = staticy.find(s => s.tpl === itemDistribution.tpl);
|
const matchingItem = staticy.find(s => s.tpl === itemDistribution.tpl);
|
||||||
if (matchingItem)
|
if (matchingItem)
|
||||||
{
|
{
|
||||||
if (itemDistribution.relativeProbability < config.staticRelativeProbability)
|
if (itemDistribution.relativeProbability < config.drawerStaticRelativeProbability)
|
||||||
{
|
{
|
||||||
// By Default this is based of the Yotota Key and been divided by 2
|
// By Default this is based of the Yotota Key and been divided by 2
|
||||||
itemDistribution.relativeProbability = config.staticRelativeProbability;
|
itemDistribution.relativeProbability = config.drawerStaticRelativeProbability;
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (staticName === "578f8778245977358849a9b5") // Jackets
|
||||||
|
{
|
||||||
|
for (const itemDistribution of staticy)
|
||||||
|
{
|
||||||
|
if (itemHelper.isOfBaseclass(itemDistribution.tpl, BaseClasses.KEY_MECHANICAL))
|
||||||
|
{
|
||||||
|
const matchingItem = staticy.find(s => s.tpl === itemDistribution.tpl);
|
||||||
|
if (matchingItem)
|
||||||
|
{
|
||||||
|
if (itemDistribution.relativeProbability < (config.jacketStaticRelativeProbability))
|
||||||
|
{
|
||||||
|
// By Default this is based of the Yotota Key and been divided by 4
|
||||||
|
itemDistribution.relativeProbability = (config.jacketStaticRelativeProbability);
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
console.log(`Finished Altering ${count} Container Keys `);
|
console.log(`Finished Altering ${count} Container Keys `);
|
||||||
|
|
||||||
for (const mapId in locations)
|
for (const mapId in locations)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user