Gear stand changes to match dump data. Will cause client to hang.
This commit is contained in:
parent
05c4bb1946
commit
ae6f2e4417
@ -294,7 +294,7 @@ export class HideoutController {
|
|||||||
|
|
||||||
// Dont inform client when upgraded area is hall of fame or equipment stand, BSG doesn't inform client this specifc upgrade has occurred
|
// Dont inform client when upgraded area is hall of fame or equipment stand, BSG doesn't inform client this specifc upgrade has occurred
|
||||||
// will break client if sent
|
// will break client if sent
|
||||||
if (![HideoutAreas.PLACE_OF_FAME, HideoutAreas.EQUIPMENT_PRESETS_STAND].includes(dbHideoutArea.type)) {
|
if (![HideoutAreas.PLACE_OF_FAME].includes(dbHideoutArea.type)) {
|
||||||
this.addContainerUpgradeToClientOutput(sessionID, dbHideoutArea.type, dbHideoutArea, hideoutStage, output);
|
this.addContainerUpgradeToClientOutput(sessionID, dbHideoutArea.type, dbHideoutArea, hideoutStage, output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -352,6 +352,7 @@ export class HideoutController {
|
|||||||
_tpl: ItemTpl.INVENTORY_DEFAULT,
|
_tpl: ItemTpl.INVENTORY_DEFAULT,
|
||||||
parentId: equipmentPresetHideoutArea._id,
|
parentId: equipmentPresetHideoutArea._id,
|
||||||
slotId: mannequinSlot._name,
|
slotId: mannequinSlot._name,
|
||||||
|
location: null,
|
||||||
};
|
};
|
||||||
pmcData.Inventory.items.push(mannequinToAdd);
|
pmcData.Inventory.items.push(mannequinToAdd);
|
||||||
|
|
||||||
@ -363,8 +364,11 @@ export class HideoutController {
|
|||||||
)._tpl, // Same pocket tpl as players profile (unheard get bigger, matching pockets etc)
|
)._tpl, // Same pocket tpl as players profile (unheard get bigger, matching pockets etc)
|
||||||
parentId: standId,
|
parentId: standId,
|
||||||
slotId: "Pockets",
|
slotId: "Pockets",
|
||||||
|
location: null,
|
||||||
};
|
};
|
||||||
pmcData.Inventory.items.push(mannequinPocketItemToAdd);
|
pmcData.Inventory.items.push(mannequinPocketItemToAdd);
|
||||||
|
output.profileChanges[sessionId].items.new.push(mannequinToAdd);
|
||||||
|
output.profileChanges[sessionId].items.new.push(mannequinPocketItemToAdd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -414,8 +418,8 @@ export class HideoutController {
|
|||||||
|
|
||||||
// Inform client of changes
|
// Inform client of changes
|
||||||
output.profileChanges[sessionID].changedHideoutStashes[areaType] = {
|
output.profileChanges[sessionID].changedHideoutStashes[areaType] = {
|
||||||
Id: hideoutDbData._id,
|
id: hideoutDbData._id,
|
||||||
Tpl: hideoutStage.container,
|
tpl: hideoutStage.container,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user