Skip to content

Commit 9813a54

Browse files
committed
🐛 distinguish mysterious deck srd names
1 parent b76d136 commit 9813a54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/dev/ebullient/convert/tools/dnd5e/Tools5eSources.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,10 @@ protected String findName(IndexType type, JsonNode jsonElement) {
390390
if (Tools5eIndex.isSrdBasicOnly() && Tools5eSources.isSrd(jsonElement)) {
391391
String srdName = Tools5eSources.srdName(jsonElement);
392392
if (srdName != null) {
393+
if (this.key.contains("(13 cards)") && !srdName.contains("13 cards")) {
394+
// Special case for the 13-card deck
395+
srdName += " (13 cards)";
396+
}
393397
return srdName;
394398
}
395399
}

0 commit comments

Comments
 (0)