Skip to content

Commit

Permalink
Merge pull request #67 from Carifio24/tce-expanded-classes-optional
Browse files Browse the repository at this point in the history
Only include Tasha's classes in export if necessary
  • Loading branch information
Carifio24 authored Apr 25, 2024
2 parents eba1cef + 6bebe66 commit 04aa99f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/main/java/dnd/jon/spellbook/BaseSpellListExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ void addTextForSpell(Spell spell) {
final String classesString = DisplayUtils.classesString(context, spell);
addPromptText(classesPrompt, classesString);
addLineBreak();
final String tashasPrompt = DisplayUtils.tceExpandedClassesPrompt(context);
final String tashasText = DisplayUtils.tashasExpandedClassesString(context, spell);
addPromptText(tashasPrompt, tashasText);
addLineBreak();
if (!spell.getTashasExpandedClasses().isEmpty()) {
final String tashasPrompt = DisplayUtils.tceExpandedClassesPrompt(context);
final String tashasText = DisplayUtils.tashasExpandedClassesString(context, spell);
addPromptText(tashasPrompt, tashasText);
addLineBreak();
}
final String descriptionPrompt = DisplayUtils.descriptionPrompt(context);
addPromptText(descriptionPrompt, spell.getDescription(), true);
if (!spell.getHigherLevel().isEmpty()) {
Expand Down

0 comments on commit 04aa99f

Please sign in to comment.