refactor: Update lowLevelAccess check in modules

This commit is contained in:
kwaroran
2024-05-29 18:10:03 +09:00
parent 8b7220a44d
commit 4da60c1c22
4 changed files with 12 additions and 9 deletions

View File

@@ -579,7 +579,7 @@
}}><PlusIcon /></button>
<span class="text-textcolor mt-4">{language.triggerScript} <Help key="triggerScript"/></span>
<TriggerList bind:value={currentChar.data.triggerscript} />
<TriggerList bind:value={currentChar.data.triggerscript} lowLevelAble={currentChar.data.lowLevelAccess} />
<button class="font-medium cursor-pointer hover:text-green-500 mb-2" on:click={() => {
if(currentChar.type === 'character'){
let script = currentChar.data.triggerscript