chore: use giveKeyChainMessage to send messages
All checks were successful
Build / build (18) (pull_request) Successful in 40s
Build / build (22) (pull_request) Successful in 1m0s
Build / build (20) (pull_request) Successful in 1m6s

This commit is contained in:
nrbdev 2025-02-20 12:18:32 -05:00
parent 4ccf8de801
commit 3375b9cb4b

View File

@ -47,11 +47,11 @@ import {
ExportWeapons, ExportWeapons,
TStandingLimitBin TStandingLimitBin
} from "warframe-public-export-plus"; } from "warframe-public-export-plus";
import { createMessage } from "./inboxService";
import { createShip } from "./shipService"; import { createShip } from "./shipService";
import { creditBundles, fusionBundles } from "@/src/services/missionInventoryUpdateService"; import { creditBundles, fusionBundles } from "@/src/services/missionInventoryUpdateService";
import { IKeyChainRequest } from "@/src/controllers/api/giveKeyChainTriggeredItemsController"; import { IKeyChainRequest } from "@/src/controllers/api/giveKeyChainTriggeredItemsController";
import { toOid } from "../helpers/inventoryHelpers"; import { toOid } from "../helpers/inventoryHelpers";
import { giveKeyChainMessage } from "./questService";
export const createInventory = async ( export const createInventory = async (
accountOwnerId: Types.ObjectId, accountOwnerId: Types.ObjectId,
@ -81,43 +81,15 @@ export const createInventory = async (
]; ];
// Give Darvo items that would be given after completing vors prize // Give Darvo items that would be given after completing vors prize
await createMessage(String(accountOwnerId), [ await giveKeyChainMessage(inventory, String(accountOwnerId), {
{ KeyChain: "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain",
sub: "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Title", ChainStage: 7 /* a.k.a { "title": "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Title", "body": "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Desc" } */
sndr: "/Lotus/Language/Menu/Mailbox_WarframeSender", });
msg: "/Lotus/Language/G1Quests/Beginner_Growth_Inbox_Desc",
icon: "/Lotus/Interface/Icons/Npcs/Lotus_d.png", await giveKeyChainMessage(inventory, String(accountOwnerId), {
transmission: "/Lotus/Sounds/Dialog/VorsPrize/DLisetPostAssassinate110Lotus", KeyChain: "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain",
highPriority: true, ChainStage: 6 /* a.k.a { "title": "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBTitle", "body": "/Lotus/Language/Inbox/DarvoWeaponCraftingMessageBDesc" } */
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,
r: false
}
]);
// const vorsPrizeRewards = [ // const vorsPrizeRewards = [
// // Vor's Prize rewards // // Vor's Prize rewards