Improve addItemToStash() debug messaging

This commit is contained in:
Dev 2024-01-29 09:54:20 +00:00
parent 8b691e10a9
commit 8fe2508e00

View File

@ -127,7 +127,7 @@ export class InventoryHelper
output.profileChanges[sessionId].items.new.push(...itemWithModsToAddClone); output.profileChanges[sessionId].items.new.push(...itemWithModsToAddClone);
pmcData.Inventory.items.push(...itemWithModsToAddClone); pmcData.Inventory.items.push(...itemWithModsToAddClone);
this.logger.debug(`Added ${itemWithModsToAddClone[0].upd?.StackObjectsCount} item: ${itemWithModsToAddClone[0]._tpl} with: ${itemWithModsToAddClone.length - 1} mods to inventory`); this.logger.debug(`Added ${itemWithModsToAddClone[0].upd?.StackObjectsCount ?? 1} item: ${itemWithModsToAddClone[0]._tpl} with: ${itemWithModsToAddClone.length - 1} mods to inventory`);
} }
/** /**