【'+get.translation(lib.translate[skill+'_ab']||get.translation(skill).slice(0,2))+'】
'+
'
'+get.skillInfoTranslation(skill,player)+'
');
}
if(player.isUnderControl(true)){
dialog.addSmall([list,(item,type,position,noclick,node)=>lib.skill.rehuashen.$createButton(item,type,position,noclick,node)]);
}
else{
dialog.addText('共有'+get.cnNumber(list.length)+'张“化身”');
}
}
else{
return '没有化身';
}
}
},
addHuashen:function(player){
if(!player.storage.huashen) return;
if(!_status.characterlist){
lib.skill.pingjian.initList();
}
_status.characterlist.randomSort();
for(var i=0;i<_status.characterlist.length;i++){
let name=_status.characterlist[i];
if(name.indexOf('zuoci')!=-1||name.indexOf('key_')==0||name.indexOf('sp_key_')==0||lib.skill.rehuashen.banned.includes(name)||player.storage.huashen.owned[name]) continue;
let skills=lib.character[name][3].filter(skill=>{
const categories=get.skillCategoriesOf(skill);
return !categories.some(type=>lib.skill.rehuashen.bannedType.includes(type));
})
if(skills.length){
player.storage.huashen.owned[name]=skills;
_status.characterlist.remove(name);
return name;
}
}
},
addHuashens:function(player,num){
var list=[];
for(var i=0;i