Minor changes to tool tip text generation and token image loading.

This commit is contained in:
LevelX2 2014-04-01 00:06:52 +02:00
parent 2226498576
commit 455cca0795
4 changed files with 6 additions and 4 deletions

View file

@ -27,6 +27,7 @@
*/
package mage.sets.magic2014;
import java.util.Random;
import java.util.UUID;
import mage.MageInt;
import mage.ObjectColor;
@ -105,6 +106,8 @@ class ElementalToken extends Token {
public ElementalToken() {
super("Elemental", "1/1 red Elemental creature");
this.setOriginalExpansionSetCode("M14");
this.setTokenType(new Random().nextInt(2) + 1);
cardType.add(CardType.CREATURE);
color = ObjectColor.RED;
subtype.add("Elemental");

View file

@ -97,7 +97,7 @@ public class PutOnLibrarySourceEffect extends OneShotEffect<PutOnLibrarySourceEf
sb.append(staticText);
} else {
// Put Champion of Stray Souls on top of your library from your graveyard
sb.append("Put {this} on");
sb.append("Put {this} on ");
sb.append(onTop ? "top" : "the bottom").append(" of it's owner's library");
}
return sb.toString();

View file

@ -55,7 +55,7 @@ public enum CardRepository {
private static final String JDBC_URL = "jdbc:sqlite:db/cards.db";
private static final String VERSION_ENTITY_NAME = "card";
private static final long CARD_DB_VERSION = 20;
private static final long CARD_DB_VERSION = 21;
private final Random random = new Random();
private Dao<CardInfo, Object> cardDao;

View file

@ -47,8 +47,7 @@ public class ZombieToken extends Token {
super("Zombie", "2/2 black Zombie creature token");
this.setOriginalExpansionSetCode(expansionSetCode);
if (expansionSetCode.equals("ISD")) {
Random random = new Random();
this.setTokenType(random.nextInt(3) + 1);
this.setTokenType(new Random().nextInt(3) + 1);
}
cardType.add(CardType.CREATURE);
color = ObjectColor.BLACK;