9 lines
329 B
TypeScript
9 lines
329 B
TypeScript
import type { InventoryItem } from "./lootTypes";
|
|
|
|
/** Leveling dungeon bosses award cards through the separate boss-card path. */
|
|
export function allowedLootDrops(drops: readonly InventoryItem[], playerLevel: number): readonly InventoryItem[] {
|
|
return Number.isFinite(playerLevel) && playerLevel >= 80
|
|
? drops
|
|
: [];
|
|
}
|