Merge pull request #415 from copcap/dev-newCharacters

周不疑AI调整
This commit is contained in:
Spmario233 2023-09-28 16:03:54 +08:00 committed by GitHub
commit e09a1b2201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -405,7 +405,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
});
var eff=100/val;
target.hp=_hp; target.maxHp=_maxhp;
if(eff<25) return 0;
var limit=17.5;
if(player.hasSkill('mbquesong')){
if(!player.getStat().damaged) limit+=7.5;
}
if(eff<limit) return 0;
return eff/30;
}
}
@ -445,7 +449,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return 6-get.value(card);
}).set('goon',function(){
var _hp=hp+target.isTurnedOver()*1.5;
if(forced||_hp+player.countCards('hs',card=>get.tag(card,'recover'))<=2) return true;
if(forced||_hp+player.countCards('hs',card=>get.tag(card,'recover'))<=2-len/4) return true;
return len>_hp;
}());
}