Prapor assortunlocks

This commit is contained in:
Ereshkigal 2021-08-08 15:52:49 +02:00
parent b4a4e70927
commit a5ee3e3ef3
3 changed files with 442 additions and 330 deletions

View File

@ -251,5 +251,85 @@
}
}
]
},
"ASH-12_Silenced_LL4": {
"_id": "ASH-12_Silenced_LL4",
"_type": "Preset",
"_changeWeaponName": false,
"_name": "ash_12_silenced",
"_parent": "893a544a5de59baa183c806a",
"_items": [
{
"_id": "893a544a5de59baa183c806a",
"_tpl": "5cadfbf7ae92152ac412eeef",
"upd": {
"Repairable": {
"MaxDurability": 100,
"Durability": 100
},
"FireMode": {
"FireMode": "single"
}
}
},
{
"_id": "89df79347dfc7df98a989188",
"_tpl": "5caf187cae92157c28402e43",
"parentId": "893a544a5de59baa183c806a",
"slotId": "mod_muzzle"
},
{
"_id": "300cebc1cb6d97fe5e2c5377",
"_tpl": "5caf1041ae92157c28402e3f",
"parentId": "893a544a5de59baa183c806a",
"slotId": "mod_magazine"
},
{
"_id": "ac2c80197a7f593f1924b6e9",
"_tpl": "5caf16a2ae92152ac412efbc",
"parentId": "893a544a5de59baa183c806a",
"slotId": "mod_sight_front",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "32f372594e610518abd2df76",
"_tpl": "5cdaa99dd7f00c002412d0b2",
"parentId": "893a544a5de59baa183c806a",
"slotId": "mod_handguard"
},
{
"_id": "4a37c14ff3eeb816dc2311b9",
"_tpl": "5caf1691ae92152ac412efb9",
"parentId": "893a544a5de59baa183c806a",
"slotId": "mod_scope",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "483f20776801fa5928c217d6",
"_tpl": "5cda9bcfd7f00c0c0b53e900",
"parentId": "32f372594e610518abd2df76",
"slotId": "mod_foregrip"
}
]
}
}

View File

@ -18,6 +18,7 @@ class GenerateEverything {
constructor() {
const mod = require("./package.json")
Logger.info(`Loading: ${mod.name} : ${mod.version}`);
const customPresets = require("./config/custom_presets.json");
ModLoader.onLoad["Assorts-prapor"] = prapor.generatePraporAssort;
ModLoader.onLoad["Assorts-therapist"] = therapist.generateTherapistAssort;
ModLoader.onLoad["Assorts-skier"] = skier.generateSkierAssort;
@ -25,6 +26,7 @@ class GenerateEverything {
ModLoader.onLoad["Assorts-peacekeeper"] = peacekeeper.generatePeacekeeperAssort;
ModLoader.onLoad["Assorts-ragman"] = ragman.generateRagmanAssort;
ModLoader.onLoad["Assorts-jeager"] = jeager.generateJeagerAssort;
Object.assign(DatabaseServer.tables.globals.ItemPresets, customPresets)
}
}

View File

@ -2,7 +2,7 @@
エレシュキガル
*/
class PraporAssort{
class PraporAssort {
static GenerateLL1() {
const CoreMod = require("../../CoreMod/src/Core.js");
@ -20,8 +20,7 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "59e358a886f7741776641ac3"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 3);
//5x45 BT x30 GS box
@ -29,8 +28,7 @@ class PraporAssort{
[{
"count": 2,
"_tpl": "57347da92459774491567cf5"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 4000, 4);
//7mm buckshot
@ -39,6 +37,11 @@ class PraporAssort{
//7.62x39mm PS GZH
CoreMod.CreateTraderAssort(HashUtil.generate(), "5656d7c34bdc2d9d198b4587", "54cb50c76803fa8b248b4571", 91, "RUB", 1, true, 999999);
//5.45x39mm PS gs
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "56dff3afd2720bba668b4567", "54cb50c76803fa8b248b4571", 81, "RUB", 1, true, 999999);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "59674eb386f774539f14813a")
//5.45x39mm PRS GS
CoreMod.CreateTraderAssort(HashUtil.generate(), "56dff338d2720bbd668b4569", "54cb50c76803fa8b248b4571", 51, "RUB", 1, true, 999999);
@ -83,8 +86,7 @@ class PraporAssort{
[{
"count": 2,
"_tpl": "590a3cd386f77436f20848cb"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 3);
//RDG Smoke
@ -113,8 +115,7 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "5d1b31ce86f7742523398394"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 12);
@ -178,8 +179,7 @@ class PraporAssort{
[{
"count": 2,
"_tpl": "590a3c0a86f774385a33c450"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000);
//PU 3.5x rifle scope
@ -249,8 +249,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "5e2af00086f7746d3f3c33f7"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 7000);
//AKS-74u
@ -264,8 +263,7 @@ class PraporAssort{
[{
"count": 3,
"_tpl": "57347d7224597744596b4e72"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 20000, 1);
//PM "Makarov" 9x18
@ -281,8 +279,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "57347c77245977448d35f6e2"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 20000, 5);
//tt-33
@ -302,8 +299,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "57347c5b245977448d35f6e1"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000);
//pp-91 kedr
@ -316,8 +312,7 @@ class PraporAssort{
[{
"count": 4,
"_tpl": "57347cd0245977445a2d6ff1"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 2);
//6B34 anti-fragmentation glasses
@ -339,8 +334,7 @@ class PraporAssort{
}, {
"count": 8,
"_tpl": "5672cb124bdc2d1a0f8b4568"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 1);
//SFera-S
@ -351,8 +345,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "5d40407c86f774318526545a"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 3);
//GSSh-01 active headset
@ -371,8 +364,7 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "59fafb5d86f774067a6f2084"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 1000, 1);
//VKBO bag
@ -380,8 +372,7 @@ class PraporAssort{
[{
"count": 2,
"_tpl": "5672cb124bdc2d1a0f8b4568"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 20000, 3);
//6sh112
@ -392,13 +383,23 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "57347d90245977448f7b7f65"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 2);
}
static GenerateLL2() {
const CoreMod = require("../../CoreMod/src/Core.js");
let id = null;
//Zenit-BelOMO PSO-1M2-1 4x24 scope
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "576fd4ec2459777f0b518431", "54cb50c76803fa8b248b4571", 21565, "RUB", 1, false, 20000, 4);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "5967530a86f77462ba22226b"); //Bad rep evidence
//Haxagon 12k supressor
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "59c0ec5b86f77435b128bfca", "54cb50c76803fa8b248b4571", 25112, "RUB", 2, false, 10000);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "5967725e86f774601a446662"); //Shaking up teller
//9mm PST GZH
CoreMod.CreateTraderAssort(HashUtil.generate(), "56d59d3ad2720bdb418b4577", "54cb50c76803fa8b248b4571", 68, "RUB", 2, true, 999999);
@ -523,17 +524,25 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "590c639286f774151567fa95"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 2000, 5);
//6L31
id = HashUtil.generate()
CoreMod.CreateTraderBarter(id, "55d482194bdc2d1d4e8b456b", "hideout", "hideout", [
[{
"count": 1,
"_tpl": "5d1b32c186f774252167a530"
}]
], "54cb50c76803fa8b248b4571", 2, false, 2000, 5);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "59675d6c86f7740a842fc482"); //Ice cream cones
//5x45 BT x30 GS box
CoreMod.CreateTraderBarter(HashUtil.generate(), "57372c89245977685d4159b1", "hideout", "hideout", [
[{
"count": 1,
"_tpl": "590a373286f774287540368b"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 2000);
//RGD-5 Hand grenade
@ -541,8 +550,7 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "590a3cd386f77436f20848cb"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, true, 999999);
//6L18
@ -553,8 +561,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "590c311186f77424d1667482"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 6000, 10);
//PPSH Drum mag
@ -562,8 +569,7 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "5d1c819a86f774771b0acd6c"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 5000, 2);
//Valday PS-320 1x/6x scope
@ -574,8 +580,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "590c5f0d86f77413997acfab"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 2000, 2);
//MPL-50 Entrenching tool
@ -583,8 +588,7 @@ class PraporAssort{
[{
"count": 2,
"_tpl": "5b4329075acfc400153b78ff"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, true, 999999);
//Metal fuel tank
@ -595,8 +599,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "5b43575a86f77424f443fe62"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 2000, 1);
//AK-74N Wood
@ -645,8 +648,7 @@ class PraporAssort{
[{
"count": 5,
"_tpl": "573475fb24597737fb1379e1"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 20000, 2);
//AKS-74UB
@ -661,8 +663,7 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "573476d324597737da2adc13"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 1000, 2);
//AK-74 Plum
@ -674,8 +675,7 @@ class PraporAssort{
}, {
"count": 2,
"_tpl": "57347c93245977448d35f6e3"
}
]
}]
], "54cb50c76803fa8b248b4571", 2, false, 2000, 2);
//ks-23m Long
@ -690,8 +690,7 @@ class PraporAssort{
}, {
"count": 3,
"_tpl": "5909e99886f7740c983b9984"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 2);
//SV-98
@ -703,8 +702,7 @@ class PraporAssort{
}, {
"count": 3,
"_tpl": "573476d324597737da2adc13"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 2);
//MP-443 Grach
@ -713,8 +711,7 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "573477e124597737dd42e191"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 2000, 2);
//SR-1MP
@ -723,8 +720,7 @@ class PraporAssort{
[{
"count": 1,
"_tpl": "590c5a7286f7747884343aea"
}
]
}]
], "54cb50c76803fa8b248b4571", 1, false, 300, 2);
}
@ -739,8 +735,7 @@ class PraporAssort{
}, {
"count": 2,
"_tpl": "573476d324597737da2adc13"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 3000, 3);
//9x39 SPP 8pcs ammo pack
@ -748,13 +743,17 @@ class PraporAssort{
[{
"count": 2,
"_tpl": "5734795124597738002c6176"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 2000, 50);
//5.45x39mm BP gs
CoreMod.CreateTraderAssort(HashUtil.generate(), "56dfef82d2720bbd668b4567", "54cb50c76803fa8b248b4571", 415, "RUB", 3, false, 300000, 300);
//7.62x39mm BP gzh
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "56dfef82d2720bbd668b4567", "54cb50c76803fa8b248b4571", 985, "RUB", 3, false, 300000, 300);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "59ca29fb86f77445ab465c87"); //Punisher part5
//5.45x39mm BT gs
CoreMod.CreateTraderAssort(HashUtil.generate(), "56dff061d2720bb5668b4567", "54cb50c76803fa8b248b4571", 641, "RUB", 3, false, 300000);
@ -826,8 +825,7 @@ class PraporAssort{
[{
"count": 4,
"_tpl": "590c2b4386f77425357b6123"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 6000, 5);
//ak 7.62x39 bakelite 40-round magazine
@ -838,8 +836,7 @@ class PraporAssort{
[{
"count": 4,
"_tpl": "590c2b4386f77425357b6123"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 2000, 2);
//svd 7.62x54r 10-round magazine
@ -879,7 +876,9 @@ class PraporAssort{
CoreMod.CreateTraderAssort(HashUtil.generate(), "57c44dd02459772d2e0ae249", "54cb50c76803fa8b248b4571", 25448, "RUB", 3, false, 2000);
//pbs-4 5.45x39 sound suppressor
CoreMod.CreateTraderAssort(HashUtil.generate(), "57ffb0e42459777d047111c5", "54cb50c76803fa8b248b4571", 35961, "RUB", 3, false, 10000);
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "57ffb0e42459777d047111c5", "54cb50c76803fa8b248b4571", 35961, "RUB", 3, false, 10000);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "5967725e86f774601a446662"); //Shaking up teller
//pbs-1 7.62x39 sound suppressor
CoreMod.CreateTraderAssort(HashUtil.generate(), "5a0d63621526d8dba31fe3bf", "54cb50c76803fa8b248b4571", 52512, "RUB", 3, false, 2000);
@ -1000,8 +999,7 @@ class PraporAssort{
}, {
"count": 3,
"_tpl": "5d1c819a86f774771b0acd6c"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 2000, 2);
//vss vintorez 9x39 special sniper rifle
@ -1012,8 +1010,7 @@ class PraporAssort{
}, {
"count": 5,
"_tpl": "59e7715586f7742ee5789605"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 200, 1);
//svds 7.62x54r sniper rifle
@ -1030,23 +1027,23 @@ class PraporAssort{
}, {
"count": 1,
"_tpl": "59e7715586f7742ee5789605"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, true, 2000);
//toz ks-23m 23x75mm pump-action shotgun
CoreMod.CreateTraderAssortWithPreset(HashUtil.generate(), "5f6771214ef1ca4f4e1b8a06", "54cb50c76803fa8b248b4571", 45790, "RUB", 3, false, 20000);
//sv-98 7.62x54r bolt-action sniper rifle
CoreMod.CreateTraderAssort(HashUtil.generate(), "55801eed4bdc2d89578b4588", "54cb50c76803fa8b248b4571", 35204, "RUB", 3, true, 999999);
id = HashUtil.generate()
CoreMod.CreateTraderAssortWithPreset(id, "58414a16245977599247970a", "54cb50c76803fa8b248b4571", 35204, "RUB", 3, true, 999999);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "59c50a9e86f7745fef66f4ff"); //The punisher p1
//bnti korund-vm armor
CoreMod.CreateTraderBarter(HashUtil.generate(), "5f5f41476bdad616ad46d631", "hideout", "hideout", [
[{
"count": 4,
"_tpl": "590c645c86f77412b01304d9"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 2000, 1);
//6sh118 raid backpack
@ -1056,13 +1053,38 @@ class PraporAssort{
"level": 25,
"side": "usec",
"_tpl": "59f32c3b86f77472a31742f0"
}
]
}]
], "54cb50c76803fa8b248b4571", 3, false, 2000, 1);
//5,45x39mm BT gs
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "56dff061d2720bb5668b4567", "54cb50c76803fa8b248b4571", 641, "RUB", 3, true, 99999, 500);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "59ca264786f77445a80ed044")
}
static GenerateLL4() {
const CoreMod = require("../../CoreMod/src/Core.js");
//9x39 BP gs 8 pcs. ammo pack
id = HashUtil.generate()
CoreMod.CreateTraderBarter(id, "5c1260dc86f7746b106e8748", "hideout", "hideout", [
[{
"count": 1,
"_tpl": "5734770f24597738025ee254"
}]
], "54cb50c76803fa8b248b4571", 4, false, 2500, 10);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571","success",id,"5c0d190cd09282029f5390d8"); // Grenadier
//7.62x54r BT gzh
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "5e023d34e8a400319a28ed44", "54cb50c76803fa8b248b4571", 1057, "RUB", 4, true, 99999, 200);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "59c512ad86f7741f0d09de9b")
//12,7x55 mm PS12B
id = HashUtil.generate()
CoreMod.CreateTraderAssort(id, "5cadf6eeae921500134b2799", "54cb50c76803fa8b248b4571", 695, "RUB", 4, true, 99999, 200);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571", "success", id, "5c0d190cd09282029f5390d8")// Grenadier
//7.62x54r snb
CoreMod.CreateTraderAssort(HashUtil.generate(), "560d61e84bdc2da74d8b4571", "54cb50c76803fa8b248b4571", 816, "RUB", 4, false, 2000);
@ -1138,18 +1160,27 @@ class PraporAssort{
//npp klass condor glasses
CoreMod.CreateTraderAssort(HashUtil.generate(), "603409c80ca681766b6a0fb2", "54cb50c76803fa8b248b4571", 16744, "RUB", 4, false, 10000, 2);
//ash-12 12.7x55 assault rifle
CoreMod.CreateTraderBarterWithPreset(HashUtil.generate(), "5d23467086f77443f37fc602", "hideout", "hideout", [
//ash-12 12.7x55 assault rifle silenced
CoreMod.CreateTraderBarterWithPreset(HashUtil.generate(), "ASH-12_Silenced_LL4", "hideout", "hideout", [
[{
"count": 1,
"_tpl": "5d0376a486f7747d8050965c"
}, {
"count": 1,
"_tpl": "5c06779c86f77426e00dd782"
}
]
}]
], "54cb50c76803fa8b248b4571", 4, false, 2000, 1);
//ash-12 12.7x55 assault rifle
id = HashUtil.generate()
CoreMod.CreateTraderBarterWithPreset(id, "5d23467086f77443f37fc602", "hideout", "hideout", [
[{
"count": 2,
"_tpl": "5d40407c86f774318526545a"
}]
], "54cb50c76803fa8b248b4571", 4, false, 2000, 1);
CoreMod.CreateTraderAssortUnlock("54cb50c76803fa8b248b4571","success",id,"5d4bec3486f7743cac246665"); //Regulated materials
//rpk-16 5.45x39 light machine gun
CoreMod.CreateTraderAssortWithPreset(HashUtil.generate(), "5c0d1ec986f77439512a1a72", "54cb50c76803fa8b248b4571", 68452, "RUB", 4, false, 2000);
@ -1161,8 +1192,7 @@ class PraporAssort{
}, {
"count": 7,
"_tpl": "5d4042a986f7743185265463"
}
]
}]
], "54cb50c76803fa8b248b4571", 4, false, 5000, 1);
//6b43 zabralo-sh 6a body armor
@ -1173,8 +1203,7 @@ class PraporAssort{
}, {
"count": 3,
"_tpl": "60391b0fb847c71012789415"
}
]
}]
], "54cb50c76803fa8b248b4571", 4, false, 300, 1);
//bnti korund-vm armor
@ -1185,8 +1214,7 @@ class PraporAssort{
[{
"count": 2,
"_tpl": "5d0375ff86f774186372f685"
}
]
}]
], "54cb50c76803fa8b248b4571", 4, false, 4000, 1);
}
static generatePraporAssort() {
@ -1194,6 +1222,8 @@ class PraporAssort{
PraporAssort.GenerateLL2();
PraporAssort.GenerateLL3();
PraporAssort.GenerateLL4();
VFS.writeFile(`./traders/54cb50c76803fa8b248b4571/assort.json`, JsonUtil.serialize(DatabaseServer.tables.traders["54cb50c76803fa8b248b4571"].assort, true))
VFS.writeFile(`./traders/54cb50c76803fa8b248b4571/questassort.json`, JsonUtil.serialize(DatabaseServer.tables.traders["54cb50c76803fa8b248b4571"].questassort, true))
}
}