Allows control of Lore books entries by extensions

ac759e5b7ec0b120ba6a8e6f85eefb04888b85b9

zonde306 <anonymous@localhost>

2 files changed, +3 -0Showing whitespace changes
public/scripts/events.js+1 -0
@@ -86,6 +86,7 @@ export const event_types = {
86 PRESET_CHANGED: 'preset_changed',86 PRESET_CHANGED: 'preset_changed',
87 PRESET_DELETED: 'preset_deleted',87 PRESET_DELETED: 'preset_deleted',
88 MAIN_API_CHANGED: 'main_api_changed',88 MAIN_API_CHANGED: 'main_api_changed',
89 WORLDINFO_SORTING: 'worldinfo_sorting',
89};90};
9091
91export const eventSource = new EventEmitter([event_types.APP_READY]);92export const eventSource = new EventEmitter([event_types.APP_READY]);
public/scripts/world-info.js+2 -0
@@ -4107,6 +4107,8 @@ export async function getSortedEntries() {
4107 getPersonaLore(),4107 getPersonaLore(),
4108 ]);4108 ]);
41094109
4110 await eventSource.emit(event_types.WORLDINFO_SORTING, { globalLore, characterLore, chatLore, personaLore });
4111
4110 let entries;4112 let entries;
41114113
4112 switch (Number(world_info_character_strategy)) {4114 switch (Number(world_info_character_strategy)) {