mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixed text formatting.
This commit is contained in:
@@ -2421,15 +2421,15 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
|
|
||||||
String elementText = element.toString();
|
String elementText = element.toString();
|
||||||
|
|
||||||
//Determine if a card has multiple choices, then format it in an easier to read list.
|
//Determine if a card has multiple choices, then format it in an easier to read list.
|
||||||
if (element.getApi() != null && element.getApi().equals(ApiType.Charm)) {
|
if (element.getApi() != null && element.getApi().equals(ApiType.Charm)) {
|
||||||
|
|
||||||
String chooseText = elementText.split("-")[0].trim();
|
String chooseText = elementText.split("-")[0].trim();
|
||||||
String[] splitElemText = elementText.split("-");
|
String[] splitElemText = elementText.split("-");
|
||||||
String[] choices = splitElemText.length > 1 ? splitElemText[1].split(";") : null;
|
String[] choices = splitElemText.length > 1 ? splitElemText[1].split(";") : null;
|
||||||
|
|
||||||
|
sb.append(chooseText);
|
||||||
|
|
||||||
sb.append(chooseText);
|
|
||||||
|
|
||||||
if (choices != null) {
|
if (choices != null) {
|
||||||
sb.append("—\r\n");
|
sb.append("—\r\n");
|
||||||
for (int i = 0; i < choices.length; i++) {
|
for (int i = 0; i < choices.length; i++) {
|
||||||
@@ -2448,10 +2448,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
sb.append(elementText).append("\r\n");
|
sb.append(elementText).append("\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add Keywords
|
// Add Keywords
|
||||||
|
|||||||
Reference in New Issue
Block a user