Merge pull request #2978 from honey-tree/lb-extensions-retention LB entry extensions field retention through card exports/imports
Signed| @@ -4565,6 +4565,7 @@ function convertCharacterBook(characterBook) { | |||
| 4565 | sticky: entry.extensions?.sticky ?? null, | 4565 | sticky: entry.extensions?.sticky ?? null, |
| 4566 | cooldown: entry.extensions?.cooldown ?? null, | 4566 | cooldown: entry.extensions?.cooldown ?? null, |
| 4567 | delay: entry.extensions?.delay ?? null, | 4567 | delay: entry.extensions?.delay ?? null, |
| 4568 | extensions: entry.extensions ?? {}, | ||
| 4568 | }; | 4569 | }; |
| 4569 | }); | 4570 | }); |
| 4570 | 4571 | ||
| @@ -468,6 +468,7 @@ function convertWorldInfoToCharacterBook(name, entries) { | |||
| 468 | position: entry.position == 0 ? 'before_char' : 'after_char', | 468 | position: entry.position == 0 ? 'before_char' : 'after_char', |
| 469 | use_regex: true, // ST keys are always regex | 469 | use_regex: true, // ST keys are always regex |
| 470 | extensions: { | 470 | extensions: { |
| 471 | ...entry.extensions, | ||
| 471 | position: entry.position, | 472 | position: entry.position, |
| 472 | exclude_recursion: entry.excludeRecursion, | 473 | exclude_recursion: entry.excludeRecursion, |
| 473 | display_index: entry.displayIndex, | 474 | display_index: entry.displayIndex, |