somewhat handle converting of the lich
All checks were successful
Build / build (push) Successful in 43s
Build / build (pull_request) Successful in 1m26s

This commit is contained in:
Sainan 2025-04-28 01:35:12 +02:00
parent 8e1acb48bd
commit a4a53b56a9
2 changed files with 15 additions and 15 deletions

View File

@ -1,5 +1,5 @@
import { ExportRegions, ExportWarframes } from "warframe-public-export-plus";
import { IInfNode } from "@/src/types/inventoryTypes/inventoryTypes";
import { IInfNode, ITypeCount } from "@/src/types/inventoryTypes/inventoryTypes";
import { getRewardAtPercentage, SRng } from "@/src/services/rngService";
import { TInventoryDatabaseDocument } from "../models/inventoryModels/inventoryModel";
import { logger } from "../utils/logger";
@ -353,6 +353,16 @@ export const sendCodaFinishedMessage = async (
att.push(fromStoreItem(rotAReward));
att.push(fromStoreItem(rotBReward));
let countedAtt: ITypeCount[] | undefined;
if (killed) {
countedAtt = [
{
ItemType: "/Lotus/Types/Items/MiscItems/CodaWeaponBucks",
ItemCount: getKillTokenRewardCount(fp)
}
];
}
await createMessage(inventory.accountOwnerId, [
{
sndr: "/Lotus/Language/Bosses/Ordis",
@ -364,12 +374,7 @@ export const sendCodaFinishedMessage = async (
}
],
att: att,
countedAtt: [
{
ItemType: "/Lotus/Types/Items/MiscItems/CodaWeaponBucks",
ItemCount: getKillTokenRewardCount(fp)
}
],
countedAtt: countedAtt,
sub: "/Lotus/Language/Inbox/VanquishBandMsgTitle",
icon: "/Lotus/Interface/Icons/Npcs/Ordis.png",
highPriority: true

View File

@ -658,15 +658,10 @@ export const addMissionInventoryUpdates = async (
if (value.petLoc) {
giveNemesisPetRecipe(inventory);
}
}
if (inventory.Nemesis.Faction == "FC_INFESTATION") {
await sendCodaFinishedMessage(
inventory,
inventory.Nemesis.fp,
value.nemesisName,
value.killed
);
}
await sendCodaFinishedMessage(inventory, inventory.Nemesis.fp, value.nemesisName, value.killed);
}
inventory.Nemesis = undefined;