Add data model field for WI entry group

This commit is contained in:
Cohee 2023-12-04 18:36:05 +02:00
parent 11a60e5eec
commit 8bf18891b3
2 changed files with 6 additions and 0 deletions

View File

@ -1374,6 +1374,7 @@ const newEntryTemplate = {
probability: 100, probability: 100,
useProbability: true, useProbability: true,
depth: DEFAULT_DEPTH, depth: DEFAULT_DEPTH,
group: '',
}; };
function createWorldInfoEntry(name, data, fromSlashCommand = false) { function createWorldInfoEntry(name, data, fromSlashCommand = false) {
@ -1970,6 +1971,7 @@ function convertAgnaiMemoryBook(inputObj) {
displayIndex: index, displayIndex: index,
probability: null, probability: null,
useProbability: false, useProbability: false,
group: '',
}; };
}); });
@ -1996,6 +1998,7 @@ function convertRisuLorebook(inputObj) {
displayIndex: index, displayIndex: index,
probability: entry.activationPercent ?? null, probability: entry.activationPercent ?? null,
useProbability: entry.activationPercent ?? false, useProbability: entry.activationPercent ?? false,
group: '',
}; };
}); });
@ -2027,6 +2030,7 @@ function convertNovelLorebook(inputObj) {
displayIndex: index, displayIndex: index,
probability: null, probability: null,
useProbability: false, useProbability: false,
group: '',
}; };
}); });
@ -2060,6 +2064,7 @@ function convertCharacterBook(characterBook) {
useProbability: entry.extensions?.useProbability ?? false, useProbability: entry.extensions?.useProbability ?? false,
depth: entry.extensions?.depth ?? DEFAULT_DEPTH, depth: entry.extensions?.depth ?? DEFAULT_DEPTH,
selectiveLogic: entry.extensions?.selectiveLogic ?? 0, selectiveLogic: entry.extensions?.selectiveLogic ?? 0,
group: entry.extensions?.group ?? '',
}; };
}); });

View File

@ -1876,6 +1876,7 @@ function convertWorldInfoToCharacterBook(name, entries) {
useProbability: entry.useProbability ?? false, useProbability: entry.useProbability ?? false,
depth: entry.depth ?? 4, depth: entry.depth ?? 4,
selectiveLogic: entry.selectiveLogic ?? 0, selectiveLogic: entry.selectiveLogic ?? 0,
group: entry.group ?? '',
}, },
}; };