あたしわ死んだ世界戦線のリーダーなのよ

This commit is contained in:
Spmario233 2020-11-24 22:51:23 +08:00
parent e0016d8b00
commit ace76af989
1 changed files with 11 additions and 6 deletions

View File

@ -400,9 +400,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){
keepAI:true, keepAI:true,
target:function(player,target){ target:function(player,target){
var val=2; var val=2;
var card=target.getEquip(2); var val2=0;
var card=target.getEquip(1);
if(card){ if(card){
var val2=get.value(card,target); val2=get.value(card,target);
if(val2<0) return 0; if(val2<0) return 0;
} }
return -val-val2; return -val-val2;
@ -435,9 +436,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){
keepAI:true, keepAI:true,
target:function(player,target){ target:function(player,target){
var val=2.5; var val=2.5;
var card=target.getEquip(2); var val2=0;
var card=target.getEquip(1);
if(card){ if(card){
var val2=get.value(card,target); val2=get.value(card,target);
if(val2<0) return 0; if(val2<0) return 0;
} }
return -val-val2; return -val-val2;
@ -470,9 +472,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){
keepAI:true, keepAI:true,
target:function(player,target){ target:function(player,target){
var val=2; var val=2;
var val2=0;
var card=target.getEquip(2); var card=target.getEquip(2);
if(card){ if(card){
var val2=get.value(card,target); val2=get.value(card,target);
if(val2<0) return 0; if(val2<0) return 0;
} }
return -val-val2; return -val-val2;
@ -535,8 +538,9 @@ game.import('card',function(lib,game,ui,get,ai,_status){
var card=target.getEquip(2); var card=target.getEquip(2);
if(target.sex=='male'){ if(target.sex=='male'){
var val=0; var val=0;
var val2=0;
if(card){ if(card){
var val2=get.value(card,target); val2=get.value(card,target);
if(val2<0) return 0; if(val2<0) return 0;
} }
var num=target.countCards('he',function(cardx){ var num=target.countCards('he',function(cardx){
@ -549,6 +553,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
var val2=get.value(card,target); var val2=get.value(card,target);
if(val2>0) return val2/4; if(val2>0) return val2/4;
} }
return 0;
}, },
}, },
} }