Update extra.js

This commit is contained in:
Spmario233 2023-09-18 12:47:00 +08:00
parent b8b25a6b21
commit 223e5e2c1e
1 changed files with 14 additions and 1 deletions

View File

@ -116,7 +116,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.chooseButton([ player.chooseButton([
'挈挟:选择至多'+get.cnNumber(num)+'张武将置入武器栏', '挈挟:选择至多'+get.cnNumber(num)+'张武将置入武器栏',
[list,'character'], [list,'character'],
],[1,num],true).set('ai',function(button){ ],[1,num],true).set('filterButton',function(button){
var name=button.link;
var info=lib.character[name];
if(info[3].some(function(skill){
var info=get.skillInfoTranslation(skill);
if(!info.includes('【杀】')) return false;
var list=get.skillCategoriesOf(skill);
list.remove('锁定技');
return list.length==0;
})){
button.classList.add('glow2');
}
return true;
}).set('ai',function(button){
var name=button.link; var name=button.link;
var info=lib.character[name]; var info=lib.character[name];
var skills=info[3].filter(function(skill){ var skills=info[3].filter(function(skill){