Skip to content

Commit

Permalink
Fixed hideout craft rewards not taking into account config craft time…
Browse files Browse the repository at this point in the history
… override
  • Loading branch information
Chomp committed Dec 5, 2024
1 parent 5c4d051 commit 4508dc0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions project/src/services/CircleOfCultistService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ export class CircleOfCultistService {
Math.random() <= circleConfig.bonusChanceMultiplier
) {
// Sacrifice amount is enough + passed 25% check to get hideout/task rewards
result.time = circleConfig.hideoutTaskRewardTimeSeconds;
result.time =
circleConfig.craftTimeOverride !== -1
? circleConfig.craftTimeOverride
: circleConfig.hideoutTaskRewardTimeSeconds;
result.rewardType = CircleRewardType.HIDEOUT_TASK;

return result;
Expand Down Expand Up @@ -428,7 +431,7 @@ export class CircleOfCultistService {
// Prep rewards array (reward can be item with children, hence array of arrays)
const rewards: IItem[][] = [];

// Handle special case of tagilla helmets
// Handle special case of tagilla helmets - only one reward is allowed
if (directReward.reward.includes(ItemTpl.FACECOVER_TAGILLAS_WELDING_MASK_GORILLA)) {
directReward.reward = [this.randomUtil.getArrayValue(directReward.reward)];
}
Expand Down

0 comments on commit 4508dc0

Please sign in to comment.