优化【长驱】【泰然】ai
This commit is contained in:
parent
cf21db0d5a
commit
45b39bc524
|
@ -2083,9 +2083,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
if(target.hasMark('dcchangqu_warshipx')){
|
||||
var prompt2='是否交给'+get.translation(player)+get.cnNumber(num)+'张手牌?'+(nextPlayer?'若如此做,将“战舰”移动给'+get.translation(nextPlayer)+',':',')+'否则你下次受到的属性伤害值+'+num;
|
||||
target.chooseCard(get.translation(player)+'对你发动了【长驱】',prompt2).set('ai',card=>{
|
||||
if(_status.event.att>0) return 6-get.value(card);
|
||||
if(_status.event.take) return -get.value(card);
|
||||
return 5-get.value(card);
|
||||
if(_status.event.att>0) return 15-get.value(card);
|
||||
if(_status.event.take) return 0;
|
||||
return 8.2-0.8*Math.min(5,_status.event.target.hp+_status.event.target.hujia)-get.value(card);
|
||||
}).set('att',get.attitude(target,player)).set('take',function(){
|
||||
var base=num;
|
||||
var getEffect=function(target,player,num){
|
||||
|
@ -2101,7 +2101,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
var num=base+ind+1;
|
||||
var effx=getEffect(current,player,num);
|
||||
return effx<eff;
|
||||
});
|
||||
}).set('target',target);
|
||||
});
|
||||
}
|
||||
else event.goto(4);
|
||||
|
|
|
@ -2872,9 +2872,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
tairan2:{
|
||||
mod:{
|
||||
aiValue:function(player,card,num){
|
||||
aiOrder:function(player,card,num){
|
||||
if(card.hasGaintag&&card.hasGaintag('tairan')) return num/10;
|
||||
},
|
||||
aiValue:function(player,card,num){
|
||||
if(card.hasGaintag&&card.hasGaintag('tairan')){
|
||||
if(card.name!=='wuxie'&&(get.type(card)==='basic'||get.type(card,'trick')==='trick')) return num/64;
|
||||
return num/8;
|
||||
}
|
||||
},
|
||||
aiUseful:function(player,card,num){
|
||||
return lib.skill.tairan2.mod.aiValue.apply(this,arguments);
|
||||
}
|
||||
},
|
||||
audio:'tairan',
|
||||
trigger:{player:'phaseUseBegin'},
|
||||
|
|
Loading…
Reference in New Issue