Compare commits

...

3 Commits

Author SHA1 Message Date
83e42c408e improve variable name 2025-04-09 23:21:58 +02:00
de30ac4f33 remove lambda 2025-04-09 23:21:30 +02:00
2d6c078eed fix: set deathmark message title to the boss' name 2025-04-09 23:19:56 +02:00

View File

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