From 4e99561819afb0d8ab22a3777c102e531d40da95 Mon Sep 17 00:00:00 2001 From: hadeszoro <160452158+hadeszoro@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8E=8B=E5=B9=B3=E5=B0=86?= =?UTF-8?q?=E7=95=A5ai=E5=92=8C=E5=90=88=E7=BA=B5ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/guozhan.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/mode/guozhan.js b/mode/guozhan.js index 11f1ee0f5..6cd2cc876 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -8692,12 +8692,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(event.current&&event.current.isAlive()){ event.showCharacter=false; var choiceList=['执行该军令,增加1点体力上限,然后回复1点体力','不执行该军令']; - if(event.current.isFriendOf(player)) event.current.chooseJunlingControl(player,event.junling,targets).set('prompt','将略').set('choiceList',choiceList).set('ai',function(){return 0}); + if(event.current.isFriendOf(player)) event.current.chooseJunlingControl(player,event.junling,targets).set('prompt','将略').set('choiceList',choiceList).set('ai',function(){if(event.junling=='junling6'&&(event.current.countCards('h')>3||event.current.countCards('e')>2)) return 1; +return event.junling=='junling5'?1:0;}); else if((event.filterName(event.current.name1)||event.filterName(event.current.name2))&&event.current.wontYe(player.identity)){ event.showCharacter=true; choiceList[0]='明置一张武将牌以'+choiceList[0]; choiceList[1]='不明置武将牌且'+choiceList[1]; - event.current.chooseJunlingControl(player,event.junling,targets).set('prompt','将略').set('choiceList',choiceList).set('ai',function(){return 0}); + event.current.chooseJunlingControl(player,event.junling,targets).set('prompt','将略').set('choiceList',choiceList).set('ai',function(){if(event.junling=='junling6'&&(event.current.countCards('h')>3||event.current.countCards('e')>2)) return 1; +return event.junling=='junling5'?1:0;}); } else event.current.chooseJunlingControl(player,event.junling,targets).set('prompt','将略').set('controls',['ok']); } @@ -8744,7 +8746,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ skillAnimation:'epic', animationColor:'soil', ai:{ - order:4, + order:10, result:{ player:function(player){ if(player.isUnseen()&&player.wontYe()){ @@ -10555,7 +10557,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, check:function(card){ if(card.name=='tao') return 0; - return 5-get.value(card); + return 7-get.value(card); }, selectCard:[1,3], discard:false, @@ -10571,7 +10573,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, ai:{ basic:{ - order:2 + order:8 }, result:{ player:function(player,target){ @@ -10585,7 +10587,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(huoshao&&player.inline(target.getNext())) return -3; if(target.isUnseen()) return 0; if(player.isMajor()) return 0; - return 0.5; + if(!player.isMajor()&&huoshao&&player.getNext().isMajor()) return -2; + if(!player.isMajor()&&huoshao&&player.getNext().isMajor()&&player.getNext().getNext().isMajor()) return -3; + if(!player.isMajor()&&huoshao&&!target.isMajor()&&target.getNext().isMajor()&&target.getNext().getNext().isMajor()) return 3; + if(!player.isMajor()&&huoshao&&!target.isMajor()&&target.getNext().isMajor()) return 1.5; + return 1; }, target:function(player,target){ if(target.isUnseen()) return 0;