Skip to content

Commit 4508dc0

Browse files
author
Chomp
committed
Fixed hideout craft rewards not taking into account config craft time override
1 parent 5c4d051 commit 4508dc0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

project/src/services/CircleOfCultistService.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ export class CircleOfCultistService {
260260
Math.random() <= circleConfig.bonusChanceMultiplier
261261
) {
262262
// Sacrifice amount is enough + passed 25% check to get hideout/task rewards
263-
result.time = circleConfig.hideoutTaskRewardTimeSeconds;
263+
result.time =
264+
circleConfig.craftTimeOverride !== -1
265+
? circleConfig.craftTimeOverride
266+
: circleConfig.hideoutTaskRewardTimeSeconds;
264267
result.rewardType = CircleRewardType.HIDEOUT_TASK;
265268

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

431-
// Handle special case of tagilla helmets
434+
// Handle special case of tagilla helmets - only one reward is allowed
432435
if (directReward.reward.includes(ItemTpl.FACECOVER_TAGILLAS_WELDING_MASK_GORILLA)) {
433436
directReward.reward = [this.randomUtil.getArrayValue(directReward.reward)];
434437
}

0 commit comments

Comments
 (0)