feat: add probability decorator

This commit is contained in:
kwaroran
2024-06-04 19:36:09 +09:00
parent 658f14ec4e
commit 0e5e587c90
5 changed files with 34 additions and 2 deletions

View File

@@ -424,6 +424,11 @@ export async function loadLoreBookV3Prompt(){
}
return false
}
case 'probability':{
if(Math.random() * 100 > parseInt(arg[0])){
activated = false
}
}
default:{
return false
}