This commit is contained in:
libccy 2017-05-10 23:24:15 +08:00
parent c4d4f5595a
commit 423c2d3436
4 changed files with 37 additions and 3 deletions

23
card/gwent.js Normal file
View File

@ -0,0 +1,23 @@
'use strict';
game.import('card',function(lib,game,ui,get,ai,_status){
return {
name:'gwent',
card:{
},
skill:{
},
translate:{
},
cardType:{
spell_bronze:0.2,
spell_silver:0.3,
spell_gold:0.4
},
list:[
],
};
});

View File

@ -29347,7 +29347,11 @@
list.push(['',get.translation(get.type(info[i],'trick')),info[i]]);
}
var sortCard=function(card){
var type=lib.card[card[2]].type;
var type=lib.card[card[2]].type;
var subtype=lib.card[card[2]].subtype;
if(lib.cardType[subtype]){
return lib.cardType[subtype];
}
if(lib.cardType[type]){
return lib.cardType[type];
}
@ -40546,7 +40550,8 @@
lib.onwash[i]();
}
for(i=0;i<ui.discardPile.childNodes.length;i++){
if(get.info(ui.discardPile.childNodes[i]).vanish) continue;
if(get.info(ui.discardPile.childNodes[i]).vanish||
ui.discardPile.childNodes[i].storage.vanish) continue;
cards.push(ui.discardPile.childNodes[i]);
}
cards.randomSort();
@ -41026,7 +41031,11 @@
var func;
if(sort=='type_sort'){
func=function(card){
var type=get.type(card);
var type=get.type(card);
var subtype=get.subtype(card);
if(lib.cardType[subtype]){
return lib.cardType[subtype];
}
if(lib.cardType[type]){
return lib.cardType[type];
}

View File

@ -26,6 +26,7 @@ window.noname_package={
swd:'轩辕剑',
gujian:'古剑奇谭',
hearth:'炉石传说',
gwent:'昆特牌',
},
play:{
boss:'诸神降临',

View File

@ -2,6 +2,7 @@ window.noname_source_list=[
'card/extra.js',
'card/gujian.js',
'card/guozhan.js',
'card/gwent.js',
'card/hearth.js',
'card/sp.js',
'card/standard.js',