messages
All checks were successful
Build / build (20) (push) Successful in 37s
Build / build (22) (push) Successful in 1m0s
Build / build (18) (push) Successful in 1m8s
Build / build (18) (pull_request) Successful in 39s
Build / build (20) (pull_request) Successful in 59s
Build / build (22) (pull_request) Successful in 1m11s
All checks were successful
Build / build (20) (push) Successful in 37s
Build / build (22) (push) Successful in 1m0s
Build / build (18) (push) Successful in 1m8s
Build / build (18) (pull_request) Successful in 39s
Build / build (20) (pull_request) Successful in 59s
Build / build (22) (pull_request) Successful in 1m11s
This commit is contained in:
parent
d60e5b3e9f
commit
48c604d1ec
@ -88,40 +88,9 @@ export const addStartingGear = async (
|
|||||||
const inventoryDelta = await addItem(inventory, item);
|
const inventoryDelta = await addItem(inventory, item);
|
||||||
combineInventoryChanges(inventoryChanges, inventoryDelta.InventoryChanges);
|
combineInventoryChanges(inventoryChanges, inventoryDelta.InventoryChanges);
|
||||||
}
|
}
|
||||||
// currentloadoutids
|
|
||||||
|
|
||||||
// "LoadOutPresets": {
|
|
||||||
// "NORMAL": [
|
|
||||||
// {
|
|
||||||
// "s": {
|
|
||||||
// "ItemId": { "$oid": "67b73fbfb56b4b84d70433c2" },
|
|
||||||
// "mod": 0,
|
|
||||||
// "cus": 0
|
|
||||||
// },
|
|
||||||
// "p": {
|
|
||||||
// "ItemId": { "$oid": "67b73fbfb56b4b84d70433c5" },
|
|
||||||
// "mod": 0,
|
|
||||||
// "cus": 0
|
|
||||||
// },
|
|
||||||
// "l": {
|
|
||||||
// "ItemId": { "$oid": "67b73fbfb56b4b84d70433c4" },
|
|
||||||
// "mod": 0,
|
|
||||||
// "cus": 0
|
|
||||||
// },
|
|
||||||
// "m": {
|
|
||||||
// "ItemId": { "$oid": "67b73fbfb56b4b84d70433c6" },
|
|
||||||
// "mod": 0,
|
|
||||||
// "cus": 0
|
|
||||||
// },
|
|
||||||
// "ItemId": { "$oid": "67b73fbfb56b4b84d70433c7" }
|
|
||||||
// }
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
|
|
||||||
inventory.PlayedParkourTutorial = true;
|
inventory.PlayedParkourTutorial = true;
|
||||||
inventory.ReceivedStartingGear = true;
|
inventory.ReceivedStartingGear = true;
|
||||||
|
|
||||||
//originally ship is returned
|
|
||||||
//also weaponskins
|
|
||||||
return inventoryChanges;
|
return inventoryChanges;
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,7 @@ import { IMessageDatabase, Inbox } from "@/src/models/inboxModel";
|
|||||||
import { getAccountForRequest } from "@/src/services/loginService";
|
import { getAccountForRequest } from "@/src/services/loginService";
|
||||||
import { HydratedDocument } from "mongoose";
|
import { HydratedDocument } from "mongoose";
|
||||||
import { Request } from "express";
|
import { Request } from "express";
|
||||||
import messages from "@/static/fixed_responses/messages.json";
|
import eventMessages from "@/static/fixed_responses/eventMessages.json";
|
||||||
import { logger } from "@/src/utils/logger";
|
import { logger } from "@/src/utils/logger";
|
||||||
|
|
||||||
export const getAllMessagesSorted = async (accountId: string): Promise<HydratedDocument<IMessageDatabase>[]> => {
|
export const getAllMessagesSorted = async (accountId: string): Promise<HydratedDocument<IMessageDatabase>[]> => {
|
||||||
@ -32,7 +32,7 @@ export const createNewEventMessages = async (req: Request) => {
|
|||||||
const latestEventMessageDate = account.LatestEventMessageDate;
|
const latestEventMessageDate = account.LatestEventMessageDate;
|
||||||
|
|
||||||
//TODO: is baroo there? create these kind of messages too (periodical messages)
|
//TODO: is baroo there? create these kind of messages too (periodical messages)
|
||||||
const newEventMessages = messages.Messages.filter(m => new Date(m.eventMessageDate) > latestEventMessageDate);
|
const newEventMessages = eventMessages.Messages.filter(m => new Date(m.eventMessageDate) > latestEventMessageDate);
|
||||||
|
|
||||||
if (newEventMessages.length === 0) {
|
if (newEventMessages.length === 0) {
|
||||||
logger.debug(`No new event messages. Latest event message date: ${latestEventMessageDate.toISOString()}`);
|
logger.debug(`No new event messages. Latest event message date: ${latestEventMessageDate.toISOString()}`);
|
||||||
|
12
static/fixed_responses/eventMessages.json
Normal file
12
static/fixed_responses/eventMessages.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"Messages": [
|
||||||
|
{
|
||||||
|
"sub": "Welcome to Space Ninja Server",
|
||||||
|
"sndr": "/Lotus/Language/Bosses/Ordis",
|
||||||
|
"msg": "Enjoy your Space Ninja Experience",
|
||||||
|
"icon": "/Lotus/Interface/Icons/Npcs/Darvo.png",
|
||||||
|
"eventMessageDate": "2025-01-30T13:00:00.000Z",
|
||||||
|
"r": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,49 +0,0 @@
|
|||||||
{
|
|
||||||
"Messages": [
|
|
||||||
{
|
|
||||||
"sub": "Welcome to Space Ninja Server",
|
|
||||||
"sndr": "/Lotus/Language/Bosses/Ordis",
|
|
||||||
"msg": "Enjoy your Space Ninja Experience",
|
|
||||||
"icon": "/Lotus/Interface/Icons/Npcs/Darvo.png",
|
|
||||||
"eventMessageDate": "2025-01-30T13:00:00.000Z",
|
|
||||||
"r": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sub": "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBTitle",
|
|
||||||
"sndr": "/Lotus/Language/Bosses/Darvo",
|
|
||||||
"msg": "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBDesc",
|
|
||||||
"icon": "/Lotus/Interface/Icons/Npcs/Darvo.png",
|
|
||||||
"countedAtt": [
|
|
||||||
{
|
|
||||||
"ItemCount": 1,
|
|
||||||
"ItemType": "/Lotus/Types/Recipes/Weapons/BurstonRifleBlueprint"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ItemCount": 1,
|
|
||||||
"ItemType": "/Lotus/Types/Items/MiscItems/Morphic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ItemCount": 400,
|
|
||||||
"ItemType": "/Lotus/Types/Items/MiscItems/PolymerBundle"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ItemCount": 150,
|
|
||||||
"ItemType": "/Lotus/Types/Items/MiscItems/AlloyPlate"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"highPriority": true,
|
|
||||||
"eventMessageDate": "2023-10-01T17:00:00.000Z",
|
|
||||||
"r": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sub": "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Title",
|
|
||||||
"sndr": "/Lotus/Language/Menu/Mailbox_WarframeSender",
|
|
||||||
"msg": "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Desc",
|
|
||||||
"icon": "/Lotus/Interface/Icons/Npcs/Lotus_d.png",
|
|
||||||
"transmission": "/Lotus/Sounds/Dialog/VorsPrize/DLisetPostAssassinate110Lotus",
|
|
||||||
"highPriority": true,
|
|
||||||
"eventMessageDate": "2023-09-01T17:00:00.000Z",
|
|
||||||
"r": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user