feat: entratiLabConquestMode.php #1291
@ -19,11 +19,11 @@ export const entratiLabConquestModeController: RequestHandler = async (req, res)
|
||||
const weekEnd = weekStart + 604800000;
|
||||
inventory.EntratiVaultCountLastPeriod = 0;
|
||||
inventory.EntratiVaultCountResetDate = new Date(weekEnd);
|
||||
if ("EntratiLabConquestUnlocked" in inventory) {
|
||||
if (inventory.EntratiLabConquestUnlocked) {
|
||||
inventory.EntratiLabConquestUnlocked = 0;
|
||||
inventory.EntratiLabConquestActiveFrameVariants = [];
|
||||
}
|
||||
if ("EchoesHexConquestUnlocked" in inventory) {
|
||||
if (inventory.EchoesHexConquestUnlocked) {
|
||||
inventory.EchoesHexConquestUnlocked = 0;
|
||||
inventory.EchoesHexConquestActiveFrameVariants = [];
|
||||
inventory.EchoesHexConquestActiveStickers = [];
|
||||
@ -38,10 +38,14 @@ export const entratiLabConquestModeController: RequestHandler = async (req, res)
|
||||
}
|
||||
}
|
||||
if (body.IsEchoesDeepArchemedea) {
|
||||
inventory.EchoesHexConquestActiveFrameVariants = body.EchoesHexConquestActiveFrameVariants!;
|
||||
inventory.EchoesHexConquestActiveStickers = body.EchoesHexConquestActiveStickers!;
|
||||
if (inventory.EchoesHexConquestUnlocked) {
|
||||
inventory.EchoesHexConquestActiveFrameVariants = body.EchoesHexConquestActiveFrameVariants!;
|
||||
inventory.EchoesHexConquestActiveStickers = body.EchoesHexConquestActiveStickers!;
|
||||
}
|
||||
} else {
|
||||
inventory.EntratiLabConquestActiveFrameVariants = body.EntratiLabConquestActiveFrameVariants!;
|
||||
if (inventory.EntratiLabConquestUnlocked) {
|
||||
inventory.EntratiLabConquestActiveFrameVariants = body.EntratiLabConquestActiveFrameVariants!;
|
||||
}
|
||||
}
|
||||
await inventory.save();
|
||||
res.json({
|
||||
|
Loading…
x
Reference in New Issue
Block a user