增加了trigger,result等变量的提示,修复非开发者模式没有读取一些变量提示的bug

This commit is contained in:
shijian 2023-09-30 05:36:52 +08:00
parent f520af39aa
commit f4043daa54
2 changed files with 9 additions and 0 deletions

View File

@ -7490,8 +7490,14 @@
});
//防止每次输出字符都创建以下元素
const event=_status.event;
const trigger=_status.event;
const player=ui.create.player().init('sunce');
const target=player;
const targets=[player];
const source=player;
const card=game.createCard();
const cards=[card];
const result={bool:true};
function forEach(arr,f) {
Array.from(arr).forEach(v=>f(v));
}
@ -7542,6 +7548,9 @@
list.addArray(keys);
}
}catch(_){ return;}
}else if(token&&typeof token.string=='string'){
//非开发者模式下,提示这些单词
list.addArray(['player','card','cards','result','trigger','source','target','targets','lib','game','ui','get','ai','_status']);
}
return {
list:[...new Set(getCompletions(token,context,keywords,options).concat(list))]

BIN
libccy-noname-fork.zip Normal file

Binary file not shown.