Fix Dev profiles not having access to Weapon wall and Cultist stash
This commit is contained in:
parent
0839f34b9b
commit
d4cc41d3fc
@ -40757,13 +40757,27 @@
|
|||||||
"Inventory": {
|
"Inventory": {
|
||||||
"equipment": "5fe49444ae6628187a2e77b8",
|
"equipment": "5fe49444ae6628187a2e77b8",
|
||||||
"fastPanel": {},
|
"fastPanel": {},
|
||||||
"hideoutAreaStashes": {},
|
"hideoutAreaStashes": {
|
||||||
|
"16": "5d494a295b56502f18c98a08",
|
||||||
|
"24": "63db64cbf9963741dc0d741f",
|
||||||
|
"25": "640b2d867f4185aa520d08ba",
|
||||||
|
"27": "66c5bfd48a24042f1006eadc"
|
||||||
|
},
|
||||||
"items": [{
|
"items": [{
|
||||||
"_id": "5fe49444ae6628187a2e77b8",
|
"_id": "5fe49444ae6628187a2e77b8",
|
||||||
"_tpl": "55d7217a4bdc2d86028b456d"
|
"_tpl": "55d7217a4bdc2d86028b456d"
|
||||||
|
}, {
|
||||||
|
"_id": "66c5bfd48a24042f1006eadc",
|
||||||
|
"_tpl": "66740c3739b9da6ce402ee65"
|
||||||
|
}, {
|
||||||
|
"_id": "5d494a295b56502f18c98a08",
|
||||||
|
"_tpl": "6542435ea57eea37ed6562f0"
|
||||||
|
}, {
|
||||||
|
"_id": "640b2d867f4185aa520d08ba",
|
||||||
|
"_tpl": "64381b6e44b37a080d0245b9"
|
||||||
}, {
|
}, {
|
||||||
"_id": "63db64cbf9963741dc0d741f",
|
"_id": "63db64cbf9963741dc0d741f",
|
||||||
"_tpl": "6401c7b213d9b818bf0e7dd7"
|
"_tpl": "64381b6e44b37a080d0245b9"
|
||||||
}, {
|
}, {
|
||||||
"_id": "f5e6bdac05e699d687993249",
|
"_id": "f5e6bdac05e699d687993249",
|
||||||
"_tpl": "5857a8bc2459772bad15db29",
|
"_tpl": "5857a8bc2459772bad15db29",
|
||||||
@ -43859,18 +43873,32 @@
|
|||||||
"Inventory": {
|
"Inventory": {
|
||||||
"equipment": "5fe49444ae6628187a2e77b8",
|
"equipment": "5fe49444ae6628187a2e77b8",
|
||||||
"fastPanel": {},
|
"fastPanel": {},
|
||||||
"hideoutAreaStashes": {},
|
"hideoutAreaStashes": {
|
||||||
|
"16": "5d494a295b56502f18c98a08",
|
||||||
|
"24": "63db64cbf9963741dc0d741f",
|
||||||
|
"25": "640b2d867f4185aa520d08ba",
|
||||||
|
"27": "66c5bfd48a24042f1006eadc"
|
||||||
|
},
|
||||||
"items": [{
|
"items": [{
|
||||||
"_id": "5fe49444ae6628187a2e77b8",
|
"_id": "5fe49444ae6628187a2e77b8",
|
||||||
"_tpl": "55d7217a4bdc2d86028b456d"
|
"_tpl": "55d7217a4bdc2d86028b456d"
|
||||||
}, {
|
|
||||||
"_id": "63db64cbf9963741dc0d741f",
|
|
||||||
"_tpl": "6401c7b213d9b818bf0e7dd7"
|
|
||||||
}, {
|
}, {
|
||||||
"_id": "f5e6bdac05e699d687993249",
|
"_id": "f5e6bdac05e699d687993249",
|
||||||
"_tpl": "5857a8bc2459772bad15db29",
|
"_tpl": "5857a8bc2459772bad15db29",
|
||||||
"parentId": "5fe49444ae6628187a2e77b8",
|
"parentId": "5fe49444ae6628187a2e77b8",
|
||||||
"slotId": "SecuredContainer"
|
"slotId": "SecuredContainer"
|
||||||
|
}, {
|
||||||
|
"_id": "66c5bfd48a24042f1006eadc",
|
||||||
|
"_tpl": "66740c3739b9da6ce402ee65"
|
||||||
|
}, {
|
||||||
|
"_id": "5d494a295b56502f18c98a08",
|
||||||
|
"_tpl": "6542435ea57eea37ed6562f0"
|
||||||
|
}, {
|
||||||
|
"_id": "640b2d867f4185aa520d08ba",
|
||||||
|
"_tpl": "64381b6e44b37a080d0245b9"
|
||||||
|
}, {
|
||||||
|
"_id": "63db64cbf9963741dc0d741f",
|
||||||
|
"_tpl": "64381b6e44b37a080d0245b9"
|
||||||
}, {
|
}, {
|
||||||
"_id": "01e9d751f10e4e9aebdd94d5",
|
"_id": "01e9d751f10e4e9aebdd94d5",
|
||||||
"_tpl": "627a4e6b255f7527fb05a0f6",
|
"_tpl": "627a4e6b255f7527fb05a0f6",
|
||||||
|
@ -168,7 +168,6 @@ export class ProfileController {
|
|||||||
undefined,
|
undefined,
|
||||||
pmcData.Inventory.fastPanel,
|
pmcData.Inventory.fastPanel,
|
||||||
);
|
);
|
||||||
pmcData.Inventory.hideoutAreaStashes = {};
|
|
||||||
|
|
||||||
// Create profile
|
// Create profile
|
||||||
const profileDetails: ISptProfile = {
|
const profileDetails: ISptProfile = {
|
||||||
|
@ -805,6 +805,7 @@ export class ItemHelper {
|
|||||||
): Item[] {
|
): Item[] {
|
||||||
let items = this.cloner.clone(originalItems); // Deep-clone the items to avoid mutation.
|
let items = this.cloner.clone(originalItems); // Deep-clone the items to avoid mutation.
|
||||||
let serialisedInventory = this.jsonUtil.serialize(items);
|
let serialisedInventory = this.jsonUtil.serialize(items);
|
||||||
|
const hideoutAreaStashes = Object.values(pmcData?.Inventory.hideoutAreaStashes ?? {});
|
||||||
|
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
if (pmcData) {
|
if (pmcData) {
|
||||||
@ -819,7 +820,8 @@ export class ItemHelper {
|
|||||||
item._id === pmcData.Inventory.questRaidItems ||
|
item._id === pmcData.Inventory.questRaidItems ||
|
||||||
item._id === pmcData.Inventory.questStashItems ||
|
item._id === pmcData.Inventory.questStashItems ||
|
||||||
item._id === pmcData.Inventory.sortingTable ||
|
item._id === pmcData.Inventory.sortingTable ||
|
||||||
item._id === pmcData.Inventory.stash
|
item._id === pmcData.Inventory.stash ||
|
||||||
|
hideoutAreaStashes?.includes(item._id)
|
||||||
) {
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -303,6 +303,13 @@ export class ProfileFixerService {
|
|||||||
this.logger.debug("Updating bitcoin farm area slots to a size of 50 + hideout management skill");
|
this.logger.debug("Updating bitcoin farm area slots to a size of 50 + hideout management skill");
|
||||||
this.addEmptyObjectsToHideoutAreaSlots(HideoutAreas.BITCOIN_FARM, 50 + extraBtcSlots, pmcProfile);
|
this.addEmptyObjectsToHideoutAreaSlots(HideoutAreas.BITCOIN_FARM, 50 + extraBtcSlots, pmcProfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const cultistAreaSlots = pmcProfile.Hideout.Areas.find((x) => x.type === HideoutAreas.CIRCLE_OF_CULTISTS).slots
|
||||||
|
.length;
|
||||||
|
if (cultistAreaSlots < 1) {
|
||||||
|
this.logger.debug("Updating cultist area slots to a size of 1");
|
||||||
|
this.addEmptyObjectsToHideoutAreaSlots(HideoutAreas.CIRCLE_OF_CULTISTS, 1, pmcProfile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user