From 38d8fc448e93d50031b3cb5a20627ad51c26a40a Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 5 Jan 2025 04:03:04 +0100 Subject: [PATCH] reuse variable --- src/controllers/api/getVoidProjectionRewardsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/getVoidProjectionRewardsController.ts b/src/controllers/api/getVoidProjectionRewardsController.ts index 803e163a..9a956a20 100644 --- a/src/controllers/api/getVoidProjectionRewardsController.ts +++ b/src/controllers/api/getVoidProjectionRewardsController.ts @@ -22,7 +22,7 @@ export const getVoidProjectionRewardsController: RequestHandler = async (req, re logger.debug(`opening a relic of quality ${relic.quality}; rarity weights are`, weights); const reward = getRandomWeightedReward2( ExportRewards[relic.rewardManifest][0] as { type: string; itemCount: number; rarity: TRarity }[], // rarity is nullable in PE+ typings, but always present for relics - refinementToWeights[relic.quality] + weights )!; logger.debug(`relic rolled`, reward); response.ParticipantInfo.Reward = reward.type;