Don't require a primary WI to use additionals

This commit is contained in:
Cohee 2024-06-18 12:09:28 +03:00
parent 7249294ffd
commit e7772f04a4
1 changed files with 1 additions and 2 deletions

View File

@ -2669,7 +2669,6 @@ async function getCharacterLore() {
worldsToSearch.add(baseWorldName);
} else {
console.debug(`Character ${name}'s base world could not be found or is empty! Skipping...`);
return [];
}
// TODO: Maybe make the utility function not use the window context?
@ -2696,7 +2695,7 @@ async function getCharacterLore() {
entries = entries.concat(newEntries);
}
console.debug(`Character ${characters[this_chid]?.name} lore (${baseWorldName}) has ${entries.length} world info entries`);
console.debug(`Character ${name} lore (${Array.from(worldsToSearch)}) has ${entries.length} world info entries`);
return entries;
}