mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
decks: improved deck import to support unicode card names from LTR, UGL and other sets, added verify tests for name converters (closes #10465)
This commit is contained in:
parent
eebb82c591
commit
d91147f01a
3 changed files with 78 additions and 16 deletions
|
|
@ -65,6 +65,18 @@ public final class MtgJsonCard {
|
|||
return getNameAsFace();
|
||||
}
|
||||
|
||||
return asciiName != null ? asciiName : name;
|
||||
return getNameAsASCII();
|
||||
}
|
||||
|
||||
public String getNameAsUnicode() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public String getNameAsASCII() {
|
||||
return this.asciiName != null ? this.asciiName : this.name;
|
||||
}
|
||||
|
||||
public boolean isUseUnicodeName() {
|
||||
return this.asciiName != null && this.name != null && !this.asciiName.equals(this.name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue