Merge pull request #2978 from honey-tree/lb-extensions-retention
LB entry extensions field retention through card exports/imports
This commit is contained in:
commit
838dfaab80
|
@ -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 ?? {},
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue