play.character={ mode:['identity','guozhan','versus'], init:function(){ 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(!get.config('double_character')&&get.config('ban_weak')&&lib.config.forbidsingle.contains(i)) 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/20)); var suit=['heart','diamond','club','spade']; for(i=0;i
  • 牌堆中随机加入5%的角色牌
  • 出牌阶段对自己使用,'+ '随机获得卡牌对应角色的一项技能直到使用者的下一个出牌阶段开始'+ '
  • 一个角色最多只能通过角色卡牌获得一个技能,新获得技能后将失去之前以此法获得的技能'+ '
  • 不能获得主公技、限定技、觉醒技等特殊技能,以及场上只能唯一存在的技能'+ '
  • 若卡牌对应角色没有可获得的技能,目标摸两张牌' }, skill:{ charactercard:{ trigger:{player:'phaseUseBegin'}, forced:true, popup:false, mark:'card', intro:{ name:function(storage,player){ return get.translation(player.additionalSkills.charactercard); }, content:function(storage,player){ return lib.translate[player.additionalSkills.charactercard+'_info']; }, onunmark:function(storage,player){ delete player.additionalSkills.charactercard; delete player.storage.charactercard; } }, content:function(){ player.removeSkill('charactercard'); } } } }