diff --git a/character/old.js b/character/old.js index dac520212..083e9ca64 100755 --- a/character/old.js +++ b/character/old.js @@ -7,7 +7,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ characterSort:{ old:{ old_standard:['ol_yuanshu'], - old_shenhua:["yuji","zhangjiao","old_zhugezhan","old_guanqiujian","xiahouyuan","weiyan","old_xiaoqiao","pangde","xuhuang",'junk_sunquan',"huangzhong","new_caoren",'old_chendao'], + old_shenhua:['old_caocao',"yuji","zhangjiao","old_zhugezhan","old_guanqiujian","xiahouyuan","weiyan","old_xiaoqiao","pangde","xuhuang",'junk_sunquan',"huangzhong","new_caoren",'old_chendao'], old_refresh:["old_zhangfei","old_huatuo","old_zhaoyun","ol_huaxiong",'old_re_lidian'], old_yijiang1:["masu","xushu","xin_yujin","old_xusheng","old_lingtong","fazheng",'old_gaoshun'], old_yijiang2:["old_zhonghui","madai",'old_handang','old_liubiao','oldre_liubiao','old_guanzhang'], @@ -21,6 +21,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, }, character:{ + old_caocao:['male','shen',3,['junkguixin','feiying'],['die_audio']], old_chendao:['male','shu',4,['drlt_wanglie']], old_liyan:['male','shu',3,['duliang','fulin']], old_re_lidian:['male','wei',3,['xunxun','wangxi']], @@ -87,6 +88,82 @@ game.import('character',function(lib,game,ui,get,ai,_status){ old_wanglang:['male','wei',3,['gushe','jici']], }, skill:{ + //魏武帝 + junkguixin:{ + init:function(){ + if(!_status.junkguixin){ + _status.junkguixin=[]; + for(var name in lib.character){ + if(!lib.character[name][3]) continue; + if(game.players.some(target=>{ + if(target.name&&target.name==name) return true; + if(target.name1&&target.name1==name) return true; + if(target.name2&&target.name2==name) return true; + return false; + })) continue; + _status.junkguixin.addArray(lib.character[name][3].filter(skill=>{ + var info=get.info(skill); + return info&&info.zhuSkill&&(!info.ai||!info.ai.combo); + })); + } + } + }, + unique:true, + audio:'guixin', + trigger:{player:'phaseEnd'}, + direct:true, + content:function(){ + 'step 0' + var controls=['获得技能','修改势力','cancel2']; + if(!_status.junkguixin.some(skill=>!player.hasSkill(skill,null,false,false))) controls.shift(); + player.chooseControl(controls).set('prompt',get.prompt2('junkguixin')).set('ai',()=>_status.event.controls.length==3?'获得技能':'cancel2'); + 'step 1' + if(result.control!='cancel2'){ + var next=game.createEvent('junkguixinx'); + next.player=player; + next.setContent(lib.skill.junkguixin['content_'+result.control]); + } + }, + content_获得技能:function(){ + 'step 0' + var list=_status.junkguixin.slice().filter(skill=>!player.hasSkill(skill,null,false,false)); + if(!list.length){event.finish();return;} + list=list.map(skill=>{ + return [ + skill, + '