mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:30:45 -05:00
Logged error when nothing can be placed in reward grid
This commit is contained in:
parent
d3e7e1006b
commit
768a275253
@ -1330,7 +1330,7 @@ export class HideoutController {
|
|||||||
|
|
||||||
//const rewardItemPool = cultistStashDbItem[1]._props.Grids[0]._props.filters[0].Filter;
|
//const rewardItemPool = cultistStashDbItem[1]._props.Grids[0]._props.filters[0].Filter;
|
||||||
const rewardItemPool = this.getCultistCircleRewardPool(sessionId, pmcData);
|
const rewardItemPool = this.getCultistCircleRewardPool(sessionId, pmcData);
|
||||||
this.logger.warning(`Reward pool size: ${rewardItemPool.length}`);
|
this.logger.warning(`Reward pool item count: ${rewardItemPool.length}`);
|
||||||
// Prep rewards array (reward can be item with children, hence array of arrays)
|
// Prep rewards array (reward can be item with children, hence array of arrays)
|
||||||
const rewards: Item[][] = [];
|
const rewards: Item[][] = [];
|
||||||
|
|
||||||
@ -1375,6 +1375,10 @@ export class HideoutController {
|
|||||||
output.profileChanges[sessionId].items.new.push(...itemToAdd);
|
output.profileChanges[sessionId].items.new.push(...itemToAdd);
|
||||||
pmcData.Inventory.items.push(...itemToAdd);
|
pmcData.Inventory.items.push(...itemToAdd);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.logger.error(
|
||||||
|
`Unable to fit all: ${itemsRewardedCount} reward items into sacrifice grid, nothing will be returned`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user