Merge pull request #277 from nofficalfs/PR-getCardNameLength-Advance

[Suggest] advancify get.cardNameLength
This commit is contained in:
Spmario233 2023-09-06 17:40:04 +08:00 committed by GitHub
commit 86fb67a4b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -53415,8 +53415,8 @@
const get={
//Get the card name length
//获取此牌的字数
cardNameLength:card=>{
const actualCardName=lib.actualCardName,name=get.translation(get.name(card));
cardNameLength:(card,player)=>{
const actualCardName=lib.actualCardName,name=get.translation(get.name(card,player));
return (actualCardName.has(name)?actualCardName.get(name):name).length;
},
//Yingbian