返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+3
-3
XFEstudio/XFESpaceNinjaServer
fix: set deathmark message title to the boss' name (#1533)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1533 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
0ffcee5f
代码差异
1 个文件
+3
-3
@@ -385,12 +385,12 @@ export const addMissionInventoryUpdates = async (
385
385
break;
386
386
}
387
387
case "DeathMarks": {
388
for (const deathMark of value) {
389
if (!inventory.DeathMarks.find(x => x == deathMark)) {
388
for (const bossName of value) {
389
if (inventory.DeathMarks.indexOf(bossName) == -1) {
390
390
// It's a new death mark; we have to say the line.
391
391
await createMessage(inventory.accountOwnerId, [
392
392
{
393
sub: "/Lotus/Language/G1Quests/DeathMarkTitle",
393
sub: bossName,
394
394
sndr: "/Lotus/Language/G1Quests/DeathMarkSender",
395
395
msg: "/Lotus/Language/G1Quests/DeathMarkMessage",
396
396
icon: "/Lotus/Interface/Icons/Npcs/Stalker_d.png",