We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ed143 commit d93acbbCopy full SHA for d93acbb
1 file changed
src/service/lootDrop.ts
@@ -175,9 +175,8 @@ export async function postLootDrop(
175
const rarityWeights = rarities.map(a => a.initialDropWeight ?? 0);
176
177
const rarityAttribute =
178
- (predefinedLootDropOptions?.rarity ?? template.id === LootKind.NICHTS)
179
- ? null
180
- : randomEntryWeighted(rarities, rarityWeights);
+ predefinedLootDropOptions?.rarity ??
+ (template.id === LootKind.NICHTS ? null : randomEntryWeighted(rarities, rarityWeights));
181
182
const claimedLoot = await lootService.createLoot(
183
template,
0 commit comments