refactor: Improve activation logic in loadLoreBookV3Prompt

This commit is contained in:
kwaroran
2024-05-26 11:55:07 +09:00
parent 4ec8258a34
commit 4b0797669e

View File

@@ -364,6 +364,9 @@ export async function loadLoreBookV3Prompt(){
if(Number.isNaN(int)){
return false
}
if(((char.firstMsgIndex ?? -1) + 1) !== int){
activated = false
}
}
case 'position':{
if(["after_desc", "before_desc", "personality", "scenario"].includes(arg[0])){