forked from phenom/healer-man
Release Healer Man 0.1.15
This commit is contained in:
1 parent
7b41b102fa
commit
f49e54f35f
43 files changed
+1478
-112
No files matched your search
@@ -84,7 +84,8 @@ function chooseWeightedItem(items: readonly LootCatalogItem[], random: () => num
|
||||
}
|
||||
|
||||
export function scaledLootItemLevel(playerLevel: number): number {
|
||||
return Math.max(1, Math.min(80, Math.trunc(Number.isFinite(playerLevel) ? playerLevel : 1)));
|
||||
const level = Math.max(1, Math.min(80, Math.trunc(Number.isFinite(playerLevel) ? playerLevel : 1)));
|
||||
return level >= 80 ? 85 : level;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user