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
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
normalizeItemStats,
|
||||
MAX_PERSISTED_ITEM_LEVEL,
|
||||
type ItemQuality,
|
||||
type ItemStats,
|
||||
} from "./itemStats";
|
||||
@@ -51,7 +52,7 @@ export function normalizeInventory(value: unknown): InventoryItem[] {
|
||||
|| typeof item.sourceBossName !== "string"
|
||||
|| !Number.isFinite(item.acquiredAt)
|
||||
) continue;
|
||||
const itemLevel = Math.max(1, Math.min(80, Math.trunc(item.itemLevel!)));
|
||||
const itemLevel = Math.max(1, Math.min(MAX_PERSISTED_ITEM_LEVEL, Math.trunc(item.itemLevel!)));
|
||||
normalized.push({
|
||||
instanceId: item.instanceId,
|
||||
itemId: Math.max(1, Math.trunc(item.itemId!)),
|
||||
|
||||
Reference in new issue
Block a user