codex items: mark unread if already known so that it reopens

This commit is contained in:
Kae 2024-05-02 13:12:39 +10:00
parent 80109a8181
commit 6fc52e2fe7

View File

@ -33,6 +33,7 @@ void CodexItem::fireTriggered() {
if (codexLearned) { if (codexLearned) {
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.learned").toString()); player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.learned").toString());
} else { } else {
player->codexes()->markCodexUnread(m_codexId);
player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.alreadyKnown").toString()); player->queueUIMessage(Root::singleton().assets()->json("/codex.config:messages.alreadyKnown").toString());
} }
} }