增加葛玄【札符】ai

This commit is contained in:
157 2023-09-30 14:59:06 +08:00 committed by GitHub
parent 7c5ed99d38
commit c2c22c61c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -11806,6 +11806,27 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addSkill('zhafu_hf'); player.addSkill('zhafu_hf');
target.addMark('zhafu_hf',1); target.addMark('zhafu_hf',1);
}, },
ai:{
order:1,
result:{
player:function(player,target){
return Math.max(0,1+target.countCards('h')-game.countPlayer(current=>{
if(get.attitude(target,current)>0) return 0.3;
if(target.hasJudge('lebu')) return 0.6;
if(target.inRange(current)) return 1.5;
return 1;
}));
},
target:function(player,target){
return -Math.max(0,1+target.countCards('h')-game.countPlayer(current=>{
if(get.attitude(target,current)>0) return 0.3;
if(target.hasJudge('lebu')) return 0.6;
if(target.inRange(current)) return 1.5;
return 1;
}));
}
}
},
subSkill:{ subSkill:{
hf:{ hf:{
trigger:{ trigger:{