refactor: Skip processing lore entries without key or alwaysActive flag

This commit is contained in:
kwaroran
2024-05-26 11:46:17 +09:00
parent 950ac1d46e
commit c1ac40024a

View File

@@ -283,6 +283,9 @@ export async function loadLoreBookV3Prompt(){
if(activatedIndexes.includes(i)){
continue
}
if(!fullLore[i].alwaysActive && !fullLore[i].key){
continue
}
let activated = true
let pos = ''
let depth = 0