Preserving the entry extensions field through v2 char exports and imports

This commit is contained in:
Honey Tree 2024-10-12 12:30:15 -03:00
parent 731bbec9ab
commit 3e9bad6845
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,