feat: implement arcane adapters

Closes #184

As far as I can tell, you still need to acquire the arcane adatper using hacky ways, as I don't see any way to buy them with plat.
This commit is contained in:
Sainan 2024-05-07 13:24:37 +02:00
parent a8ea8d1364
commit 1bdcf4fd4a

View File

@ -35,6 +35,17 @@ export const upgradesController: RequestHandler = async (req, res) => {
}
}
break;
case "/Lotus/Types/Items/MiscItems/WeaponPrimaryArcaneUnlocker":
case "/Lotus/Types/Items/MiscItems/WeaponSecondaryArcaneUnlocker":
case "/Lotus/Types/Items/MiscItems/WeaponMeleeArcaneUnlocker":
for (const item of inventory[payload.ItemCategory as TGenericItemKey] as IGenericItemDatabase[]) {
if (item._id.toString() == payload.ItemId.$oid) {
item.Features ??= 0;
item.Features |= 32;
break;
}
}
break;
default:
throw new Error("Unsupported upgrade: " + operation.UpgradeRequirement);
}