play.character={ // mode:['identity','guozhan','versus'], video:function(list){ this.arenaReady(list); for(var i in this.skill){ lib.skill[i]=this.skill[i]; } }, arenaReady:function(videolist){ var list=[],list2=[]; var i,j,name; for(i in lib.character){ if(lib.config.forbidai.contains(i)) continue; if(lib.config.forbidall.contains(i)) continue; if(lib.config.banned.contains(i)) continue; if(lib.character[i][4]&&lib.character[i][4].contains('forbidai')) continue; if(lib.character[i][4]&&lib.character[i][4].contains('boss')) continue; if(lib.character[i][4]&&lib.character[i][4].contains('hiddenboss')) continue; if(get.config('double_character')&&lib.config.forbiddouble.contains(i)) continue; list.push(i); } list.randomSort(); list=list.splice(0,Math.ceil(lib.card.list.length*(parseFloat(lib.config.character_num_playpackconfig)||0))); if(_status.video){ if(videolist){ list=videolist; } } else{ lib.video.push({ type:'play', init:list, name:'character' }); } var suit=['heart','diamond','club','spade']; for(i=0;i0) return 0; return lib.character[name][2]<=4?1:0; } }(list[i])) } } }; lib.translate[name]=get.translation(list[i]); lib.translate[name+'_info']=get.skillintro(list[i],true,true); list2.push([suit.randomGet(),Math.ceil(Math.random()*13),name]); } lib.card.list=lib.card.list.concat(list2); }, help:{ '技能卡牌':'