From 0fea4d0badd30ab2e86c6d91c2931d4f6784f838 Mon Sep 17 00:00:00 2001 From: hadeszoro <160452158+hadeszoro@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:09:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=94=E5=86=9B?= =?UTF-8?q?=E7=9B=9B=E5=AE=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/guozhan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/card/guozhan.js b/card/guozhan.js index e043aa8cd..afc1a597e 100644 --- a/card/guozhan.js +++ b/card/guozhan.js @@ -678,7 +678,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ list.push('摸'+(num-i)+'回'+i); } target.chooseControl(list).set('prompt','请分配自己的摸牌数和回复量').ai=function(){ - return Math.min(_status.event.player.getDamagedHp(),list.length)-1; + return 0; }; } } @@ -697,7 +697,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ } }, ai:{ - order:3, + order:6, value:4, useful:2, result:{ 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 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8E=8B=E5=B9=B3?= =?UTF-8?q?=E5=B0=86=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;