This commit is contained in:
parent
efa083d3cb
commit
4e6bb5b438
@ -605,11 +605,13 @@ function updateInventory() {
|
|||||||
const exaltedCap =
|
const exaltedCap =
|
||||||
itemMap[exaltedType]?.type == "weapons" ? 800_000 : 1_600_000;
|
itemMap[exaltedType]?.type == "weapons" ? 800_000 : 1_600_000;
|
||||||
if (exaltedItem.XP < exaltedCap) {
|
if (exaltedItem.XP < exaltedCap) {
|
||||||
promises.push(addGearExp(
|
promises.push(
|
||||||
"SpecialItems",
|
addGearExp(
|
||||||
exaltedItem.ItemId.$oid,
|
"SpecialItems",
|
||||||
exaltedCap - exaltedItem.XP
|
exaltedItem.ItemId.$oid,
|
||||||
));
|
exaltedCap - exaltedItem.XP
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1458,8 +1460,7 @@ function maxRankAllEquipment(categories) {
|
|||||||
for (const exaltedType of itemMap[item.ItemType].exalted) {
|
for (const exaltedType of itemMap[item.ItemType].exalted) {
|
||||||
const exaltedItem = data["SpecialItems"].find(x => x.ItemType == exaltedType);
|
const exaltedItem = data["SpecialItems"].find(x => x.ItemType == exaltedType);
|
||||||
if (exaltedItem) {
|
if (exaltedItem) {
|
||||||
const exaltedCap =
|
const exaltedCap = itemMap[exaltedType]?.type == "weapons" ? 800_000 : 1_600_000;
|
||||||
itemMap[exaltedType]?.type == "weapons" ? 800_000 : 1_600_000;
|
|
||||||
if (exaltedItem.XP < exaltedCap) {
|
if (exaltedItem.XP < exaltedCap) {
|
||||||
batchData["SpecialItems"] ??= [];
|
batchData["SpecialItems"] ??= [];
|
||||||
batchData["SpecialItems"].push({
|
batchData["SpecialItems"].push({
|
||||||
@ -1497,7 +1498,9 @@ function addGearExp(category, oid, xp) {
|
|||||||
url: "/custom/addXp?" + window.authz,
|
url: "/custom/addXp?" + window.authz,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify(data)
|
data: JSON.stringify(data)
|
||||||
}).done(resolve).fail(reject);
|
})
|
||||||
|
.done(resolve)
|
||||||
|
.fail(reject);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user