优化【制衡】ai
This commit is contained in:
parent
8337f875bd
commit
4f1d76cad9
|
@ -1459,6 +1459,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
xinzhiheng:{
|
xinzhiheng:{
|
||||||
audio:'zhiheng',
|
audio:'zhiheng',
|
||||||
|
mod:{
|
||||||
|
aiOrder:function(player,card,num){
|
||||||
|
if(num<=0||get.itemtype(card)!=='card'||get.type(card)!=='equip') return num;
|
||||||
|
let eq=player.getEquip(get.subtype(card));
|
||||||
|
if(eq&&get.equipValue(card)-get.equipValue(eq)<Math.max(1.2,6-player.hp)) return 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
// alter:true,
|
// alter:true,
|
||||||
usable:1,
|
usable:1,
|
||||||
|
@ -1503,16 +1510,30 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
delay:{}
|
delay:{}
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
order:1,
|
order:function(item,player){
|
||||||
|
if(player.hasCard((i)=>get.value(i)>Math.max(6,9-player.hp),'he')) return 1;
|
||||||
|
return 10;
|
||||||
|
},
|
||||||
result:{
|
result:{
|
||||||
player:1
|
player:1
|
||||||
},
|
},
|
||||||
|
nokeep:true,
|
||||||
|
skillTagFilter:function(player,tag,arg){
|
||||||
|
if(tag==='nokeep') return (!arg||arg&&arg.card&&get.name(arg.card)==='tao')&&player.isPhaseUsing()&&!player.getStat().skill.xinzhiheng&&player.hasCard((card)=>get.name(card)!=='tao','h');
|
||||||
|
},
|
||||||
threaten:1.55
|
threaten:1.55
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
zhiheng:{
|
zhiheng:{
|
||||||
audio:2,
|
audio:2,
|
||||||
audioname:['gz_jun_sunquan'],
|
audioname:['gz_jun_sunquan'],
|
||||||
|
mod:{
|
||||||
|
aiOrder:function(player,card,num){
|
||||||
|
if(num<=0||get.itemtype(card)!=='card'||get.type(card)!=='equip') return num;
|
||||||
|
let eq=player.getEquip(get.subtype(card));
|
||||||
|
if(eq&&get.equipValue(card)-get.equipValue(eq)<Math.max(1.2,6-player.hp)) return 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
usable:1,
|
usable:1,
|
||||||
position:'he',
|
position:'he',
|
||||||
|
|
Loading…
Reference in New Issue