Compare commits
No commits in common. "master" and "1.0.2" have entirely different histories.
@ -4,6 +4,5 @@
|
|||||||
"LooseKeyPileProbability": 0.2,
|
"LooseKeyPileProbability": 0.2,
|
||||||
"AlterKeyCardProbability": true,
|
"AlterKeyCardProbability": true,
|
||||||
"LooseKeycardProbability": 0.02,
|
"LooseKeycardProbability": 0.02,
|
||||||
"drawerStaticRelativeProbability": 1658,
|
"staticRelativeProbability": 1658
|
||||||
"jacketStaticRelativeProbability": 829
|
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "LooseKeyModifier",
|
"name": "LooseKeyModifier",
|
||||||
"version": "1.0.2",
|
"version": "1.0.1",
|
||||||
"main": "src/mod.js",
|
"main": "src/mod.js",
|
||||||
"license": "See License file",
|
"license": "See License file",
|
||||||
"author": "Kaeno",
|
"author": "Kaeno",
|
||||||
"akiVersion": "^3.6.1",
|
"akiVersion": "^3.5.1",
|
||||||
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "16.18.10",
|
"@types/node": "16.18.10",
|
||||||
|
38
src/mod.ts
38
src/mod.ts
@ -30,40 +30,18 @@ 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))
|
const matchingItem = staticy.find(s => s.tpl === itemDistribution.tpl);
|
||||||
|
if (matchingItem)
|
||||||
{
|
{
|
||||||
const matchingItem = staticy.find(s => s.tpl === itemDistribution.tpl);
|
if (itemDistribution.relativeProbability < config.staticRelativeProbability)
|
||||||
if (matchingItem)
|
|
||||||
{
|
{
|
||||||
if (itemDistribution.relativeProbability < config.drawerStaticRelativeProbability)
|
// By Default this is based of the Yotota Key and been divided by 2
|
||||||
{
|
itemDistribution.relativeProbability = config.staticRelativeProbability;
|
||||||
// By Default this is based of the Yotota Key and been divided by 2
|
count++;
|
||||||
itemDistribution.relativeProbability = config.drawerStaticRelativeProbability;
|
|
||||||
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++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user