Skip to content

Commit 65c1721

Browse files
committed
🐛 Can't embed charoption yet
1 parent c3f36d6 commit 65c1721

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -631,19 +631,9 @@ default boolean equivalentNode(JsonNode dataNode, JsonNode existingNode) {
631631
default void embedReference(List<String> text, JsonNode entry, Tools5eIndexType type, String heading) {
632632
String name = SourceField.name.getTextOrEmpty(entry);
633633

634-
if (type == Tools5eIndexType.legendaryGroup) {
635-
// legendaryGroup is a special case, there is no template for it
636-
// and it is not a linkable type.
637-
if (Tools5eFields.lairActions.existsIn(entry)) {
638-
maybeAddBlankLine(text);
639-
text.add(heading + " Lair actions");
640-
appendToText(text, Tools5eFields.lairActions.getFrom(entry), null);
641-
}
642-
if (Tools5eFields.regionalEffects.existsIn(entry)) {
643-
maybeAddBlankLine(text);
644-
text.add(heading + " Regional effects");
645-
appendToText(text, Tools5eFields.lairActions.getFrom(entry), null);
646-
}
634+
if (type == Tools5eIndexType.charoption) {
635+
// charoption is a special case, it is not a linkable type.
636+
tui().warnf("charoption is not yet an embeddable type: %s", entry);
647637
return;
648638
}
649639

0 commit comments

Comments
 (0)