mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-19 04:50:12 +01:00
move decorators effect right before constant
This commit is contained in:
parent
33347f1c7c
commit
3b0e07d093
@ -3651,17 +3651,6 @@ async function checkWorldInfo(chat, maxContext, isDryRun) {
|
|||||||
entry.decorators = decorators;
|
entry.decorators = decorators;
|
||||||
entry.content = content;
|
entry.content = content;
|
||||||
|
|
||||||
if(decorators.includes('@@activate')){
|
|
||||||
//activate in any case
|
|
||||||
activatedNow.add(entry);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(decorators.includes('@@dont_activate')){
|
|
||||||
//deactivate in any case if @@activate is not present
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if this entry applies to the character or if it's excluded
|
// Check if this entry applies to the character or if it's excluded
|
||||||
if (entry.characterFilter && entry.characterFilter?.names?.length > 0) {
|
if (entry.characterFilter && entry.characterFilter?.names?.length > 0) {
|
||||||
const nameIncluded = entry.characterFilter.names.includes(getCharaFilename());
|
const nameIncluded = entry.characterFilter.names.includes(getCharaFilename());
|
||||||
@ -3725,6 +3714,17 @@ async function checkWorldInfo(chat, maxContext, isDryRun) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(decorators.includes('@@activate')){
|
||||||
|
//activate in any case
|
||||||
|
activatedNow.add(entry);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(decorators.includes('@@dont_activate')){
|
||||||
|
//deactivate in any case if @@activate is not present
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (entry.constant || buffer.isExternallyActivated(entry) || isSticky) {
|
if (entry.constant || buffer.isExternallyActivated(entry) || isSticky) {
|
||||||
activatedNow.add(entry);
|
activatedNow.add(entry);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user