Skip to content

Commit

Permalink
Fix doom roll formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan19 committed Sep 10, 2018
1 parent 1e34beb commit 4add149
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/logic/DiceRoller.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ private String formatResults(ArrayList<Integer> s) {
resultString += s.get(i) + ", ";
}
}
resultString += s.get(s.size() - 1);
if (s.get(s.size() - 1) == 1){
resultString += "**1**";
}
else {
resultString += s.get(s.size() - 1);
}
}
else if (s.size() == 1){
if (s.get(0) == 1){
Expand Down

0 comments on commit 4add149

Please sign in to comment.