微调神郭嘉ai
This commit is contained in:
parent
3844e13ddb
commit
53dfb18b14
|
@ -268,7 +268,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
if(player.hasSkillTag('presha',true,null,true)) return 10;
|
if(player.hasSkillTag('presha',true,null,true)) return 10;
|
||||||
if(typeof item==='object'&&game.hasNature(item,'linked')){
|
if(typeof item==='object'&&game.hasNature(item,'linked')){
|
||||||
if(game.hasPlayer(function(current){
|
if(game.hasPlayer(function(current){
|
||||||
return current!=player&¤t.isLinked()&&player.canUse(item,current,null,true)&&get.effect(current,item,player,player)>0&&lib.card.sha.ai.canLink(player,current,item);
|
return current!=player&&lib.card.sha.ai.canLink(player,current,item)&&player.canUse(item,current,null,true)&&get.effect(current,item,player,player)>0;
|
||||||
})&&game.countPlayer(function(current){
|
})&&game.countPlayer(function(current){
|
||||||
return current.isLinked()&&get.damageEffect(current,player,player,get.nature(item))>0;
|
return current.isLinked()&&get.damageEffect(current,player,player,get.nature(item))>0;
|
||||||
})>1) return 3.1;
|
})>1) return 3.1;
|
||||||
|
|
|
@ -3802,11 +3802,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
'step 2'
|
'step 2'
|
||||||
var cards=cards.filterInD();
|
var cards=cards.filterInD();
|
||||||
if(cards.length) player.chooseTarget('将'+get.translation(cards)+'交给一名角色',true).set('ai',function(target){
|
if(cards.length) player.chooseTarget('将'+get.translation(cards)+'交给一名角色',true).set('ai',function(target){
|
||||||
var player=_status.event.player;
|
var player=_status.event.player,att=get.attitude(player,target);
|
||||||
var att=get.attitude(player,target)/Math.sqrt(1+target.countCards('h'));
|
if(att<=0) return att;
|
||||||
|
if(target.countCards('h')+_status.event.num>=_status.event.max) att/=3;
|
||||||
if(target.hasSkillTag('nogain')) att/=10;
|
if(target.hasSkillTag('nogain')) att/=10;
|
||||||
return att;
|
return att;
|
||||||
});
|
}).set('num',cards.length).set('max',game.filterPlayer().reduce((num,i)=>{
|
||||||
|
return Math.max(num,i.countCards('h'));
|
||||||
|
},0));
|
||||||
else event.finish();
|
else event.finish();
|
||||||
'step 3'
|
'step 3'
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
|
|
Loading…
Reference in New Issue