From f724073d932988c615f61e91d27b9d3994a6fb7a Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 13 May 2025 22:28:59 -0700 Subject: [PATCH] feat: classic lich regalia rewards (#2073) Closes #2068 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2073 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/missionInventoryUpdateService.ts | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index 45f2a9532..1caf5767d 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -686,9 +686,34 @@ export const addMissionInventoryUpdates = async ( addSkin(inventory, profile.ephemera); } - // TOVERIFY: Is the inbox message also sent when converting a lich? If not, how are the rewards given? - if (inventory.Nemesis.Faction == "FC_INFESTATION") { - await sendCodaFinishedMessage(inventory, inventory.Nemesis.fp, value.nemesisName, value.killed); + switch (inventory.Nemesis.Faction) { + case "FC_GRINEER": + addSkin( + inventory, + value.killed + ? "/Lotus/Upgrades/Skins/Clan/LichKillerBadgeItem" + : "/Lotus/Upgrades/Skins/Sigils/KuvaLichSigil" + ); + break; + + case "FC_CORPUS": + addSkin( + inventory, + value.killed + ? "/Lotus/Upgrades/Skins/Clan/CorpusLichBadgeItem" + : "/Lotus/Upgrades/Skins/Sigils/CorpusLichSigil" + ); + break; + + case "FC_INFESTATION": + // TOVERIFY: Is the inbox message also sent when converting a lich? If not, how are the rewards given? + await sendCodaFinishedMessage( + inventory, + inventory.Nemesis.fp, + value.nemesisName, + value.killed + ); + break; } inventory.Nemesis = undefined;