diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-02 13:12:39 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-02 13:12:39 +1000 |
commit | 6fc52e2fe7d4964f9e9632110dbe9e8a143b5a0a (patch) | |
tree | 9d7f6ffbf3c7d3086b89996d79b595d12b438548 | |
parent | 80109a8181701a38e14a80dd97c6a54d69c9e85b (diff) |
codex items: mark unread if already known so that it reopens
-rw-r--r-- | source/game/items/StarCodexItem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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()); } } |