Merge pull request #2978 from honey-tree/lb-extensions-retention

LB entry extensions field retention through card exports/imports
This commit is contained in:
Cohee 2024-10-12 20:13:01 +03:00 committed by GitHub
commit 838dfaab80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -4565,6 +4565,7 @@ function convertCharacterBook(characterBook) {
sticky: entry.extensions?.sticky ?? null,
cooldown: entry.extensions?.cooldown ?? null,
delay: entry.extensions?.delay ?? null,
extensions: entry.extensions ?? {},
};
});

View File

@ -468,6 +468,7 @@ function convertWorldInfoToCharacterBook(name, entries) {
position: entry.position == 0 ? 'before_char' : 'after_char',
use_regex: true, // ST keys are always regex
extensions: {
...entry.extensions,
position: entry.position,
exclude_recursion: entry.excludeRecursion,
display_index: entry.displayIndex,