From c9d64945976c1dd5690f689895b8ce80ec74d0b5 Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Wed, 27 Sep 2023 21:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E7=B4=A2=E5=BE=81=E5=8D=97threaten?= =?UTF-8?q?=E5=92=8Caudio=E6=9D=A1=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/character/sp.js b/character/sp.js index 004fc2146..3341f04f7 100755 --- a/character/sp.js +++ b/character/sp.js @@ -17784,44 +17784,36 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.popup(result.control); game.log(player,'获得了技能','#g【'+get.translation(result.control)+'】'); }, - ai:{ - threaten:1.3 - }, + ai:{threaten:2.5}, intro:{ content:'已因$发动过技能', }, derivation:['new_rewusheng','xindangxian','rezhiman'], }, zhengnan:{ - audio:1, + derivation:['new_rewusheng','dangxian','rezhiman'], + audio:2, trigger:{global:'dieAfter'}, frequent:true, content:function(){ 'step 0' player.draw(3); - var list=[]; - if(!player.hasSkill('new_rewusheng')){ - list.push('new_rewusheng'); - } - if(!player.hasSkill('dangxian')){ - list.push('dangxian'); - } - if(!player.hasSkill('rezhiman')){ - list.push('rezhiman'); - } - if(list.length){ - player.chooseControl(list).set('prompt','选择获得一项技能'); + var list=lib.skill.zhengnan.derivation.filter(skill=>!player.hasSkill(skill)); + if(list.length==1) event._result={control:list[0]}; + else if(list.length){ + player.chooseControl(list).set('prompt','选择获得一项技能').set('ai',function(){ + if(_status.event.controls.contains('dangxian')) return 'dangxian'; + return _status.event.controls[0]; + }); } + else event.finish(); 'step 1' if(result.control){ player.addSkillLog(result.control); player.popup(result.control); } }, - ai:{ - threaten:2.4 - }, - derivation:['new_rewusheng','dangxian','rezhiman'], + ai:{threaten:2}, }, xiefang:{ mod:{