Lengthy Run-On spellText descriptions

With the current cards.txt system, we have just one line for an included spellText description. As such, we will sometimes take multiple paragraphs of text and place it into a single paragraph. It would be nice if we had a "hack" that would break this up into multiple paragraphs as the text would become more readable.
As an example, look at the entry for Faceless Butcher. It looks like someone had similar plans in the past. They may have planned to replace the " -- " with "\r\n". But the "\r\n" chars just print and do not advance to the next line.
I hacked the Card.getText() method and we now have in my local copy:
And this works! So my local cards.txt entry for Faceless Butcher now looks like this:
If no-one has an objection, I will merge my code into the SVN and will start updating the cards that I can find that could use this feature. One example that comes to mind is Belligerent Hatchling. I will attach three jpgs to give people a before and after image of this one card.
`
As an example, look at the entry for Faceless Butcher. It looks like someone had similar plans in the past. They may have planned to replace the " -- " with "\r\n". But the "\r\n" chars just print and do not advance to the next line.
- Code: Select all
Faceless Butcher
2 B B
Creature Nightmare Horror
When Faceless Butcher comes into play, remove target creature other than Faceless Butcher from the game. -- When Faceless Butcher is destroyed, return the removed card to play under its owner's control.
2/3
I hacked the Card.getText() method and we now have in my local copy:
- Code: Select all
/*
sb.append("\r\n");
sb.append(text);
sb.append("\r\n");
*/
sb.append("\r\n");
String textArray[] = text.split("\\\\r\\\\n");
for (int i = 0; i < textArray.length; i++) {
sb.append(textArray[i]).append("\r\n");
}
And this works! So my local cards.txt entry for Faceless Butcher now looks like this:
- Code: Select all
Faceless Butcher
2 B B
Creature Nightmare Horror
When Faceless Butcher comes into play, remove target creature other than Faceless Butcher from the game.\r\nWhen Faceless Butcher is destroyed, return the removed card to play under its owner's control.
2/3
If no-one has an objection, I will merge my code into the SVN and will start updating the cards that I can find that could use this feature. One example that comes to mind is Belligerent Hatchling. I will attach three jpgs to give people a before and after image of this one card.
`