parent
1a5138d3df
commit
0231dd8442
|
@ -24411,20 +24411,20 @@ export class Library extends Uninstantable {
|
|||
var player=_status.event.player;
|
||||
var event=_status.event.getParent();
|
||||
var getn=function(card){
|
||||
if (player.hasSkill('tianbian') && get.suit(card) == 'heart') return 13 * (event.small ? -1 : 1);
|
||||
return get.number(card) * (event.small ? -1 : 1);
|
||||
if(player.hasSkill('tianbian')&&get.suit(card)=='heart') return 13*(Boolean(event.small)?-1:1);
|
||||
return get.number(card)*(Boolean(event.small)?-1:1);
|
||||
}
|
||||
if(source&&source!=player){
|
||||
if(get.attitude(player,source)>1){
|
||||
if (event.small) return getn(card) - get.value(card) / 2 + addi;
|
||||
return -getn(card) - get.value(card) / 2 + addi;
|
||||
if(Boolean(event.small)) return getn(card)-get.value(card)/3+addi;
|
||||
return -getn(card)-get.value(card)/3+addi;
|
||||
}
|
||||
if (event.small) return -getn(card) - get.value(card) / 2 + addi;
|
||||
return getn(card) - get.value(card) / 2 + addi;
|
||||
if(Boolean(event.small)) return -getn(card)-get.value(card)/5+addi;
|
||||
return getn(card)-get.value(card)/5+addi;
|
||||
}
|
||||
else{
|
||||
if (event.small) return -getn(card) - get.value(card) / 2 + addi;
|
||||
return getn(card) - get.value(card) / 2 + addi;
|
||||
if(Boolean(event.small)) return -getn(card)-get.value(card)/5+addi;
|
||||
return getn(card)-get.value(card)/5+addi;
|
||||
}
|
||||
}
|
||||
next.setContent('chooseToCompareMultiple');
|
||||
|
@ -24445,18 +24445,15 @@ export class Library extends Uninstantable {
|
|||
var event=_status.event.getParent();
|
||||
var to=(player==event.player?event.target:event.player);
|
||||
var addi=(get.value(card)>=8&&get.type(card)!='equip')?-6:0;
|
||||
var friend=get.attitude(player,to)>0;
|
||||
if(card.name=='du') addi-=5;
|
||||
if(player==event.player){
|
||||
if (event.small) {
|
||||
return -getn(card) - get.value(card) / 2 + addi;
|
||||
}
|
||||
return getn(card) - get.value(card) / 2 + addi;
|
||||
if(Boolean(event.small)) return -getn(card)-get.value(card)/(friend?4:5)+addi;
|
||||
return getn(card)-get.value(card)/(friend?4:5)+addi;
|
||||
}
|
||||
else{
|
||||
if ((get.attitude(player, to) <= 0) == Boolean(event.small)) {
|
||||
return -getn(card) - get.value(card) / 2 + addi;
|
||||
}
|
||||
return getn(card) - get.value(card) / 2 + addi;
|
||||
if(friend==Boolean(event.small)) return getn(card)-get.value(card)/(friend?3:5)+addi;
|
||||
return -getn(card)-get.value(card)/(friend?3:5)+addi;
|
||||
}
|
||||
}
|
||||
next.setContent('chooseToCompare');
|
||||
|
|
Loading…
Reference in New Issue