refactor: Improve activation logic in loadLoreBookV3Prompt
This commit is contained in:
@@ -364,6 +364,9 @@ export async function loadLoreBookV3Prompt(){
|
|||||||
if(Number.isNaN(int)){
|
if(Number.isNaN(int)){
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if(((char.firstMsgIndex ?? -1) + 1) !== int){
|
||||||
|
activated = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case 'position':{
|
case 'position':{
|
||||||
if(["after_desc", "before_desc", "personality", "scenario"].includes(arg[0])){
|
if(["after_desc", "before_desc", "personality", "scenario"].includes(arg[0])){
|
||||||
|
|||||||
Reference in New Issue
Block a user