From b211b40c136634f274d1e1b34da065985227e7f1 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 7 Dec 2024 10:13:47 +0000 Subject: [PATCH] Added more comments --- project/src/services/CircleOfCultistService.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/project/src/services/CircleOfCultistService.ts b/project/src/services/CircleOfCultistService.ts index d7c09699..165eb744 100644 --- a/project/src/services/CircleOfCultistService.ts +++ b/project/src/services/CircleOfCultistService.ts @@ -664,11 +664,17 @@ export class CircleOfCultistService { return Array.from(rewardPool); } + /** + * Check players profile for quests with hand-in requirements and add those required items to the pool + * @param pmcData Player profile + * @param itemRewardBlacklist Items not to add to pool + * @param rewardPool Pool to add items to + */ protected addTaskItemRequirementsToRewardPool( pmcData: IPmcData, itemRewardBlacklist: string[], rewardPool: Set, - ) { + ): void { const activeTasks = pmcData.Quests.filter((quest) => quest.status === QuestStatus.Started); for (const task of activeTasks) { const questData = this.questHelper.getQuestFromDb(task.qid, pmcData); @@ -687,12 +693,19 @@ export class CircleOfCultistService { } } + /** + * Adds items the player needs to complete hideout crafts/upgrades to the reward pool + * @param hideoutDbData Hideout area data + * @param pmcData Player profile + * @param itemRewardBlacklist Items not to add to pool + * @param rewardPool Pool to add items to + */ protected addHideoutUpgradeRequirementsToRewardPool( hideoutDbData: IHideout, pmcData: IPmcData, itemRewardBlacklist: string[], rewardPool: Set, - ) { + ): void { const dbAreas = hideoutDbData.areas; for (const profileArea of this.getPlayerAccessibleHideoutAreas(pmcData.Hideout.Areas)) { const currentStageLevel = profileArea.level;