From c1221c0320536b26e98f628501bc2f389aea55c2 Mon Sep 17 00:00:00 2001 From: PZ157 <3619242020@qq.com> Date: Tue, 14 Nov 2023 23:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=90=E7=A7=B0=E8=B1=A1?= =?UTF-8?q?=E3=80=91ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/yijiang.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/character/yijiang.js b/character/yijiang.js index 600c0285f..e89e2b2ad 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -13248,7 +13248,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }); next.set('maxNum',event.name=='oldchengxiang'?12:13); next.set('ai',function(button){ - return get.value(button.link,_status.event.player); + let player=_status.event.player,name=get.name(button.link),val=get.value(button.link,player); + if(name==='tao') return val + 2*Math.min(3,1+player.getDamagedHp()); + if(name==='jiu'&&player.hp<3) return val + 2*(2.8-player.hp); + if(name==='wuxie'&&player.countCards('j')&&!player.hasWuxie()) return val + 5; + if(player.hp>1&&player.hasSkill('renxin')&&player.hasFriend()&&get.type(button.link)==='equip') return val + 4; + return val; }); "step 2" if(result.bool&&result.links){