优化部分负面装备ai

This commit is contained in:
157 2023-12-21 10:40:40 +08:00
parent e9c6fb0ea1
commit ef08cb6b9e
1 changed files with 12 additions and 6 deletions

View File

@ -162,11 +162,11 @@ game.import('card',function(lib,game,ui,get,ai,_status){
ai:{ ai:{
order:9, order:9,
value:function(card,player){ value:function(card,player){
if(player.getEquips(1).contains(card)) return 0; if(player.getEquips(1).contains(card)) return 0.4;
return 4; return 4;
}, },
equipValue:function(card,player){ equipValue:function(card,player){
if(player.getCards('e').contains(card)) return 0; if(player.getCards('e').contains(card)) return 0.4;
return -get.value(player.getCards('e')); return -get.value(player.getCards('e'));
}, },
basic:{ basic:{
@ -226,11 +226,17 @@ game.import('card',function(lib,game,ui,get,ai,_status){
ai:{ ai:{
order:9, order:9,
equipValue:function(card,player){ equipValue:function(card,player){
if(get.position(card)=='e') return -2; if(get.position(card)=='e'){
if(player.hasSex('male')) return -7;
return 0;
}
return 2; return 2;
}, },
value:function(card,player){ value:function(card,player){
if(player.getEquips(2).contains(card)) return -3; if(player.getEquips(2).contains(card)){
if(player.hasSex('male')) return -8;
return 0;
}
return 3; return 3;
}, },
basic:{ basic:{
@ -260,11 +266,11 @@ game.import('card',function(lib,game,ui,get,ai,_status){
ai:{ ai:{
order:9, order:9,
equipValue:function(card,player){ equipValue:function(card,player){
if(get.position(card)=='e') return -1; if(get.position(card)=='e') return -8;
return 1; return 1;
}, },
value:function(card,player){ value:function(card,player){
if(player.getEquips(2).contains(card)) return -2.5; if(player.getEquips(2).contains(card)) return -10;
return 2.5; return 2.5;
}, },
basic:{ basic:{