Skip to content

Commit

Permalink
🐛 Stray backtick in dice roller formula
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Mar 28, 2024
1 parent 7cceed9 commit 4de94e6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class AcHp implements QuteUtil {
public String acText;
/** Hit points */
public Integer hp;

/**
* Additional hit point text.
* In the case of summoned creatures, this will contain notes for how hit points
Expand Down Expand Up @@ -52,16 +53,17 @@ public AcHp(AcHp other) {
}

/**
* Hit points as a dice roll formula.
* Hit points as a dice roller formula:
* "`dice: 1d20+7|nodice|text(37)` (`1d20+7`)"
*/
public String getHpDiceRoller() {
return hitDice == null
? getHp()
: "`dice: " + hitDice + "|nodice|text(" + hp + ")`" + "` (`" + hitDice + "`)";
: "`dice: " + hitDice + "|nodice|text(" + hp + ")` (`" + hitDice + "`)";
}

/**
* Hit points (number)
* Hit points (number or —)
*/
public String getHp() {
return hp == null ? hpText : hp.toString();
Expand Down

0 comments on commit 4de94e6

Please sign in to comment.