nope, this doesn't work because UOT_ABILITY_OVERRIDE does have non-empty UpgradeRequirement (sometimes)
This commit is contained in:
parent
f6ca96ca39
commit
162f1f69b3
@ -25,16 +25,19 @@ export const upgradesController: RequestHandler = async (req, res) => {
|
|||||||
operation.UpgradeRequirement == "/Lotus/Types/Items/MiscItems/CustomizationSlotUnlocker"
|
operation.UpgradeRequirement == "/Lotus/Types/Items/MiscItems/CustomizationSlotUnlocker"
|
||||||
) {
|
) {
|
||||||
updateCurrency(inventory, 10, true);
|
updateCurrency(inventory, 10, true);
|
||||||
} else if (operation.UpgradeRequirement) {
|
} else if (
|
||||||
|
operation.OperationType != "UOT_SWAP_POLARITY" &&
|
||||||
|
operation.OperationType != "UOT_ABILITY_OVERRIDE"
|
||||||
|
) {
|
||||||
|
if (!operation.UpgradeRequirement) {
|
||||||
|
throw new Error(`${operation.OperationType} operation should be free?`);
|
||||||
|
}
|
||||||
addMiscItems(inventory, [
|
addMiscItems(inventory, [
|
||||||
{
|
{
|
||||||
ItemType: operation.UpgradeRequirement,
|
ItemType: operation.UpgradeRequirement,
|
||||||
ItemCount: -1
|
ItemCount: -1
|
||||||
} satisfies IMiscItem
|
} satisfies IMiscItem
|
||||||
]);
|
]);
|
||||||
} else {
|
|
||||||
// UOT_SWAP_POLARITY - free operation
|
|
||||||
// UOT_ABILITY_OVERRIDE - handled below
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (operation.OperationType == "UOT_ABILITY_OVERRIDE") {
|
if (operation.OperationType == "UOT_ABILITY_OVERRIDE") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user