forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
39458d5de6
commit
6cc1b9217f
203 files changed
+133929
-31271
No files matched your search
@@ -281,11 +281,15 @@ function heirloomItem(
|
||||
});
|
||||
}
|
||||
const stableNumber = [...`${profile.id}:${slot}`].reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) >>> 0, 17);
|
||||
// RoM has no heirloom items. The shared fallback supplies automatic training
|
||||
// gear until equipment progression is introduced; retain its stable IDs and
|
||||
// internal quality so this label change cannot alter saved builds or budgets.
|
||||
const romTrainingGear = isRomClassId(context.classId);
|
||||
const result: InventoryItem = Object.freeze({
|
||||
instanceId: `heirloom:${context.ownerId}:${profile.id}:${slot}`,
|
||||
itemId: 9_000_000 + stableNumber % 900_000,
|
||||
itemKey: `heirloom-${profile.id.replace(/:/g, "-")}-${slot}`,
|
||||
name: `${profile.displayName} Heirloom ${SLOT_NAMES[slot]}`,
|
||||
name: `${profile.displayName} ${romTrainingGear ? "Training" : "Heirloom"} ${SLOT_NAMES[slot]}`,
|
||||
quality: "heirloom",
|
||||
inventorySlot,
|
||||
armorType,
|
||||
@@ -295,7 +299,7 @@ function heirloomItem(
|
||||
stats,
|
||||
quantity: 1,
|
||||
sourceBossKey: "heirloom",
|
||||
sourceBossName: "Heirloom Armory",
|
||||
sourceBossName: romTrainingGear ? "Training Armory" : "Heirloom Armory",
|
||||
acquiredAt: 0,
|
||||
});
|
||||
itemCache.set(cacheKey, result);
|
||||
|
||||
Reference in new issue
Block a user