Add files via upload

This commit is contained in:
Spmario233 2020-03-10 11:43:11 +08:00 committed by GitHub
parent 7248fd8f6c
commit 66d71f9b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
54 changed files with 81860 additions and 81840 deletions

View File

@ -18,6 +18,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}, },
"mianju":{ "mianju":{
audio:true, audio:true,
fullskin:true,
type:"equip", type:"equip",
subtype:"equip2", subtype:"equip2",
skills:["mianju"], skills:["mianju"],

View File

@ -321,6 +321,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
equipValue:5, equipValue:5,
}, },
result:{ result:{
keepAI:true,
target:function(player,target){ target:function(player,target){
var card=target.getCards('e'); var card=target.getCards('e');
var val=get.value(card); var val=get.value(card);
@ -367,6 +368,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
equipValue:5, equipValue:5,
}, },
result:{ result:{
keepAI:true,
target:function(player,target){ target:function(player,target){
var val=2.5; var val=2.5;
var card=target.getEquip(2); var card=target.getEquip(2);
@ -394,6 +396,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
equipValue:5, equipValue:5,
}, },
result:{ result:{
keepAI:true,
target:function(player,target){ target:function(player,target){
var val=2.5; var val=2.5;
var card=target.getEquip(2); var card=target.getEquip(2);
@ -421,6 +424,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
equipValue:5, equipValue:5,
}, },
result:{ result:{
keepAI:true,
target:function(player,target){ target:function(player,target){
var val=2; var val=2;
var card=target.getEquip(2); var card=target.getEquip(2);
@ -469,6 +473,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
equipValue:5, equipValue:5,
}, },
result:{ result:{
keepAI:true,
target:function(player,target){ target:function(player,target){
if(target.sex=='male'){ if(target.sex=='male'){
var val=0; var val=0;
@ -560,6 +565,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
equipValue:5, equipValue:5,
}, },
result:{ result:{
keepAI:true,
target:function(player,target){ target:function(player,target){
return -1-target.countCards('h'); return -1-target.countCards('h');
}, },

View File

@ -814,7 +814,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
lucia_duqu:{ lucia_duqu:{
mod:{ mod:{
cardSavable:function(card,player){ 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:{ trigger:{
@ -850,7 +850,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
another.gain(game.createCard('du'),'gain2'); 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}} subSkill:{terra:{sub:true}}
}, },
lucia_zhenren:{ lucia_zhenren:{

View File

@ -183,7 +183,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
priority:5.5, priority:5.5,
round:1, round:1,
filter:function(event,player){ 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(event.player==player) return false;
if(!player.countCards('he',{suit:get.suit(event.card)})) return false; if(!player.countCards('he',{suit:get.suit(event.card)})) return false;
return true; return true;

View File

@ -15,7 +15,7 @@ window.config={
forbidthreecard:['qiankunbiao','shenhuofeiya','gw_ciguhanshuang','gw_birinongwu','gw_qinpendayu','gw_poxiao'], forbidthreecard:['qiankunbiao','shenhuofeiya','gw_ciguhanshuang','gw_birinongwu','gw_qinpendayu','gw_poxiao'],
all:{ all:{
sgscharacters:['standard','shenhua','xinghuoliaoyuan','refresh','yijiang','sp','extra','old','mobile','tw'], 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'], sgsmodes:['identity','guozhan','versus','doudizhu','single','brawl','connect'],
stockmode:['identity','guozhan','versus','boss','doudizhu','single','chess','stone','connect','brawl','tafang'], stockmode:['identity','guozhan','versus','boss','doudizhu','single','chess','stone','connect','brawl','tafang'],
stockextension:['boss','cardpile','coin','wuxing'], stockextension:['boss','cardpile','coin','wuxing'],

View File

@ -554,12 +554,19 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
_status.winner=winner; _status.winner=winner;
_status.loser=loser; _status.loser=loser;
},winner,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)){ else if(winner2.contains(game.me)){
game.showIdentity();
if(loser2.contains(game.me)) game.over(false); if(loser2.contains(game.me)) game.over(false);
else game.over(true); else game.over(true);
} }
else game.over(false); else{
game.showIdentity();
game.over(false);
}
} }
return; return;
} }