Merge pull request #277 from nofficalfs/PR-getCardNameLength-Advance
[Suggest] advancify get.cardNameLength
This commit is contained in:
commit
86fb67a4b5
|
@ -53415,8 +53415,8 @@
|
||||||
const get={
|
const get={
|
||||||
//Get the card name length
|
//Get the card name length
|
||||||
//获取此牌的字数
|
//获取此牌的字数
|
||||||
cardNameLength:card=>{
|
cardNameLength:(card,player)=>{
|
||||||
const actualCardName=lib.actualCardName,name=get.translation(get.name(card));
|
const actualCardName=lib.actualCardName,name=get.translation(get.name(card,player));
|
||||||
return (actualCardName.has(name)?actualCardName.get(name):name).length;
|
return (actualCardName.has(name)?actualCardName.get(name):name).length;
|
||||||
},
|
},
|
||||||
//Yingbian
|
//Yingbian
|
||||||
|
|
Loading…
Reference in New Issue