XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -3
Modified src/services/missionInventoryUpdateService.ts +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",