New WIP feature

Prevent mastering Fence option (avoiding getting scavs karma bonuses)
This commit is contained in:
Ereshkigal 2021-06-30 20:33:35 +02:00
parent 0abe190363
commit b11c33ea8c
2 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,7 @@
},
"MaxInsuranceStorageTime": false,
"AllTraders4Stars": false,
"PreventFenceMastering": true,
"Remove FIR condition on quests": false
},
"raids": {

View File

@ -104,6 +104,11 @@ class TradersModifications {
}
function lvlUp(traderID, sessionID) {
if (config.traders.PreventFenceMastering === true) {
if (traderID === "579dc571d53a0658a154fbec") {
continue;
}
}
let pmcData = ProfileController.getPmcProfile(sessionID);
let loyaltyLevels = DatabaseServer.tables.traders[traderID].base.loyalty.loyaltyLevels;