diff --git a/card/gwent.js b/card/gwent.js new file mode 100644 index 000000000..6b6b3071e --- /dev/null +++ b/card/gwent.js @@ -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:[ + + ], + }; +}); diff --git a/game/game.js b/game/game.js index b2315e642..0d4647c5d 100644 --- a/game/game.js +++ b/game/game.js @@ -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