Add files via upload
This commit is contained in:
parent
7248fd8f6c
commit
66d71f9b72
|
@ -18,6 +18,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
"mianju":{
|
||||
audio:true,
|
||||
fullskin:true,
|
||||
type:"equip",
|
||||
subtype:"equip2",
|
||||
skills:["mianju"],
|
||||
|
|
|
@ -321,6 +321,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
equipValue:5,
|
||||
},
|
||||
result:{
|
||||
keepAI:true,
|
||||
target:function(player,target){
|
||||
var card=target.getCards('e');
|
||||
var val=get.value(card);
|
||||
|
@ -367,6 +368,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
equipValue:5,
|
||||
},
|
||||
result:{
|
||||
keepAI:true,
|
||||
target:function(player,target){
|
||||
var val=2.5;
|
||||
var card=target.getEquip(2);
|
||||
|
@ -394,6 +396,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
equipValue:5,
|
||||
},
|
||||
result:{
|
||||
keepAI:true,
|
||||
target:function(player,target){
|
||||
var val=2.5;
|
||||
var card=target.getEquip(2);
|
||||
|
@ -421,6 +424,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
equipValue:5,
|
||||
},
|
||||
result:{
|
||||
keepAI:true,
|
||||
target:function(player,target){
|
||||
var val=2;
|
||||
var card=target.getEquip(2);
|
||||
|
@ -469,6 +473,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
equipValue:5,
|
||||
},
|
||||
result:{
|
||||
keepAI:true,
|
||||
target:function(player,target){
|
||||
if(target.sex=='male'){
|
||||
var val=0;
|
||||
|
@ -560,6 +565,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
equipValue:5,
|
||||
},
|
||||
result:{
|
||||
keepAI:true,
|
||||
target:function(player,target){
|
||||
return -1-target.countCards('h');
|
||||
},
|
||||
|
|
|
@ -814,7 +814,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
lucia_duqu:{
|
||||
mod:{
|
||||
cardSavable:function(card,player){
|
||||
if(card.name=='du'&&!player.hasSkill('lucia_duqu_terra')) return true;
|
||||
if(player.isDying()&&card.name=='du'&&!player.hasSkill('lucia_duqu_terra')) return true;
|
||||
},
|
||||
},
|
||||
trigger:{
|
||||
|
@ -850,7 +850,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
another.gain(game.createCard('du'),'gain2');
|
||||
}
|
||||
},
|
||||
ai:{usedu:true,save:true},
|
||||
ai:{
|
||||
usedu:true,
|
||||
save:true,
|
||||
skillTagFilter:function(player,tag){
|
||||
if(tag=='save'&&(!player.isDying()||player.hasSkill('lucia_duqu_terra'))) return false;
|
||||
},
|
||||
},
|
||||
subSkill:{terra:{sub:true}}
|
||||
},
|
||||
lucia_zhenren:{
|
||||
|
|
|
@ -183,7 +183,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
priority:5.5,
|
||||
round:1,
|
||||
filter:function(event,player){
|
||||
if(get.type(event.card)=='trick'&&event.cards.length==1&&event.cards[0]==event.card){
|
||||
if(get.type(event.card)=='trick'&&event.card.isCard){
|
||||
if(event.player==player) return false;
|
||||
if(!player.countCards('he',{suit:get.suit(event.card)})) return false;
|
||||
return true;
|
||||
|
|
|
@ -15,7 +15,7 @@ window.config={
|
|||
forbidthreecard:['qiankunbiao','shenhuofeiya','gw_ciguhanshuang','gw_birinongwu','gw_qinpendayu','gw_poxiao'],
|
||||
all:{
|
||||
sgscharacters:['standard','shenhua','xinghuoliaoyuan','refresh','yijiang','sp','extra','old','mobile','tw'],
|
||||
sgscards:['standard','extra','sp','guozhan'],
|
||||
sgscards:['standard','extra','sp','guozhan','zhulu'],
|
||||
sgsmodes:['identity','guozhan','versus','doudizhu','single','brawl','connect'],
|
||||
stockmode:['identity','guozhan','versus','boss','doudizhu','single','chess','stone','connect','brawl','tafang'],
|
||||
stockextension:['boss','cardpile','coin','wuxing'],
|
||||
|
|
|
@ -554,12 +554,19 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
_status.winner=winner;
|
||||
_status.loser=loser;
|
||||
},winner,loser);
|
||||
if(loser.length==game.players.length) game.over('游戏平局');
|
||||
if(loser.length==game.players.length){
|
||||
game.showIdentity();
|
||||
game.over('游戏平局');
|
||||
}
|
||||
else if(winner2.contains(game.me)){
|
||||
game.showIdentity();
|
||||
if(loser2.contains(game.me)) game.over(false);
|
||||
else game.over(true);
|
||||
}
|
||||
else game.over(false);
|
||||
else{
|
||||
game.showIdentity();
|
||||
game.over(false);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue