fix: set deathmark message title to the boss' name (#1533)
Some checks failed
Build / build (push) Has been cancelled
Build Docker image / docker (push) Has been cancelled

Reviewed-on: #1533
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-04-10 07:16:06 -07:00 committed by Sainan
parent c2ed8b40f0
commit 0ffcee5faf

View File

@ -385,12 +385,12 @@ export const addMissionInventoryUpdates = async (
break; break;
} }
case "DeathMarks": { case "DeathMarks": {
for (const deathMark of value) { for (const bossName of value) {
if (!inventory.DeathMarks.find(x => x == deathMark)) { if (inventory.DeathMarks.indexOf(bossName) == -1) {
// It's a new death mark; we have to say the line. // It's a new death mark; we have to say the line.
await createMessage(inventory.accountOwnerId, [ await createMessage(inventory.accountOwnerId, [
{ {
sub: "/Lotus/Language/G1Quests/DeathMarkTitle", sub: bossName,
sndr: "/Lotus/Language/G1Quests/DeathMarkSender", sndr: "/Lotus/Language/G1Quests/DeathMarkSender",
msg: "/Lotus/Language/G1Quests/DeathMarkMessage", msg: "/Lotus/Language/G1Quests/DeathMarkMessage",
icon: "/Lotus/Interface/Icons/Npcs/Stalker_d.png", icon: "/Lotus/Interface/Icons/Npcs/Stalker_d.png",