变量名ybtype=>typeinfo

This commit is contained in:
kuangshen04 2023-11-16 09:59:26 +08:00
parent c2777b48da
commit 9f2edb1acc
1 changed files with 7 additions and 7 deletions

View File

@ -61911,18 +61911,18 @@
uiintro.add('<div class="text center">来源:'+get.translation(lib.card[name].derivationpack+'_card_config')+'包</div>'); uiintro.add('<div class="text center">来源:'+get.translation(lib.card[name].derivationpack+'_card_config')+'包</div>');
} }
} }
var ybtype=''; let typeinfo='';
if(lib.card[name].unique){ if(lib.card[name].unique){
ybtype+=('特殊'+get.translation(lib.card[name].type)+'牌'); typeinfo+=('特殊'+get.translation(lib.card[name].type)+'牌');
} }
else{ else if(lib.card[name].type&&lib.translate[lib.card[name].type]){
if(lib.card[name].type&&lib.translate[lib.card[name].type]) ybtype+=(get.translation(lib.card[name].type)+'牌'); typeinfo+=(get.translation(lib.card[name].type)+'牌');
} }
if(get.subtype(name,false)){ if(get.subtype(name,false)){
ybtype+=('-'+get.translation(get.subtype(name,false))); typeinfo+=('-'+get.translation(get.subtype(name,false)));
} }
if(ybtype){ if(typeinfo){
uiintro.add('<div class="text center">'+ybtype+'</div>'); uiintro.add('<div class="text center">'+typeinfo+'</div>');
} }
if(lib.card[name].unique&&lib.card[name].type=='equip'){ if(lib.card[name].unique&&lib.card[name].type=='equip'){
if(lib.cardPile.guozhan&&lib.cardPack.guozhan.contains(name)){ if(lib.cardPile.guozhan&&lib.cardPack.guozhan.contains(name)){