From 6fc52e2fe7d4964f9e9632110dbe9e8a143b5a0a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 2 May 2024 13:12:39 +1000 Subject: [PATCH] codex items: mark unread if already known so that it reopens --- source/game/items/StarCodexItem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/game/items/StarCodexItem.cpp b/source/game/items/StarCodexItem.cpp index aaaca3b..a23f4d7 100644 --- a/source/game/items/StarCodexItem.cpp +++ b/source/game/items/StarCodexItem.cpp @@ -33,6 +33,7 @@ void CodexItem::fireTriggered() { if (codexLearned) { player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.learned").toString()); } else { + player->codexes()->markCodexUnread(m_codexId); player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.alreadyKnown").toString()); } }